hamlib/hamlib.spec

399 lines
12 KiB
RPMSpec
Raw Normal View History

2007-09-04 10:47:46 +00:00
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2005-03-23 23:28:05 +00:00
2007-09-03 11:47:51 +00:00
Name: hamlib
2009-11-07 13:19:18 +00:00
Version: 1.2.10
Release: 4%{?dist}
2007-12-09 11:10:00 +00:00
Summary: Run-time library to control radio transceivers and receivers
2007-09-03 11:47:51 +00:00
Group: System Environment/Libraries
2007-12-09 11:10:00 +00:00
License: GPLv2+ and LGPLv2+
URL: http://hamlib.sourceforge.net
2009-08-22 11:09:25 +00:00
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
2007-12-09 11:10:00 +00:00
#Install python and perl bindings into proper dirs
2009-11-07 13:19:18 +00:00
Patch0: hamlib-1.2.10-bindings.patch
2009-11-07 21:04:33 +00:00
Patch1: hamlib-1.2.10-usrp.patch
Patch2: hamlib-1.2.10-vfo-copy.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2007-12-09 11:10:00 +00:00
BuildRequires: python-devel, swig, gd-devel, libxml2-devel, tcl-devel
BuildRequires: libusb-devel, pkgconfig, boost-devel, libtool-ltdl-devel
2009-11-07 21:04:33 +00:00
BuildRequires: doxygen, gnuradio-devel, usrp-devel
2007-12-09 11:10:00 +00:00
#for perl
BuildRequires: perl(ExtUtils::MakeMaker)
%description
Hamlib provides a standardized programming interface that applications
2005-03-16 23:41:59 +00:00
can use to send the appropriate commands to a radio.
2009-11-07 21:04:33 +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
Summary: Development library to control radio transceivers and receivers
Group: Development/Libraries
2007-12-09 11:10:00 +00:00
Requires: hamlib = %{version}-%{release}, pkgconfig
%description devel
Hamlib radio control library C development headers and libraries
for building C applications with Hamlib.
2007-12-09 11:10:00 +00:00
%package doc
Summary: Documentation for the hamlib radio control library
Group: Documentation
Requires: hamlib = %{version}-%{release}
%description doc
This package provides the developers documentation for the hamlib radio
control library API.
%package c++
Summary: Hamlib radio control library C++ binding
Group: Development/Libraries
2007-12-09 11:10:00 +00:00
Requires: hamlib = %{version}-%{release}
%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
2007-12-09 11:10:00 +00:00
Requires: hamlib-devel = %{version}-%{release}, hamlib-c++ = %{version}-%{release}
%description c++-devel
Hamlib radio control library C++ binding development headers and libraries
for building C++ applications with Hamlib.
2007-12-09 11:10:00 +00:00
%package perl
Summary: Hamlib radio control library Perl binding
Group: Development/Libraries
Requires: hamlib = %{version}-%{release}
%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
2007-12-09 11:10:00 +00:00
Requires: hamlib = %{version}-%{release}, python
%description python
Hamlib Python Language bindings to allow radio control from Python scripts.
2007-12-09 11:10:00 +00:00
%package tcl
Summary: Hamlib radio control library TCL binding
Group: Development/Libraries
Requires: hamlib = %{version}-%{release}
%description tcl
Hamlib TCL Language bindings to allow radio control from TCL scripts.
%prep
2005-03-23 23:28:05 +00:00
%setup -q
2007-12-09 11:10:00 +00:00
%patch0 -p1
2009-11-07 21:04:33 +00:00
%patch1 -p1 -b .usrp
%patch2 -p1 -b .vfo-copy
2005-04-06 10:00:28 +00:00
%build
%configure \
--with-ldtl-include=%{_includedir} \
--with-ldtl-lib=%{_libdir} \
--disable-static \
--with-rigmatrix \
2009-11-07 13:19:18 +00:00
--enable-tcl-binding \
2007-12-09 11:10:00 +00:00
--with-python-binding \
2009-11-07 21:04:33 +00:00
--with-perl-binding \
--with-usrp
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
2005-04-06 10:00:28 +00:00
2007-12-09 11:10:00 +00:00
# Build libs, drivers, and programs, won't build with smpflags
make
# Build Documentation
2005-04-06 10:00:28 +00:00
make -C doc doc
%install
rm -rf $RPM_BUILD_ROOT
2007-12-09 11:10:00 +00:00
make DESTDIR=$RPM_BUILD_ROOT install
#install documentation
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/html/search
for f in `find doc/html/ -type f -maxdepth 1`
do install -D -m 0644 $f $RPM_BUILD_ROOT%{_docdir}/%{name}/`echo $f | cut -d '/' -f2`
2007-12-09 11:10:00 +00:00
done
for f in `find doc/html/search -type f -maxdepth 1`
do install -D -m 0644 $f $RPM_BUILD_ROOT%{_docdir}/%{name}/html/`echo $f | cut -d '/' -f3`
done
2007-12-09 11:10:00 +00:00
2005-03-24 12:24:11 +00:00
rm -f $RPM_BUILD_ROOT%{_libdir}/hamlib-*.a $RPM_BUILD_ROOT%{_libdir}/hamlib-*.la
2007-12-09 11:10:00 +00:00
find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;
2007-12-09 11:10:00 +00:00
2005-03-24 12:24:11 +00:00
/sbin/ldconfig -N -n $RPM_BUILDROOT%{_libdir}
2007-12-09 11:10:00 +00:00
#fix permissions
2007-12-09 12:13:53 +00:00
find $RPM_BUILD_ROOT -type f -name Hamlib.so -exec chmod 0755 {} ';'
2007-12-09 11:10:00 +00:00
#remove this, not needed
2007-12-09 12:13:53 +00:00
find $RPM_BUILD_ROOT -type f -name pkgIndex.tcl -exec rm -f {} ';'
2007-12-09 11:10:00 +00:00
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name Hamlib.bs -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name perltest.pl -exec rm -f {} ';'
2009-04-01 17:19:13 +00:00
#installed in the wrong place, better fix needed
mv $RPM_BUILD_ROOT%{_libdir}/_Hamlib.so $RPM_BUILD_ROOT%{python_sitelib}/_Hamlib.so
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post c++ -p /sbin/ldconfig
%postun c++ -p /sbin/ldconfig
2007-12-09 11:10:00 +00:00
%post tcl -p /sbin/ldconfig
%postun tcl -p /sbin/ldconfig
%files
2009-08-23 08:52:03 +00:00
%defattr(-, root, root, - )
2007-12-09 11:10:00 +00:00
%doc AUTHORS ChangeLog PLAN COPYING.LIB COPYING README THANKS TODO
%{_bindir}/*
%{_sbindir}/*
%{_libdir}/libhamlib.so.*
%{_libdir}/hamlib-*.so
2007-12-09 11:10:00 +00:00
%{_mandir}/man?/*
%files devel
2009-08-23 08:52:03 +00:00
%defattr(-, root, root, -)
2007-12-09 11:10:00 +00:00
%doc README.developer
%{_libdir}/libhamlib.so
%{_datadir}/aclocal/hamlib.m4
%dir %{_includedir}/hamlib
%{_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
%files doc
%defattr(-, root, root, -)
2007-12-09 11:10:00 +00:00
%doc %{_docdir}/%{name}
%files c++
2009-08-23 08:52:03 +00:00
%defattr(-, root, root, -)
%doc COPYING.LIB
%{_libdir}/libhamlib++.so.*
%files c++-devel
2009-08-23 08:52:03 +00:00
%defattr(-, root, root, -)
%doc COPYING.LIB
%{_libdir}/libhamlib++.so
%{_includedir}/hamlib/rigclass.h
%{_includedir}/hamlib/rotclass.h
2007-12-09 11:10:00 +00:00
%files perl
2009-08-23 08:52:03 +00:00
%defattr(-, root, root, -)
2007-12-09 11:10:00 +00:00
%doc COPYING.LIB
2007-12-09 12:13:53 +00:00
%{perl_vendorarch}/*
%files python
2009-08-23 08:52:03 +00:00
%defattr(-, root, root, -)
%doc COPYING.LIB
2005-03-23 23:28:05 +00:00
%{python_sitelib}/*.py*
2009-04-01 17:19:13 +00:00
%{python_sitelib}/_Hamlib.so
2007-12-09 11:10:00 +00:00
%files tcl
%defattr(-, root, root)
2007-12-09 11:10:00 +00:00
%doc COPYING.LIB
%{_libdir}/hamlibtcl*
%changelog
* Sun May 09 2010 Lucian Langa <cooly@gnome.eu.org> - 1.2.10-4
- description cleanup
- add patch2 - fix double-free in cleanup in dummy module (#587701)
* Sun Nov 08 2009 Lucian Langa <cooly@gnome.eu.org> - 1.2.10-3
- various cleanups
- disable rpath
- rebuild using system libltdl
2009-11-07 21:04:33 +00:00
* Sat Nov 07 2009 Lucian Langa <cooly@gnome.eu.org> - 1.2.10-2
- build with usrp backend
2009-11-07 13:19:18 +00:00
* Sat Nov 07 2009 Lucian Langa <cooly@gnome.eu.org> - 1.2.10-1
- new upstream release
2009-08-23 08:52:03 +00:00
* Wed Aug 23 2009 Lucian Langa <cooly@gnome.eu.org> - 1.2.9-1
- new install rule for docs for new doxygen
2009-08-23 08:52:03 +00:00
- misc cleanups
2009-08-22 11:09:25 +00:00
- patch0 update
- new upstream release
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.8-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-04-01 17:19:13 +00:00
* Wed Apr 01 2009 Sindre Pedersen Bjørdal <sindrepb@fedoraproject.org> - 1.2.8-3
- Add hackish fix for python binding issue
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2008-12-15 22:18:40 +00:00
* Mon Dec 15 2008 Sindre Pedersen Bjørdal <sindrepb@fedoraproject.org> - 1.2.8-1
- New upstream release
2008-11-29 16:47:48 +00:00
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.2.7-3
- Rebuild for Python 2.6
2008-08-27 02:20:49 +00:00
* Tue Aug 26 2008 Steve Conklin <fedora@conklinhouse.com> - 1.2.7-2
- New patch to fix hamlib-perl
2008-02-16 15:43:26 +00:00
* Fri Feb 15 2008 Steve Conklin <sconklin@redhat.com> - 1.2.7-1
- New upstream released
2008-02-14 15:00:35 +00:00
* Thu Feb 14 2008 Steve Conklin <sconklin@redhat.com> - 1.2.6.2-7
- Rebuild against new gcc4.3
2008-01-04 04:38:02 +00:00
* Thu Jan 03 2008 Alex Lancaster <alexlan[AT]fedoraproject.org> - 1.2.6.2-6
2008-01-04 04:17:25 +00:00
- Rebuild against new Tcl 8.5
2007-12-09 12:34:51 +00:00
* Sun Dec 09 2007 Sindre Pedersen Bjørdal - 1.2.6.2-5
2007-12-09 12:23:15 +00:00
- use sitearch not sitelib for perl package
- Make sure it builds on all arches
2008-01-04 04:17:25 +00:00
2007-12-09 11:10:00 +00:00
* Sat Dec 08 2007 Sindre Pedersen Bjørdal - 1.2.6.2-3
- Clean up BuildRequires
- Remove obsolete swig patch
2008-01-04 04:17:25 +00:00
2007-12-09 11:10:00 +00:00
* Sat Dec 08 2007 Sindre Pedersen Bjørdal - 1.2.6.2-2
- Spec file cleanups
- Use make install instead of depriciated %%makeinstall
- Replace make trickery with patched upstream makefiles
- enable perl bindings
- Patch bindings makefile to install perl to vendor, not site
- Merge swig patch with bindings patch
- enable tcl bindings
2007-12-09 11:14:16 +00:00
- Create doc subpackage, solves #341481
2007-12-09 11:10:00 +00:00
- Remove 2nd bindings patch, not needed as we don't rely on make trickery for bindings anymore
- Add patch to install python bindings in proper python dirs
- Clean up %%files list
- Depend on version-release, not just version
2008-01-04 04:17:25 +00:00
* Tue Sep 25 2007 Denis Leroy <denis@poolshark.org> - 1.2.6.2-1
- Update to new upstream 1.2.6.2
- Added rigsmtr binary
2007-09-03 11:47:51 +00:00
* Mon Sep 3 2007 Denis Leroy <denis@poolshark.org> - 1.2.5-6
- Rebuild, License tag update
2007-09-04 10:20:21 +00:00
- Added net-tools BR
2007-09-03 11:47:51 +00:00
* Wed May 9 2007 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 1.2.5-5
- Move HTML devel documentation to the proper subpackage (#228364)
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
* 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
- 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>
- 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
* 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(...)
* 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-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
* 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
* 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