From 63cc377d90dcd08489170bccc261c81aa45866f6 Mon Sep 17 00:00:00 2001 From: "Joop Stakenborg, PG4I" Date: Tue, 11 May 2004 15:48:21 +0000 Subject: [PATCH] sync with latest debian package and add tcl, c++, python and perl bindings git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1733 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- debian/changelog | 15 +++++- debian/control | 98 ++++++++++++++++++++++++++++++++--- debian/hamlib++-dev.dirs | 2 + debian/hamlib2++.dirs | 1 + debian/hamlib2-perl.dirs | 2 + debian/hamlib2-tcl.dirs | 2 + debian/python2.3-hamlib2.dirs | 2 + debian/rules | 53 +++++++++++++++---- 8 files changed, 155 insertions(+), 20 deletions(-) create mode 100644 debian/hamlib++-dev.dirs create mode 100644 debian/hamlib2++.dirs create mode 100644 debian/hamlib2-perl.dirs create mode 100644 debian/hamlib2-tcl.dirs create mode 100644 debian/python2.3-hamlib2.dirs diff --git a/debian/changelog b/debian/changelog index 213413d7e..1fd916f8a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,11 +1,22 @@ -hamlib (1.1.5-1) unstable; urgency=low +hamlib (1.2.0-2) unstable; urgency=low + + * Correct references to the hamlib1 package in the control file. + * Removed *.files in the debian directory. + * Build hamlib++-dev and hamlib2++ packages for C++. + * Added swig, libperl-dev, python-dev, tcl8.4-dev to build-depends. + * Added perl, python and tcl bindings. + * Update standards version to 3.6.1. + + -- Joop Stakenborg Wed, 24 Mar 2004 18:19:26 +0100 + +hamlib (1.2.0-1) unstable; urgency=low * New upstream. * New package: hamlib2 because of API changes. * 1 new program in hamlib-utils called rigmem. * Upstream changelog is old, so not included anymore. - -- Joop Stakenborg Fri, 30 Jan 2004 20:37:06 +0100 + -- Joop Stakenborg Sat, 28 Feb 2004 08:23:34 +0100 hamlib (1.1.4-6) unstable; urgency=low diff --git a/debian/control b/debian/control index 27adaf8b8..275ba7f91 100644 --- a/debian/control +++ b/debian/control @@ -2,13 +2,31 @@ Source: hamlib Section: hamradio Priority: optional Maintainer: Joop Stakenborg -Build-Depends: debhelper (>> 3.0.0), doxygen -Standards-Version: 3.5.9 +Build-Depends: debhelper (>> 3.0.0), doxygen, swig, libperl-dev, python2.3-dev, tcl8.4-dev +Standards-Version: 3.6.1 Package: hamlib2 Architecture: any Section: libs Depends: ${shlibs:Depends} +Conflicts: hamlib1 +Description: Run-time library to control radio transcievers and receivers + Most recent amateur radio transceivers allow external control of their + functions through a computer interface. Unfortunately, control commands are + not always consistent across a manufacturer's product line and each + manufacturer's product line differs greatly from its competitors. + . + This library addresses that issue by providing a standardised programming + interface that applications can talk to and translating that into the + appropriate commands required by the radio in use. + . + This package provides the C run-time form of the library. If you wish to + develop software using this library you need the 'hamlib-dev' package. + +Package: hamlib2++ +Architecture: any +Section: libs +Depends: ${shlibs:Depends} Description: Run-time library to control radio transcievers and receivers Most recent amateur radio transceivers allow external control of their functions through a computer interface. Unfortunately, control commands are @@ -19,13 +37,13 @@ Description: Run-time library to control radio transcievers and receivers interface that applications can talk to and translating that into the appropriate commands required by the radio in use. . - This package provides the run-time form of the library. If you wish to - develop software using this library you need the 'hamlib-dev' package. + This package provides the C++ run-time form of the library. If you wish to + develop software using this library you need the 'hamlib++-dev' package. Package: hamlib-dev Architecture: any Section: libdevel -Depends: hamlib1 (= ${Source-Version}), libc6-dev +Depends: hamlib2 (= ${Source-Version}), libc6-dev Description: Development library to control radio transcievers and receivers Most recent amateur radio transceivers allow external control of their functions through a computer interface. Unfortunately, control commands are @@ -36,9 +54,75 @@ Description: Development library to control radio transcievers and receivers interface that applications can talk to and translating that into the appropriate commands required by the radio in use. . - This package provides the development library with both C and C++ bindings. + This package provides the development library with both C bindings. If you wish to run applications developed using this library you'll need the - 'hamlib1' package. + 'hamlib2' package. + +Package: hamlib++-dev +Architecture: any +Section: libdevel +Depends: hamlib2 (= ${Source-Version}), hamlib-dev (= ${Source-Version}), libc6-dev +Description: Development library to control radio transcievers and receivers + Most recent amateur radio transceivers allow external control of their + functions through a computer interface. Unfortunately, control commands are + not always consistent across a manufacturer's product line and each + manufacturer's product line differs greatly from its competitors. + . + This library addresses that issue by providing a standardised programming + interface that applications can talk to and translating that into the + appropriate commands required by the radio in use. + . + This package provides the development library with C++ bindings. + If you wish to run applications developed using this library you'll need the + 'hamlib2' package. + +Package: hamlib2-perl +Architecture: any +Section: perl +Depends: ${shlibs:Depends} +Description: Run-time library to control radio transcievers and receivers + Most recent amateur radio transceivers allow external control of their + functions through a computer interface. Unfortunately, control commands are + not always consistent across a manufacturer's product line and each + manufacturer's product line differs greatly from its competitors. + . + This library addresses that issue by providing a standardised programming + interface that applications can talk to and translating that into the + appropriate commands required by the radio in use. + . + This package provides the perl bindings of the library. + +Package: hamlib2-tcl +Architecture: any +Section: interpreters +Depends: ${shlibs:Depends} +Description: Run-time library to control radio transcievers and receivers + Most recent amateur radio transceivers allow external control of their + functions through a computer interface. Unfortunately, control commands are + not always consistent across a manufacturer's product line and each + manufacturer's product line differs greatly from its competitors. + . + This library addresses that issue by providing a standardised programming + interface that applications can talk to and translating that into the + appropriate commands required by the radio in use. + . + This package provides the tcl bindings of the library. + +Package: python2.3-hamlib2 +Architecture: any +Section: python +Depends: ${shlibs:Depends} +Description: Run-time library to control radio transcievers and receivers + Most recent amateur radio transceivers allow external control of their + functions through a computer interface. Unfortunately, control commands are + not always consistent across a manufacturer's product line and each + manufacturer's product line differs greatly from its competitors. + . + This library addresses that issue by providing a standardised programming + interface that applications can talk to and translating that into the + appropriate commands required by the radio in use. + . + This package provides the python bindings of the library. Package: hamlib-utils Architecture: any diff --git a/debian/hamlib++-dev.dirs b/debian/hamlib++-dev.dirs new file mode 100644 index 000000000..44188162e --- /dev/null +++ b/debian/hamlib++-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include diff --git a/debian/hamlib2++.dirs b/debian/hamlib2++.dirs new file mode 100644 index 000000000..68457717b --- /dev/null +++ b/debian/hamlib2++.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/debian/hamlib2-perl.dirs b/debian/hamlib2-perl.dirs new file mode 100644 index 000000000..d98833249 --- /dev/null +++ b/debian/hamlib2-perl.dirs @@ -0,0 +1,2 @@ +/usr/lib/perl5 +/usr/share/doc/hamlib2-perl diff --git a/debian/hamlib2-tcl.dirs b/debian/hamlib2-tcl.dirs new file mode 100644 index 000000000..83e6a5f46 --- /dev/null +++ b/debian/hamlib2-tcl.dirs @@ -0,0 +1,2 @@ +/usr/lib/hamlib +/usr/share/doc/hamlib2-tcl diff --git a/debian/python2.3-hamlib2.dirs b/debian/python2.3-hamlib2.dirs new file mode 100644 index 000000000..c15869d67 --- /dev/null +++ b/debian/python2.3-hamlib2.dirs @@ -0,0 +1,2 @@ +/usr/lib/python2.3/site-packages +/usr/share/doc/python2.3-hamlib2 diff --git a/debian/rules b/debian/rules index b3ce430de..31945304b 100644 --- a/debian/rules +++ b/debian/rules @@ -8,17 +8,15 @@ # This is the debhelper compatability version to use. export DH_COMPAT=3 -version=1.1.5 +#change this when the so name has changed +version=1.2.0 +perlversion=`perl -V:version|cut -d\' -f2` configure: configure-stamp configure-stamp: dh_testdir ./configure --prefix=/usr --mandir=\$${prefix}/share/man \ - --without-cxx-binding \ - --without-perl-binding \ --without-kylix-binding \ - --without-tcl-binding \ - --without-python-binding touch configure-stamp @@ -36,30 +34,63 @@ clean: # Add here commands to clean up after the build process. -$(MAKE) clean dh_clean - rm -f build-stamp configure-stamp config.log config.status libltdl/config.log libltdl/config.status + rm -f build-stamp configure-stamp + rm -f config.log config.status libltdl/config.log libltdl/config.status + rm -rf doc/html + rm -rf libltdl/.libs lib/.libs + rm -f lib/termios.o libltdl/ltdl.o install: build dh_testdir dh_testroot dh_clean -k dh_installdirs + # Add here commands to install the package into debian/tmp $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp - # Move the appropriate files into the development package.. + + # Move C++ files out of the way + # Move the appropriate files into the C++ development package.. + mv $(CURDIR)/debian/tmp/usr/include/hamlib/rigclass.h $(CURDIR)/debian/hamlib++-dev/usr/include/ + mv $(CURDIR)/debian/tmp/usr/include/hamlib/rotclass.h $(CURDIR)/debian/hamlib++-dev/usr/include/ + mv $(CURDIR)/debian/tmp/usr/lib/libhamlib++.a $(CURDIR)/debian/hamlib++-dev/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/lib/libhamlib++.la $(CURDIR)/debian/hamlib++-dev/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/lib/libhamlib++.so $(CURDIR)/debian/hamlib++-dev/usr/lib/ + + # Move the appropriate files into the C++ runtime package.. + mv $(CURDIR)/debian/tmp/usr/lib/libhamlib++-$(version).so.2 $(CURDIR)/debian/hamlib2++/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/lib/libhamlib++-$(version).so.2.0.0 $(CURDIR)/debian/hamlib2++/usr/lib/ + + # Move the appropriate files into the C development package.. mv $(CURDIR)/debian/tmp/usr/lib/libhamlib.so $(CURDIR)/debian/hamlib-dev/usr/lib/ mv $(CURDIR)/debian/tmp/usr/lib/*.a $(CURDIR)/debian/hamlib-dev/usr/lib/ mv $(CURDIR)/debian/tmp/usr/lib/*.la $(CURDIR)/debian/hamlib-dev/usr/lib/ - rm -f $(CURDIR)/debian/tmp/usr/include/hamlib/rigclass.h - rm -f $(CURDIR)/debian/tmp/usr/include/hamlib/rotclass.h mv $(CURDIR)/debian/tmp/usr/include/hamlib $(CURDIR)/debian/hamlib-dev/usr/include/ mv $(CURDIR)/debian/tmp/usr/lib/pkgconfig/hamlib.pc $(CURDIR)/debian/hamlib-dev/usr/lib/pkgconfig/ mv $(CURDIR)/debian/tmp/usr/share/aclocal/hamlib.m4 $(CURDIR)/debian/hamlib-dev/usr/share/aclocal/ - # Move the appropriate files into the runtime package.. + # Move the appropriate files into the C runtime package.. mv $(CURDIR)/debian/tmp/usr/lib/libhamlib-$(version).so.2 $(CURDIR)/debian/hamlib2/usr/lib/ mv $(CURDIR)/debian/tmp/usr/lib/libhamlib-$(version).so.2.0.0 $(CURDIR)/debian/hamlib2/usr/lib/ mv $(CURDIR)/debian/tmp/usr/lib/hamlib-*so $(CURDIR)/debian/hamlib2/usr/lib/ + # Move the appropriate files into the perl package and do some cleanups + mv $(CURDIR)/debian/tmp/usr/lib/perl/5.8.4/* $(CURDIR)/debian/hamlib2-perl/usr/lib/perl5 + rm -f $(CURDIR)/debian/hamlib2-perl/usr/lib/perl5/auto/Hamlib/.packlist + rm -f $(CURDIR)/debian/hamlib2-perl/usr/lib/perl5/auto/Hamlib/Hamlib.bs + rm -f $(CURDIR)/debian/hamlib2-perl/usr/lib/perl5/perllocal.pod + mv $(CURDIR)/debian/hamlib2-perl/usr/lib/perl5/perltest.pl $(CURDIR)/debian/hamlib2-perl/usr/share/doc/hamlib2-perl + + # Move the appropriate files into the python package + mv $(CURDIR)/debian/tmp/usr/lib/python/* $(CURDIR)/debian/python2.3-hamlib2/usr/lib/python2.3/site-packages + mv $(CURDIR)/debian/tmp/usr/lib/_Hamlib.so $(CURDIR)/debian/python2.3-hamlib2/usr/lib/python2.3/site-packages + mv $(CURDIR)/bindings/pytest.py $(CURDIR)/debian/python2.3-hamlib2/usr/share/doc/python2.3-hamlib2/ + + # Move the appropriate files into the tcl package + mv $(CURDIR)/debian/tmp/usr/lib/hamlibtcl* $(CURDIR)/debian/hamlib2-tcl/usr/lib/hamlib/ + mv $(CURDIR)/debian/tmp/usr/lib/tcl/* $(CURDIR)/debian/hamlib2-tcl/usr/lib/hamlib/ + mv $(CURDIR)/bindings/tcltest.tcl $(CURDIR)/debian/hamlib2-tcl/usr/share/doc/hamlib2-tcl/ + # Move the appropriate files into the documentation package.. mv $(CURDIR)/doc/html/* $(CURDIR)/debian/hamlib-doc/usr/share/doc/hamlib-doc/html @@ -103,7 +134,7 @@ binary-arch: build install dh_strip dh_compress dh_fixperms - dh_makeshlibs -V -Xalinco -Xaor -Xdrake -Xdummy -Xeasycomm -Xflexradio -Xfodtrack -Xicom -Xjrc -Xkachina -Xkenwood -Xlowe -Xmicrotune -Xpcr -Xrft -Xrotorez -Xrpc -Xsartek -Xtapr -Xtentec -Xuniden -Xwinradio -Xyaesu + dh_makeshlibs -V -Xalinco -Xaor -Xdrake -Xdummy -Xeasycomm -Xflexradio -Xfodtrack -Xicom -Xjrc -Xkachina -Xkenwood -Xlowe -Xmicrotune -Xpcr -Xrft -Xrotorez -Xrpc -Xsartek -Xtapr -Xtentec -Xuniden -Xwinradio -Xyaesu -Xtcl dh_installdeb # dh_perl dh_shlibdeps -Xalinco -Xaor -Xdrake -Xdummy -Xeasycomm -Xflexradio -Xfodtrack -Xicom -Xjrc -Xkachina -Xkenwood -Xlowe -Xmicrotune -Xpcr -Xrft -Xrotorez -Xrpc -Xsartek -Xtapr -Xtentec -Xuniden -Xwinradio -Xyaesu