2017-04-16 20:28:46 +00:00
|
|
|
#
|
|
|
|
# spec file for package hamlib
|
|
|
|
#
|
|
|
|
# Copyright (c) 2017 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-04-24 14:25:39 +00:00
|
|
|
%define sover 2
|
2017-04-16 20:28:46 +00:00
|
|
|
Name: hamlib
|
|
|
|
Version: 3.1
|
|
|
|
Release: 0
|
|
|
|
Summary: Run-time library to control radio transcievers and receivers
|
|
|
|
License: LGPL-2.1
|
|
|
|
Group: Productivity/Hamradio/Other
|
|
|
|
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
|
2017-04-24 16:40:37 +00:00
|
|
|
# PATCH-FIX-OPENSUSE hamlib-3.0-perl_install.patch -- patch from Fedora
|
|
|
|
Patch0: hamlib-3.0-perl_install.patch
|
2017-04-16 20:28:46 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: makeinfo
|
2017-04-24 16:40:37 +00:00
|
|
|
BuildRequires: perl
|
2017-04-16 20:28:46 +00:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: swig
|
2017-04-24 14:25:39 +00:00
|
|
|
BuildRequires: tcl-devel
|
2017-04-16 20:28:46 +00:00
|
|
|
BuildRequires: pkgconfig(gdlib)
|
|
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
2017-04-24 14:25:39 +00:00
|
|
|
BuildRequires: pkgconfig(lua)
|
|
|
|
BuildRequires: pkgconfig(python2)
|
2017-04-16 20:28:46 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Hamlib development libraries
|
|
|
|
Group: Development/Libraries/Other
|
2017-04-24 14:25:39 +00:00
|
|
|
Requires: libhamlib%{sover} = %{version}
|
|
|
|
Requires: libhamlib++%{sover} = %{version}
|
2017-04-16 20:28:46 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Hamlib provides a consistent interface for programmers wanting to incorporate
|
|
|
|
radio control in their programs.
|
|
|
|
|
2017-04-24 14:25:39 +00:00
|
|
|
%package -n libhamlib++%{sover}
|
2017-04-16 20:28:46 +00:00
|
|
|
Summary: Hamlib C++ libraries
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
|
2017-04-24 14:25:39 +00:00
|
|
|
%description -n libhamlib++%{sover}
|
2017-04-16 20:28:46 +00:00
|
|
|
Hamlib provides a consistent interface for programmers wanting to incorporate
|
|
|
|
radio control in their programs.
|
|
|
|
|
2017-04-24 14:25:39 +00:00
|
|
|
%package -n libhamlib%{sover}
|
|
|
|
Summary: Hamlib C libraries
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
|
|
|
|
%description -n libhamlib%{sover}
|
|
|
|
Hamlib provides a consistent interface for programmers wanting to incorporate
|
|
|
|
radio control in their programs.
|
|
|
|
|
|
|
|
%package -n lua-Hamliblua
|
2017-04-16 20:28:46 +00:00
|
|
|
Summary: LUA bindings for Hamlib
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
|
2017-04-24 14:25:39 +00:00
|
|
|
%description -n lua-Hamliblua
|
2017-04-16 20:28:46 +00:00
|
|
|
Hamlib provides a consistent interface for programmers wanting to incorporate
|
|
|
|
radio control in their programs.
|
|
|
|
|
|
|
|
%package -n python-Hamlib
|
|
|
|
Summary: Python bindings for Hamlib
|
2017-04-24 14:25:39 +00:00
|
|
|
Group: Development/Libraries/Python
|
2017-04-16 20:28:46 +00:00
|
|
|
|
|
|
|
%description -n python-Hamlib
|
|
|
|
Hamlib provides a consistent interface for programmers wanting to incorporate
|
|
|
|
radio control in their programs.
|
|
|
|
|
2017-04-24 14:25:39 +00:00
|
|
|
%package -n tcl-Hamlib
|
|
|
|
Summary: Tcl bindings for Hamlib
|
|
|
|
Group: Development/Languages/Tcl
|
|
|
|
|
|
|
|
%description -n tcl-Hamlib
|
|
|
|
Hamlib provides a consistent interface for programmers wanting to incorporate
|
|
|
|
radio control in their programs.
|
|
|
|
|
2017-04-24 16:40:37 +00:00
|
|
|
%package -n perl-Hamlib
|
|
|
|
Summary: Perl bindings for Hamlib
|
|
|
|
Group: Development/Languages/Perl
|
|
|
|
|
|
|
|
%description -n perl-Hamlib
|
|
|
|
Hamlib provides a consistent interface for programmers wanting to incorporate
|
|
|
|
radio control in their programs.
|
|
|
|
|
2017-04-16 20:28:46 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2017-04-24 16:40:37 +00:00
|
|
|
%patch0
|
2017-04-16 20:28:46 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fiv
|
2017-04-24 14:25:39 +00:00
|
|
|
%configure \
|
2017-04-24 16:40:37 +00:00
|
|
|
--with-perl-binding \
|
2017-04-24 14:25:39 +00:00
|
|
|
--with-tcl-binding \
|
|
|
|
--with-lua-binding \
|
2017-04-24 16:40:37 +00:00
|
|
|
--with-python-binding \
|
|
|
|
--with-xml-support
|
2017-04-24 14:25:39 +00:00
|
|
|
make %{?_smp_mflags} V=1
|
2017-04-16 20:28:46 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2017-04-24 14:25:39 +00:00
|
|
|
find %{buildroot} -type f \( -name '*.a' -o -name '*.la' \) -delete -print
|
2017-04-16 20:28:46 +00:00
|
|
|
|
2017-04-24 16:40:37 +00:00
|
|
|
rm %{buildroot}%{perl_vendorarch}/auto/Hamlib/.packlist
|
|
|
|
|
2017-04-16 20:28:46 +00:00
|
|
|
mkdir -p %{buildroot}%{_docdir}
|
|
|
|
mv %{buildroot}/%{_datadir}/doc/%{name} %{buildroot}%{_docdir}
|
|
|
|
|
|
|
|
%fdupes %{buildroot}%{python_sitearch}
|
|
|
|
|
2017-04-24 16:57:23 +00:00
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
2017-04-16 20:28:46 +00:00
|
|
|
%post
|
2017-04-24 14:25:39 +00:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
2017-04-16 20:28:46 +00:00
|
|
|
|
2017-04-24 14:25:39 +00:00
|
|
|
%preun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
2017-04-16 20:28:46 +00:00
|
|
|
|
2017-04-24 14:25:39 +00:00
|
|
|
%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
|
2017-04-16 20:28:46 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS LICENSE NEWS
|
2017-04-24 14:25:39 +00:00
|
|
|
%{_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}
|
2017-04-16 20:28:46 +00:00
|
|
|
%{_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
|
|
|
|
|
2017-04-24 14:25:39 +00:00
|
|
|
%files -n libhamlib%{sover}
|
2017-04-16 20:28:46 +00:00
|
|
|
%defattr(-,root,root)
|
2017-04-24 14:25:39 +00:00
|
|
|
%{_libdir}/libhamlib.so.%{sover}*
|
2017-04-16 20:28:46 +00:00
|
|
|
|
2017-04-24 14:25:39 +00:00
|
|
|
%files -n libhamlib++%{sover}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libhamlib++.so.%{sover}*
|
|
|
|
|
|
|
|
%files -n lua-Hamliblua
|
2017-04-16 20:28:46 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/lua
|
|
|
|
|
|
|
|
%files -n python-Hamlib
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{python_sitearch}/Hamlib.*
|
|
|
|
%{python_sitearch}/_Hamlib.*
|
|
|
|
|
2017-04-24 14:25:39 +00:00
|
|
|
%files -n tcl-Hamlib
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_libdir}/tcl/Hamlib
|
|
|
|
%{_libdir}/tcl/Hamlib/*
|
|
|
|
|
2017-04-24 16:40:37 +00:00
|
|
|
%files -n perl-Hamlib
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{perl_vendorarch}/*
|
|
|
|
|
2017-04-16 20:28:46 +00:00
|
|
|
%changelog
|