Projects
home:wkazubski:hamradio
hamlib
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 25
View file
hamlib.spec
Changed
@@ -1,181 +1,207 @@ # # spec file for package hamlib # +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# -%define date 20170530 -%define soname 2 +%define sover 2 Name: hamlib -Version: 3.2_git%{date} +Version: 3.3 Release: 0 Summary: Run-time library to control radio transcievers and receivers -License: LGPL-2.1 and GPL-2.0 +License: LGPL-2.1-only Group: Productivity/Hamradio/Other -Url: http://hamlib.sourceforge.net -Source: %{name}-%{version}.tar.xz -# correct install dir - from fedora -patch0: hamlib-3.0-perl_install.diff - +URL: http://hamlib.sourceforge.net +#Git-Clone: https://git.code.sf.net/p/hamlib/code +Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz +# PATCH-FIX-OPENSUSE hamlib-3.0-perl_install.patch -- patch from Fedora +Patch0: hamlib-3.0-perl_install.patch BuildRequires: fdupes BuildRequires: gcc-c++ -BuildRequires: gd-devel BuildRequires: libtool -BuildRequires: libusb-devel -BuildRequires: lua-devel BuildRequires: makeinfo BuildRequires: perl BuildRequires: pkgconfig -BuildRequires: python-devel BuildRequires: readline-devel BuildRequires: swig -BuildRequires: tcl-devel - -Requires(post): info +BuildRequires: pkgconfig(gdlib) +BuildRequires: pkgconfig(libusb-1.0) +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(lua) +BuildRequires: pkgconfig(python2) +BuildRequires: pkgconfig(tcl) +Requires(post): info Requires(preun): info %description -The Ham Radio Control Libraries, Hamlib for short, is a development effort to -provide a consistent interface for programmers wanting to incorporate radio -control in their programs. Hamlib is not a complete user application, rather, -it is a software layer intended to make controlling various radios and other -shack hardware much easier. Hamlib will allow authors of such software as -logging programs, digital communications programs, or those wanting to develop -the ultimate radio control software to concentrate on the user interface and -the basic function of the program rather than radio control. -Some cli utilities to control rigs and rotors are included. +The Ham Radio Control Libraries (Hamlib) provide a programming +interface for controlling radios and other shack hardware. +It is a software layer, not a complete user application. %package devel -Summary: Hamlib development libraries +Summary: Development files for hamlib, a set of radio control libraries Group: Development/Libraries/Other -Requires: %{name} = %{version} +Requires: libhamlib%{sover} = %{version} +Requires: libhamlib++%{sover} = %{version} %description devel -Hamlib provides a consistent interface for programmers wanting to incorporate -radio control in their programs. +Hamlib provide a programming interface for controlling radios and +other shack hardware. -%package -n libhamlib++%{soname} -Summary: Hamlib C++ libraries -Group: Development/Libraries/Other +%package -n libhamlib++%{sover} +Summary: C++ interface of the Ham Radio Control Libraries +Group: System/Libraries -%description -n libhamlib++%{soname} -Hamlib provides a consistent interface for programmers wanting to incorporate -radio control in their programs. +%description -n libhamlib++%{sover} +Hamlib provides a programming interface for controlling radios and +other shack hardware. It is a software layer, not a complete user +application. -%package -n libhamlib++%{soname}-devel -Summary: Hamlib C++ development libraries -Group: Development/Libraries/Other -Requires: hamlib-devel = %{version} -Requires: libhamlib++%{soname} = %{version} +%package -n libhamlib%{sover} +Summary: C interface of the Ham Radio Control Libraries +Group: System/Libraries -%description -n libhamlib++%{soname}-devel -Hamlib provides a consistent interface for programmers wanting to incorporate -radio control in their programs. +%description -n libhamlib%{sover} +Hamlib provides a programming interface for controlling radios and +other shack hardware. It is a software layer, not a complete user +application. -%package -n lua-%{name} -Summary: Lua bindings for Hamlib +%package -n lua-Hamliblua +Summary: LUA bindings for Hamlib Group: Development/Libraries/Other -Requires: %{name} = %{version} -%description -n lua-%{name} -Hamlib provides a consistent interface for programmers wanting to incorporate -radio control in their programs. +%description -n lua-Hamliblua +Hamlib provide a programming interface for controlling radios and +other shack hardware. -%package -n python-%{name} +%package -n python-Hamlib Summary: Python bindings for Hamlib -Group: Development/Libraries/Other +Group: Development/Libraries/Python -%description -n python-%{name} -Hamlib provides a consistent interface for programmers wanting to incorporate -radio control in their programs. +%description -n python-Hamlib +Hamlib provide a programming interface for controlling radios and +other shack hardware. -%package -n tcl-%{name} +%package -n tcl-Hamlib Summary: Tcl bindings for Hamlib Group: Development/Languages/Tcl +%requires_eq tcl -%description -n tcl-%{name} -Hamlib provides a consistent interface for programmers wanting to incorporate -radio control in their programs. +%description -n tcl-Hamlib +Hamlib provide a programming interface for controlling radios and +other shack hardware. -%package -n perl-%{name} +%package -n perl-Hamlib Summary: Perl bindings for Hamlib Group: Development/Languages/Perl -%description -n perl-%{name} -Hamlib provides a consistent interface for programmers wanting to incorporate -radio control in their programs. +%description -n perl-Hamlib +Hamlib provide a programming interface for controlling radios and +other shack hardware. %prep -%setup +%setup -q %patch0 -p1 %build -autoreconf --force --install -%configure --disable-static \ - --with-xml-support \ - --with-lua-binding \ - --with-python-binding \ - --with-tcl-binding \ - --with-perl-binding - -make %{?_smp_mflags} +autoreconf -fiv +%configure \ + --with-perl-binding \ + --with-tcl-binding \ + --with-lua-binding \ + --with-python-binding \ + --with-xml-support +make %{?_smp_mflags} V=1 %install %make_install +find %{buildroot} -type f \( -name '*.a' -o -name '*.la' \) -delete -print + rm %{buildroot}%{perl_vendorarch}/auto/Hamlib/.packlist + +mkdir -p %{buildroot}%{_docdir} +mv %{buildroot}/%{_datadir}/doc/%{name} %{buildroot}%{_docdir} + %fdupes %{buildroot}%{python_sitearch} +%check +make %{?_smp_mflags} check + %post -/sbin/ldconfig -%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz -%postun -/sbin/ldconfig -%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz +%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info} -%post -n libhamlib++%{soname} -p /sbin/ldconfig -%postun -n libhamlib++%{soname} -p /sbin/ldconfig +%preun +%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info} + +%post -n libhamlib++%{sover} -p /sbin/ldconfig +%post -n libhamlib%{sover} -p /sbin/ldconfig +%postun -n libhamlib++%{sover} -p /sbin/ldconfig +%postun -n libhamlib%{sover} -p /sbin/ldconfig %files -%defattr(-,root,root) -%doc AUTHORS LICENSE NEWS -%{_bindir}/* -%{_mandir}/man1/* -%{_libdir}/libhamlib.so.* -%{_infodir}/hamlib.info.gz -%{_datadir}/doc/hamlib -%exclude %{_libdir}/libhamlib.la +%license LICENSE +%doc AUTHORS NEWS +%{_bindir}/rigctl +%{_bindir}/rigctld +%{_bindir}/rigmem +%{_bindir}/rigsmtr +%{_bindir}/rigswr +%{_bindir}/rotctl +%{_bindir}/rotctld +%{_mandir}/man1/rigctl.1%{?ext_man} +%{_mandir}/man1/rigctld.1%{?ext_man} +%{_mandir}/man1/rigmem.1%{?ext_man} +%{_mandir}/man1/rigsmtr.1%{?ext_man} +%{_mandir}/man1/rigswr.1%{?ext_man} +%{_mandir}/man1/rotctl.1%{?ext_man} +%{_mandir}/man1/rotctld.1%{?ext_man} +%{_mandir}/man7/hamlib-primer.7%{?ext_man} +%{_mandir}/man7/hamlib-utilities.7%{?ext_man} +%{_mandir}/man7/hamlib.7%{?ext_man} +%{_infodir}/hamlib.info%{?ext_info} +%{_docdir}/hamlib %files devel -%defattr(-,root,root) %dir %{_includedir}/hamlib %{_includedir}/hamlib/*.h %{_datadir}/aclocal/hamlib.m4 %{_libdir}/pkgconfig/hamlib.pc %{_libdir}/libhamlib.so +%{_libdir}/libhamlib++.so -%files -n libhamlib++%{soname} -%defattr(-,root,root) -%{_libdir}/libhamlib++.so.* -%exclude %{_libdir}/libhamlib++.la +%files -n libhamlib%{sover} +%license COPYING COPYING.LIB +%{_libdir}/libhamlib.so.%{sover}* -%files -n libhamlib++%{soname}-devel -%defattr(-,root,root) -%{_libdir}/libhamlib++.so +%files -n libhamlib++%{sover} +%license COPYING COPYING.LIB +%{_libdir}/libhamlib++.so.%{sover}* -%files -n lua-%{name} -%defattr(-,root,root) +%files -n lua-Hamliblua %{_libdir}/lua -%files -n python-%{name} -%defattr(-,root,root) +%files -n python-Hamlib %{python_sitearch}/Hamlib.* %{python_sitearch}/_Hamlib.* -%files -n tcl-%{name} -%defattr(-,root,root) -%{_libdir}/tcl/Hamlib +%files -n tcl-Hamlib +%dir %{_libdir}/tcl*/ +%dir %{_libdir}/tcl*/Hamlib +%{_libdir}/tcl*/Hamlib/* -%files -n perl-%{name} -%defattr(-,root,root) +%files -n perl-Hamlib %{perl_vendorarch}/* %changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.