2005-03-23 23:28:05 +00:00
|
|
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
2006-09-30 18:46:32 +00:00
|
|
|
Name: hamlib
|
|
|
|
Version: 1.2.5
|
2006-12-15 03:17:30 +00:00
|
|
|
Release: 4%{?dist}
|
2005-04-06 22:12:01 +00:00
|
|
|
|
2006-09-30 18:46:32 +00:00
|
|
|
License: LGPL
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Summary: Run-time library to control radio transceivers and receivers
|
|
|
|
Source: ftp://ftp.sourceforge.net/pub/sourceforge/h/ha/hamlib/%{name}-%{version}.tar.gz
|
2005-03-16 17:05:32 +00:00
|
|
|
|
|
|
|
# For whatever reason @SWIG@ isn't being set by the configure script.
|
|
|
|
Patch: hamlib-bindings.patch
|
2006-09-30 18:46:32 +00:00
|
|
|
Patch1: hamlib-1.2.4-bindings.patch
|
2005-03-16 17:05:32 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
URL: http://hamlib.sourceforge.net
|
2006-09-30 18:46:32 +00:00
|
|
|
BuildRequires: automake >= 1.4, libtool >= 1.4, fileutils, findutils, flex
|
2005-03-16 17:05:32 +00:00
|
|
|
BuildRequires: binutils >= 2.9.4, gcc >= 2.95, glibc-devel >= 2.1
|
|
|
|
BuildRequires: gzip, make >= 3.77, patch >= 2.5, rpm >= 3.0, sed
|
2006-09-30 18:46:32 +00:00
|
|
|
BuildRequires: textutils, python-devel, swig, gd-devel, libxml2-devel, tcl-devel
|
|
|
|
BuildRequires: libusb-devel, pkgconfig
|
2005-03-16 17:05:32 +00:00
|
|
|
BuildRequires: doxygen
|
|
|
|
|
|
|
|
%description
|
|
|
|
Hamlib provides a standardised programming interface that applications
|
2005-03-16 23:41:59 +00:00
|
|
|
can use to send the appropriate commands to a radio.
|
2005-03-16 17:05:32 +00:00
|
|
|
|
|
|
|
Also included in the package is a simple radio control program 'rigctl',
|
|
|
|
which lets one control a radio transceiver or receiver, either from
|
|
|
|
command line interface or in a text-oriented interactive interface.
|
|
|
|
|
|
|
|
%package devel
|
2006-09-30 18:46:32 +00:00
|
|
|
Summary: Development library to control radio transcievers and receivers
|
2005-03-16 17:05:32 +00:00
|
|
|
Group: Development/Libraries
|
2006-09-30 19:41:48 +00:00
|
|
|
Requires: hamlib = %{version}, pkgconfig
|
2005-03-16 17:05:32 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Hamlib radio control library C development headers and libraries
|
|
|
|
for building C applications with Hamlib.
|
|
|
|
|
|
|
|
%package c++
|
|
|
|
Summary: Hamlib radio control library C++ binding
|
|
|
|
Group: Development/Libraries
|
2006-09-30 18:46:32 +00:00
|
|
|
Requires: hamlib = %{version}
|
2005-03-16 17:05:32 +00:00
|
|
|
|
|
|
|
%description c++
|
|
|
|
Hamlib radio control library C++ language binding.
|
|
|
|
|
|
|
|
%package c++-devel
|
|
|
|
Summary: Hamlib radio control library C++ binding development headers and libraries
|
|
|
|
Group: Development/Libraries
|
2006-09-30 18:46:32 +00:00
|
|
|
Requires: hamlib-devel = %{version}, hamlib-c++ = %{version}
|
2005-03-16 17:05:32 +00:00
|
|
|
|
|
|
|
%description c++-devel
|
|
|
|
Hamlib radio control library C++ binding development headers and libraries
|
|
|
|
for building C++ applications with Hamlib.
|
|
|
|
|
|
|
|
|
|
|
|
#%package perl
|
|
|
|
#Summary: Hamlib radio control library Perl binding
|
|
|
|
#Group: Development/Libraries
|
|
|
|
#Requires: hamlib = %{version}
|
|
|
|
#
|
|
|
|
#%description perl
|
|
|
|
#Hamlib PERL Language bindings to allow radio control from PERL scripts.
|
|
|
|
|
|
|
|
%package python
|
|
|
|
Summary: Hamlib radio control library Python binding
|
|
|
|
Group: Development/Libraries
|
2005-03-23 23:28:05 +00:00
|
|
|
Requires: python-abi = %(%{__python} -c 'import sys;print(sys.version[:3])')
|
2005-03-16 17:05:32 +00:00
|
|
|
|
|
|
|
%description python
|
|
|
|
Hamlib Python Language bindings to allow radio control from Python scripts.
|
|
|
|
|
|
|
|
%prep
|
2005-03-23 23:28:05 +00:00
|
|
|
%setup -q
|
2005-03-16 17:05:32 +00:00
|
|
|
%patch -p1
|
2006-09-30 18:46:32 +00:00
|
|
|
%patch1 -p1 -b .bindings
|
2005-03-16 17:05:32 +00:00
|
|
|
|
2005-04-06 10:00:28 +00:00
|
|
|
%build
|
2005-03-16 17:05:32 +00:00
|
|
|
%configure \
|
2005-11-23 15:59:36 +00:00
|
|
|
--disable-static \
|
2005-03-16 17:05:32 +00:00
|
|
|
--with-rigmatrix \
|
|
|
|
--without-tcl-binding \
|
|
|
|
--with-python-binding
|
|
|
|
## --with-perl-binding
|
|
|
|
|
|
|
|
# Build libs, drivers, and programs
|
|
|
|
make CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" all
|
|
|
|
|
|
|
|
# Build PERL and Python bindings
|
2005-04-06 10:00:28 +00:00
|
|
|
make -C bindings all-py
|
|
|
|
#make -C bindings all-perl
|
|
|
|
|
2005-03-16 17:05:32 +00:00
|
|
|
# Build Documentation
|
2005-04-06 10:00:28 +00:00
|
|
|
make -C doc doc
|
2005-03-16 17:05:32 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%makeinstall
|
2005-03-24 12:24:11 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/hamlib-*.a $RPM_BUILD_ROOT%{_libdir}/hamlib-*.la
|
2005-11-23 15:59:36 +00:00
|
|
|
find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;
|
2005-03-24 12:24:11 +00:00
|
|
|
/sbin/ldconfig -N -n $RPM_BUILDROOT%{_libdir}
|
2005-03-16 17:05:32 +00:00
|
|
|
# Install Python
|
2005-04-06 10:00:28 +00:00
|
|
|
make -C bindings prefix=$RPM_BUILD_ROOT%{_prefix} \
|
2005-03-16 17:05:32 +00:00
|
|
|
exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
|
|
|
|
bindir=$RPM_BUILD_ROOT%{_bindir} \
|
|
|
|
sbindir=$RPM_BUILD_ROOT%{_sbindir} \
|
|
|
|
sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
|
|
|
|
datadir=$RPM_BUILD_ROOT%{_datadir} \
|
|
|
|
includedir=$RPM_BUILD_ROOT%{_includedir} \
|
|
|
|
libdir=$RPM_BUILD_ROOT%{_libdir} \
|
|
|
|
libexecdir=$RPM_BUILD_ROOT%{_libexecdir} \
|
|
|
|
localstatedir=$RPM_BUILD_ROOT%{_localstatedir} \
|
|
|
|
sharedstatedir=$RPM_BUILD_ROOT%{_sharedstatedir} \
|
|
|
|
mandir=$RPM_BUILD_ROOT%{_mandir} \
|
|
|
|
infodir=$RPM_BUILD_ROOT%{_infodir} \
|
2005-03-23 23:28:05 +00:00
|
|
|
pythondir=$RPM_BUILD_ROOT%{python_sitelib} \
|
2005-03-16 17:05:32 +00:00
|
|
|
install-pythonPYTHON
|
|
|
|
|
|
|
|
# Install PERL
|
2005-04-06 10:00:28 +00:00
|
|
|
#make -C bindings prefix=$RPM_BUILD_ROOT%{_prefix} \
|
2005-03-16 17:05:32 +00:00
|
|
|
# exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
|
|
|
|
# bindir=$RPM_BUILD_ROOT%{_bindir} \
|
|
|
|
# sbindir=$RPM_BUILD_ROOT%{_sbindir} \
|
|
|
|
# sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
|
|
|
|
# datadir=$RPM_BUILD_ROOT%{_datadir} \
|
|
|
|
# includedir=$RPM_BUILD_ROOT%{_includedir} \
|
|
|
|
# libdir=$RPM_BUILD_ROOT%{_libdir} \
|
|
|
|
# libexecdir=$RPM_BUILD_ROOT%{_libexecdir} \
|
|
|
|
# localstatedir=$RPM_BUILD_ROOT%{_localstatedir} \
|
|
|
|
# sharedstatedir=$RPM_BUILD_ROOT%{_sharedstatedir} \
|
|
|
|
# mandir=$RPM_BUILD_ROOT%{_mandir} \
|
|
|
|
# infodir=$RPM_BUILD_ROOT%{_infodir} \
|
|
|
|
# install-perl
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2005-03-17 22:35:37 +00:00
|
|
|
%post c++ -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun c++ -p /sbin/ldconfig
|
|
|
|
|
2005-03-16 17:05:32 +00:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2005-03-24 12:24:11 +00:00
|
|
|
%doc COPYING.LIB doc/html
|
2005-03-16 17:05:32 +00:00
|
|
|
%{_bindir}/rigctl
|
|
|
|
%{_bindir}/rigmem
|
|
|
|
%{_bindir}/rigswr
|
|
|
|
%{_bindir}/rotctl
|
|
|
|
%{_sbindir}/rpc.rigd
|
|
|
|
%{_sbindir}/rpc.rotd
|
2005-04-06 10:00:28 +00:00
|
|
|
%{_libdir}/libhamlib-%{version}.so.*
|
2005-03-16 17:05:32 +00:00
|
|
|
%{_libdir}/hamlib-*.so
|
|
|
|
%{_mandir}/man8/rpc.rigd.8.gz
|
|
|
|
%{_mandir}/man8/rpc.rotd.8.gz
|
|
|
|
%{_mandir}/man1/rigctl.1.gz
|
|
|
|
%{_mandir}/man1/rigmem.1.gz
|
|
|
|
%{_mandir}/man1/rigswr.1.gz
|
|
|
|
%{_mandir}/man1/rotctl.1.gz
|
|
|
|
|
|
|
|
%files c++
|
|
|
|
%defattr(-, root, root)
|
2006-09-30 18:46:32 +00:00
|
|
|
%doc COPYING.LIB doc/html
|
2005-04-06 10:00:28 +00:00
|
|
|
%{_libdir}/libhamlib++-%{version}.so.*
|
2005-03-16 17:05:32 +00:00
|
|
|
|
|
|
|
%files c++-devel
|
|
|
|
%defattr(-, root, root)
|
2006-09-30 18:46:32 +00:00
|
|
|
%doc COPYING.LIB doc/html
|
2005-03-16 17:05:32 +00:00
|
|
|
%{_libdir}/libhamlib++.so
|
|
|
|
%{_includedir}/hamlib/rigclass.h
|
|
|
|
%{_includedir}/hamlib/rotclass.h
|
|
|
|
|
|
|
|
#%files perl
|
|
|
|
#%defattr(-, root, root)
|
|
|
|
#%{_libdir}/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/Hamlib/hamlib.so
|
|
|
|
#%{_libdir}/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/Hamlib/hamlib.bs
|
|
|
|
#%{_libdir}/perl5/site_perl/5.8.3/i386-linux-thread-multi/Hamlib.pm
|
|
|
|
#%{_libdir}/perl5/5.8.3/i386-linux-thread-multi/perllocal.pod
|
|
|
|
#%{_libdir}/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/Hamlib/.packlist
|
|
|
|
#%{_libdir}/perl5/site_perl/5.8.3/i386-linux-thread-multi/perltest.pl
|
|
|
|
|
|
|
|
%files python
|
|
|
|
%defattr(-, root, root)
|
2006-09-30 18:46:32 +00:00
|
|
|
%doc COPYING.LIB doc/html
|
2005-03-23 23:28:05 +00:00
|
|
|
%{python_sitelib}/*.py*
|
2005-03-16 17:05:32 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2005-03-24 12:24:11 +00:00
|
|
|
%doc README.developer
|
2005-03-16 17:05:32 +00:00
|
|
|
%{_libdir}/libhamlib.so
|
|
|
|
%{_datadir}/aclocal/hamlib.m4
|
2005-03-24 12:24:11 +00:00
|
|
|
%dir %{_includedir}/hamlib
|
2005-03-16 17:05:32 +00:00
|
|
|
%{_includedir}/hamlib/rig.h
|
|
|
|
%{_includedir}/hamlib/riglist.h
|
|
|
|
%{_includedir}/hamlib/rig_dll.h
|
|
|
|
%{_includedir}/hamlib/rotator.h
|
|
|
|
%{_includedir}/hamlib/rotlist.h
|
|
|
|
%{_libdir}/pkgconfig/hamlib.pc
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2006-12-15 03:17:30 +00:00
|
|
|
* Thu Dec 14 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 1.2.5-4
|
|
|
|
- Rebuild for new Python
|
|
|
|
|
2006-09-30 19:41:48 +00:00
|
|
|
* Sat Sep 30 2006 Dennis Gilmore <dennis@ausil.us> 1.2.5-3
|
|
|
|
- fix Requires for hamlib-devel its pkgconfig not pkg-config
|
|
|
|
|
2006-09-30 18:46:32 +00:00
|
|
|
* Sat Sep 30 2006 Dennis Gilmore <dennis@ausil.us> 1.2.5-2
|
|
|
|
- Fix BuildRequires added libxml2-devel, tcl-devel
|
|
|
|
- libusb-devel, pkgconfig pkgconfig is required for fc5 as
|
|
|
|
- libusb-devel doesnt require it there but it wont hurt other
|
|
|
|
- releases
|
|
|
|
|
|
|
|
* Sat Jul 29 2006 Robert 'Bob' Jensen <bob@bobjensen.com> 1.2.5-1
|
|
|
|
- Upstream update
|
|
|
|
- Spec file cleanups
|
2006-09-09 22:58:23 +00:00
|
|
|
|
2006-02-19 07:02:09 +00:00
|
|
|
* Sun Feb 19 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.4-3
|
|
|
|
- Fix bindings problems
|
2005-11-23 15:59:36 +00:00
|
|
|
- Remove static libs
|
|
|
|
- Remove .la files
|
|
|
|
|
2005-04-07 00:12:03 +00:00
|
|
|
* Thu Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
2005-04-06 22:12:01 +00:00
|
|
|
- rebuilt
|
|
|
|
|
2005-04-06 10:00:28 +00:00
|
|
|
* Wed Apr 6 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.4-1
|
|
|
|
- Upstream update
|
|
|
|
- Spec file cleanups
|
|
|
|
|
2005-03-24 12:24:11 +00:00
|
|
|
* Wed Mar 23 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.3-9
|
|
|
|
- Python binding cleanup
|
|
|
|
- soname/ldconfig cleanup
|
|
|
|
- Added %%{_includedir}/hamlib to -devel
|
|
|
|
- Removed %%{_libdir}/hamlib-*.a and hamlib-*.la
|
|
|
|
- %%doc cleanups
|
|
|
|
|
2005-03-23 23:28:05 +00:00
|
|
|
* Wed Mar 23 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.3-8
|
|
|
|
- Added -q to %%setup
|
|
|
|
- Fixed Python binding build and Requires
|
|
|
|
|
2005-03-21 18:36:05 +00:00
|
|
|
* Mon Mar 21 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.3-7
|
|
|
|
- Removed spurious period and spelling mistake in Summary
|
|
|
|
|
2005-03-19 17:52:45 +00:00
|
|
|
* Sat Mar 19 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.3-6
|
|
|
|
- %%
|
|
|
|
|
2005-03-17 22:59:24 +00:00
|
|
|
* Thu Mar 17 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.3-5
|
|
|
|
- Removed spurious Requires(...)
|
|
|
|
|
2005-03-17 22:35:37 +00:00
|
|
|
* Thu Mar 17 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.3-4
|
2005-03-19 17:52:45 +00:00
|
|
|
- Fixed %%post and %%postun along with Requires(...)
|
2005-03-17 22:35:37 +00:00
|
|
|
|
2005-03-16 23:41:59 +00:00
|
|
|
* Wed Mar 16 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.3-3
|
2005-03-19 17:52:45 +00:00
|
|
|
- Spell-corrected %%description
|
2005-03-16 23:41:59 +00:00
|
|
|
|
2005-03-16 18:54:45 +00:00
|
|
|
* Wed Mar 16 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.3-2
|
|
|
|
- Removed/fixed explicit Requires
|
|
|
|
|
2005-03-16 17:05:32 +00:00
|
|
|
* Tue Mar 15 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.3-1
|
|
|
|
- Bump release to 1
|
|
|
|
- Fixed BuildRoot
|
|
|
|
|
|
|
|
* Mon Feb 10 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0:1.2.3-0.iva.1
|
|
|
|
- Fixed error with automake in -devel (#26)
|
|
|
|
|
|
|
|
* Mon Jan 31 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0:1.2.3-0.iva.0
|
|
|
|
- Upstream update
|
|
|
|
|
|
|
|
* Sun Jan 9 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0:1.2.2-0.iva.1
|
2005-03-19 17:52:45 +00:00
|
|
|
- Fixed %%files %%defattr
|
2005-03-16 17:05:32 +00:00
|
|
|
|
|
|
|
* Sun Jan 9 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0:1.2.2-0.iva.0
|
|
|
|
- Ported to FC3
|
|
|
|
- Upgraded to 1.2.2
|
|
|
|
|
|
|
|
* Sun Apr 18 2004 David L Norris <dave@webaugur.com>
|
|
|
|
- Enable disabled script bindings.
|
|
|
|
- Touch up descriptions.
|
|
|
|
|
|
|
|
* Tue Jan 20 2004 Tomi Manninen
|
|
|
|
- Fix for 1.1.5pre2
|
|
|
|
- Better use of rpm macros
|
|
|
|
- Disable all bindings
|
|
|
|
|
|
|
|
* Tue Oct 08 2003 Joop Stakenborg
|
|
|
|
- Fix 'make rpm' again by disabling c++ bindings.
|
|
|
|
- rotclass.h and rigclass.h go into the devel package for now (FIXME)
|
|
|
|
|
|
|
|
* Wed Jan 15 2003 Joop Stakenborg
|
|
|
|
- Fix the spec file for 1.1.4CVS
|
|
|
|
- 'make rpm' should work now
|
|
|
|
|
|
|
|
* Thu Jun 17 2002 Stephane Fillod
|
|
|
|
- Added rotator support
|
|
|
|
- Added RPC daemon, hamlib.m4
|
|
|
|
- Upstream version 1.1.3
|
|
|
|
|
|
|
|
* Mon Jul 18 2001 Stephane Fillod
|
|
|
|
- Made initial "working" SPEC file
|
|
|
|
|