diff --git a/debian/README.Debian b/debian/README.Debian index cb039a1ea..320e39853 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -4,7 +4,4 @@ hamlib for Debian Questions about hamlib can be asked on the hamlib-developer mailing list, see: https://lists.sourceforge.net/lists/listinfo/hamlib-developer -The previous maintainer for the hamlib debian package was Terry Dawson, -VK2KTJ . - Joop Stakenborg , Fri, 21 Mar 2003 20:55:10 +0100 diff --git a/debian/TODO.Debian b/debian/TODO.Debian new file mode 100644 index 000000000..5b0f3f814 --- /dev/null +++ b/debian/TODO.Debian @@ -0,0 +1,20 @@ +TODO.Debian for the hamlib package +---------------------------------- + +* +The perl package still has a backdoor, most probably '-Wl,--rpath' is still +defined somewhere. The tool to use here is chrpath: + +$ chrpath /usr/lib/perl5/auto/Hamlib/Hamlib.so +/usr/lib/perl5/auto/Hamlib/Hamlib.so: RPATH=/usr/local/lib + +/usr/local/lib is not that bad however, no user will have write access to it. + + +* +We should start using dh_install and the corresponding package.install files, +it is much easier to maintain. + +* +After 'make install DESTDIR=$(CURDIR)/debian/tmp', the paths for the tcl, +perl and python bindings are all messed up. See if we can fix this. diff --git a/debian/changelog b/debian/changelog index 8292f0eee..2847a10f5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,122 @@ +hamlib (1.2.6.1-1) unstable; urgency=low + + * New upstream release + + -- Joop Stakenborg Sun, 4 Feb 2007 19:44:37 +0100 + +hamlib (1.2.6-1) unstable; urgency=low + + * New upstream. + + -- Joop Stakenborg Wed, 31 Jan 2007 19:55:12 +0100 + +hamlib (1.2.5-8) unstable; urgency=high + + * Change pyversions to 2.4. + * Install python modules in /usr/share/python-support/python-libhamlib2, + so python can find them. + * This fixes an RC bug, so set urgency high. + * Closes: #406991. + + -- Joop Stakenborg Sun, 21 Jan 2007 19:22:23 +0100 + +hamlib (1.2.5-7.1) unstable; urgency=low + + * NMU. + * Drop explicit dependency on python2.3. + + -- Matthias Klose Fri, 27 Oct 2006 02:20:23 +0200 + +hamlib (1.2.5-7) unstable; urgency=low + + * Update to new python policy + * Update standards version 3.7.2 + * This work by Barry deFreese of Ubuntu, thanks! Closes: #379191. + + -- Joop Stakenborg Tue, 25 Jul 2006 10:16:19 +0200 + +hamlib (1.2.5-6) unstable; urgency=low + + * Make sure the tcltest.tcl script works. + * Remove config.status, libltdl/config.status when cleaning. + * Fix a spelling error in the control file. Closes: #363632. + * Make sure we don't have -Xtcl when running dpkg-shlibdeps, so the + depends line for the tcl package gets created correctly. + * TODO.Debian added for future work. + * Do not use hamlib4, use libhamlib2. Closes: #364222. + + -- Joop Stakenborg Sun, 23 Apr 2006 10:10:07 +0200 + +hamlib (1.2.5-5) unstable; urgency=low + + * Okay, we should be using python instead of python2.3 for build + depends. + + -- Joop Stakenborg Fri, 14 Apr 2006 00:46:31 +0200 + +hamlib (1.2.5-4) unstable; urgency=low + + * Build depend on python2.3 and python2.3-dev. + * Use 'python -V 2.3' in debian/rules. + * Build-Conflicts python2.4. + + -- Joop Stakenborg Thu, 13 Apr 2006 22:40:06 +0200 + +hamlib (1.2.5-3) unstable; urgency=low + + * Remove rpath trapdoor from the perl package. Closes: #358166. + * libhamlib-dev should depend on libusb-dev. Closes: #358129. + * Adjust copyright file so it points both to the GPL and LGPL, copyright + the debian work, include a copyright header from the source code and + mention both debian developers. + + -- Joop Stakenborg Fri, 31 Mar 2006 20:04:53 +0200 + +hamlib (1.2.5-2) unstable; urgency=low + + * Co-maintainer added: Terry Dawson. + * Provide new packages, which follow the so name. + * Correct some of the descriptions, so they point to the correct packages. + * Build python package against python2.3 for now, since building against + 2.4 doesn't seem to work. + * Use dh_perl and dh_python when building, so we byte compile at install time. + * Install the rigswr binary into the libhamlib-utils package. + + -- Joop Stakenborg Sun, 19 Mar 2006 09:34:06 +0100 + +hamlib (1.2.5-1) unstable; urgency=low + + * New upstream release. + * Add libusb-dev to the build dependencies. + * This package differs from the upstream package, it creates libhamlib.so.2 + to avoid the need for recompilation for applications that depend on hamlib, + should a new hamlib be released. Upstream knows about this and will + apply it to future packages. + * Python model now compiled for python2.4. + + -- Joop Stakenborg Sat, 4 Mar 2006 13:55:30 +0100 + +hamlib (1.2.4-3) unstable; urgency=low + + * Patch by Petr Salinger to fix FTBFS on GNU/kFreeBSD. Closes: #336029. + + -- Joop Stakenborg Thu, 27 Oct 2005 17:46:51 +0200 + +hamlib (1.2.4-2) unstable; urgency=low + + * C++ ABI transition. Closes: #335632. + - rename hamlib3++ to hammlib3++c2 and conflict/replace hamlib3++. + - change debian/rules accordingly. + + -- Joop Stakenborg Wed, 26 Oct 2005 10:29:27 +0200 + +hamlib (1.2.4-1) unstable; urgency=low + + * New upstream release. + * Watch file added. + + -- Joop Stakenborg Mon, 4 Apr 2005 16:46:27 +0200 + hamlib (1.2.3-2) unstable; urgency=low * Do a correct rebuild, so hamlib3-tcl does not get linked with hamlib2. @@ -119,7 +238,7 @@ hamlib (1.1.2-4) unstable; urgency=low * (Closes: #124718) * (Closes: #124719) - -- Terry Dawson Fre, 28 Dec 2001 20:12:50 +1000 + -- Terry Dawson Fri, 28 Dec 2001 20:12:50 +1000 hamlib (1.1.2-3) unstable; urgency=low diff --git a/debian/compat b/debian/compat new file mode 100644 index 000000000..b8626c4cf --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control index 8a71b666c..511c18eeb 100644 --- a/debian/control +++ b/debian/control @@ -2,16 +2,18 @@ Source: hamlib Section: hamradio Priority: optional Maintainer: Joop Stakenborg -Build-Depends: debhelper (>> 3.0.0), doxygen, swig, libperl-dev, python2.3-dev, tcl8.4-dev -Build-Conflicts: hamlib-dev (< 1.2.3-1) -Standards-Version: 3.6.1 +Uploaders: Terry Dawson , Joop Stakenborg +Build-Depends: debhelper (>> 5.0.37.2), doxygen, swig, libperl-dev, python-all-dev (>= 2.3.5-11), tcl8.4-dev, libusb-dev, python-support (>= 0.3) +Build-Conflicts: hamlib-dev (< 1.2.5-3) +Standards-Version: 3.7.2 -Package: hamlib3 +Package: libhamlib2 Architecture: any Section: libs Depends: ${shlibs:Depends} -Conflicts: hamlib1, hamlib2 -Description: Run-time library to control radio transcievers and receivers +Conflicts: hamlib1, hamlib2, hamlib3, hamlib4 +Provides: hamlib4 +Description: Run-time library to control radio transceivers 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 @@ -22,13 +24,15 @@ Description: Run-time library to control radio transcievers and receivers 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. + develop software using this library you need the 'libhamlib-dev' package. -Package: hamlib3++ +Package: libhamlib2++c2 Architecture: any Section: libs Depends: ${shlibs:Depends} -Description: Run-time library to control radio transcievers and receivers +Conflicts: hamlib3++, hamlib3++c2, hamlib4++c2 +Provides: hamlib4++c2 +Description: Run-time library to control radio transceivers 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 @@ -39,13 +43,15 @@ Description: Run-time library to control radio transcievers and receivers 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. + develop software using this library you need the 'libhamlib++-dev' package. -Package: hamlib-dev +Package: libhamlib-dev Architecture: any Section: libdevel -Depends: hamlib3 (= ${Source-Version}), libc6-dev -Description: Development library to control radio transcievers and receivers +Depends: libhamlib2 (= ${Source-Version}), libc6-dev, libusb-dev +Conflicts: hamlib-dev +Provides: hamlib-dev +Description: Development library to control radio transceivers 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 @@ -57,13 +63,15 @@ Description: Development library to control radio transcievers and receivers . This package provides the development library with both C bindings. If you wish to run applications developed using this library you'll need the - 'hamlib3' package. + 'libhamlib2' package. -Package: hamlib++-dev +Package: libhamlib++-dev Architecture: any Section: libdevel -Depends: hamlib3 (= ${Source-Version}), hamlib-dev (= ${Source-Version}), libc6-dev -Description: Development library to control radio transcievers and receivers +Depends: libhamlib2 (= ${Source-Version}), libhamlib-dev (= ${Source-Version}), libc6-dev +Conflicts: hamlib++-dev +Provides: hamlib++-dev +Description: Development library to control radio transceivers 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 @@ -75,13 +83,15 @@ Description: Development library to control radio transcievers and receivers . This package provides the development library with C++ bindings. If you wish to run applications developed using this library you'll need the - 'hamlib3' package. + 'libhamlib2++c2' package. -Package: hamlib3-perl +Package: libhamlib2-perl Architecture: any Section: perl Depends: ${shlibs:Depends} -Description: Run-time library to control radio transcievers and receivers +Conflicts: hamlib3-perl, hamlib4-perl +Provides: hamlib4-perl +Description: Run-time library to control radio transceivers 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 @@ -93,11 +103,13 @@ Description: Run-time library to control radio transcievers and receivers . This package provides the perl bindings of the library. -Package: hamlib3-tcl +Package: libhamlib2-tcl Architecture: any Section: interpreters Depends: ${shlibs:Depends} -Description: Run-time library to control radio transcievers and receivers +Conflicts: hamlib3-tcl, hamlib4-tcl +Provides: hamlib4-tcl +Description: Run-time library to control radio transceivers 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 @@ -109,11 +121,15 @@ Description: Run-time library to control radio transcievers and receivers . This package provides the tcl bindings of the library. -Package: python2.3-hamlib3 +Package: python-libhamlib2 Architecture: any Section: python -Depends: ${shlibs:Depends} -Description: Run-time library to control radio transcievers and receivers +Depends: ${shlibs:Depends}, ${python:Depends} +Conflicts: python2.3-hamlib3, python2.4-hamlib4, python2.3-libhamlib2 +Replaces: python2.3-libhamlib2 +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Description: Run-time library to control radio transceivers 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 @@ -125,9 +141,11 @@ Description: Run-time library to control radio transcievers and receivers . This package provides the python bindings of the library. -Package: hamlib-utils +Package: libhamlib-utils Architecture: any Depends: ${shlibs:Depends} +Conflicts: hamlib-utils +Provides: hamlib-utils Description: Utilities to support the hamlib radio control library Most recent amateur radio transceivers allow external control of their functions through a computer interface. Unfortunately, control commands are @@ -141,9 +159,11 @@ Description: Utilities to support the hamlib radio control library This package provides a command-line utility to test the hamlib library and to control transceivers if you're short of anything more sophisticated. -Package: hamlib-doc +Package: libhamlib-doc Architecture: any Section: doc +Conflicts: hamlib-doc +Provides: hamlib-doc Suggests: www-browser Description: Documentation for the hamlib radio control library Most recent amateur radio transceivers allow external control of their diff --git a/debian/copyright b/debian/copyright index 68d59bc18..5bd31d775 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,14 +1,41 @@ -This package was debianized by Terry Dawson on -Sun, 24 Jun 2001 22:02:12 +1000. +This package was debianized by Terry Dawson on +Sun, 24 Jun 2001 22:02:12 +1000 and modified by Joop Stakenborg + on Fri, 31 Mar 2006 20:04:53 +0200. -It was downloaded from http://sourceforge.net/projects/hamlib +Current Debian maintainers are Joop Stakenborg and Terry Dawson (see above +for the e-mail addresses), their work is licensed under the GPL. -Upstream Authors: Frank Singleton, VK3FCS/KM5WS - Stephane Fillod, F8CFE - and many contributors. +It was downloaded from http://sourceforge.net/projects/hamlib, see the files +section for the available source code. -Copyright: +The libraries in this package are copyrighted by the LGPL, utilities are +copyrighted by the GPL. See /usr/share/common-licenses/GPL and +/usr/share/common-licenses/LGPL for the detailed terms and conditions. -This package is released under the terms of the GNU Public License version 2. -See /usr/share/common-licenses/GPL for the detailed terms and conditions. +Upstream Authors: Frank Singleton, VK3FCS/KM5WS and Stephane Fillod, F8CFE. +There were many contributors (see the AUTHORS file in the source package). +From src/rig.c: + +/* + * Hamlib Interface - main file + * Copyright (c) 2000-2006 by Stephane Fillod and Frank Singleton + * + * $Id: copyright,v 1.3 2007-11-26 07:08:51 pa4tu Exp $ + * + * This library is free software; you can redistribute it and/or modify + * it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + * + */ diff --git a/debian/libhamlib++-dev.dirs b/debian/libhamlib++-dev.dirs new file mode 100644 index 000000000..44188162e --- /dev/null +++ b/debian/libhamlib++-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include diff --git a/debian/libhamlib-dev.dirs b/debian/libhamlib-dev.dirs new file mode 100644 index 000000000..53f05cabe --- /dev/null +++ b/debian/libhamlib-dev.dirs @@ -0,0 +1,4 @@ +usr/lib +usr/lib/pkgconfig +usr/include +usr/share/aclocal diff --git a/debian/libhamlib-doc.dirs b/debian/libhamlib-doc.dirs new file mode 100644 index 000000000..583b6b0c9 --- /dev/null +++ b/debian/libhamlib-doc.dirs @@ -0,0 +1 @@ +usr/share/doc/hamlib-doc/html diff --git a/debian/libhamlib-utils.dirs b/debian/libhamlib-utils.dirs new file mode 100644 index 000000000..0fd3ae6b6 --- /dev/null +++ b/debian/libhamlib-utils.dirs @@ -0,0 +1,4 @@ +usr/bin +usr/sbin +usr/share/man/man1 +usr/share/man/man8 diff --git a/debian/libhamlib2++c2.dirs b/debian/libhamlib2++c2.dirs new file mode 100644 index 000000000..68457717b --- /dev/null +++ b/debian/libhamlib2++c2.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/debian/libhamlib2-perl.dirs b/debian/libhamlib2-perl.dirs new file mode 100644 index 000000000..c9a0326c7 --- /dev/null +++ b/debian/libhamlib2-perl.dirs @@ -0,0 +1,2 @@ +/usr/lib/perl5 +/usr/share/doc/libhamlib2-perl diff --git a/debian/libhamlib2-tcl.dirs b/debian/libhamlib2-tcl.dirs new file mode 100644 index 000000000..41ff3bcf9 --- /dev/null +++ b/debian/libhamlib2-tcl.dirs @@ -0,0 +1,2 @@ +/usr/lib/hamlib +/usr/share/doc/libhamlib2-tcl diff --git a/debian/libhamlib2.dirs b/debian/libhamlib2.dirs new file mode 100644 index 000000000..68457717b --- /dev/null +++ b/debian/libhamlib2.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/debian/pycompat b/debian/pycompat new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/debian/python-libhamlib2.dirs b/debian/python-libhamlib2.dirs new file mode 100644 index 000000000..dbb29e75c --- /dev/null +++ b/debian/python-libhamlib2.dirs @@ -0,0 +1,2 @@ +/usr/share/python-support/python-libhamlib2 +/usr/share/doc/python-libhamlib2 diff --git a/debian/pyversions b/debian/pyversions new file mode 100644 index 000000000..6b4950e3d --- /dev/null +++ b/debian/pyversions @@ -0,0 +1 @@ +2.4 diff --git a/debian/rules b/debian/rules index 2303e97c3..09bfde6d1 100644 --- a/debian/rules +++ b/debian/rules @@ -1,22 +1,17 @@ #!/usr/bin/make -f -# Sample debian/rules that uses debhelper. -# GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -# This is the debhelper compatability version to use. -export DH_COMPAT=3 +PY_INTERPRETER=/usr/bin/python -#change this when the so name has changed -version=1.2.3 perlversion = `perl -V:version|cut -d\' -f2` configure: configure-stamp configure-stamp: dh_testdir ./configure --prefix=/usr --mandir=\$${prefix}/share/man \ - --without-kylix-binding \ + --without-kylix-binding touch configure-stamp @@ -36,8 +31,9 @@ clean: dh_clean rm -f build-stamp configure-stamp rm -f config.log libltdl/config.log + rm -f config.status libltdl/config.status rm -rf doc/html - rm -rf libltdl/.libs lib/.libs + rm -rf `find . -name .libs` rm -f lib/termios.o libltdl/ltdl.o install: build @@ -51,61 +47,63 @@ install: build # 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/ + mv $(CURDIR)/debian/tmp/usr/include/hamlib/rigclass.h $(CURDIR)/debian/libhamlib++-dev/usr/include/ + mv $(CURDIR)/debian/tmp/usr/include/hamlib/rotclass.h $(CURDIR)/debian/libhamlib++-dev/usr/include/ + mv $(CURDIR)/debian/tmp/usr/lib/libhamlib++.a $(CURDIR)/debian/libhamlib++-dev/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/lib/libhamlib++.la $(CURDIR)/debian/libhamlib++-dev/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/lib/libhamlib++.so $(CURDIR)/debian/libhamlib++-dev/usr/lib/ # Move the appropriate files into the C++ runtime package.. - mv $(CURDIR)/debian/tmp/usr/lib/libhamlib++-$(version).so.2 $(CURDIR)/debian/hamlib3++/usr/lib/ - mv $(CURDIR)/debian/tmp/usr/lib/libhamlib++-$(version).so.2.0.0 $(CURDIR)/debian/hamlib3++/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/lib/libhamlib++.so.2 $(CURDIR)/debian/libhamlib2++c2/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/lib/libhamlib++.so.2.0.5 $(CURDIR)/debian/libhamlib2++c2/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/ - 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/ + mv $(CURDIR)/debian/tmp/usr/lib/libhamlib.so $(CURDIR)/debian/libhamlib-dev/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/lib/*.a $(CURDIR)/debian/libhamlib-dev/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/lib/*.la $(CURDIR)/debian/libhamlib-dev/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/include/hamlib $(CURDIR)/debian/libhamlib-dev/usr/include/ + mv $(CURDIR)/debian/tmp/usr/lib/pkgconfig/hamlib.pc $(CURDIR)/debian/libhamlib-dev/usr/lib/pkgconfig/ + mv $(CURDIR)/debian/tmp/usr/share/aclocal/hamlib.m4 $(CURDIR)/debian/libhamlib-dev/usr/share/aclocal/ # Move the appropriate files into the C runtime package.. - mv $(CURDIR)/debian/tmp/usr/lib/libhamlib-$(version).so.2 $(CURDIR)/debian/hamlib3/usr/lib/ - mv $(CURDIR)/debian/tmp/usr/lib/libhamlib-$(version).so.2.0.2 $(CURDIR)/debian/hamlib3/usr/lib/ - mv $(CURDIR)/debian/tmp/usr/lib/hamlib-*so $(CURDIR)/debian/hamlib3/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/lib/libhamlib.so.2 $(CURDIR)/debian/libhamlib2/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/lib/libhamlib.so.2.0.5 $(CURDIR)/debian/libhamlib2/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/lib/hamlib-*so $(CURDIR)/debian/libhamlib2/usr/lib/ # Move the appropriate files into the perl package and do some cleanups - mv $(CURDIR)/debian/tmp/usr/lib/perl/$(perlversion)/* $(CURDIR)/debian/hamlib3-perl/usr/lib/perl5 - rm -f $(CURDIR)/debian/hamlib3-perl/usr/lib/perl5/auto/Hamlib/.packlist - rm -f $(CURDIR)/debian/hamlib3-perl/usr/lib/perl5/auto/Hamlib/Hamlib.bs - rm -f $(CURDIR)/debian/hamlib3-perl/usr/lib/perl5/perllocal.pod - mv $(CURDIR)/debian/hamlib3-perl/usr/lib/perl5/perltest.pl $(CURDIR)/debian/hamlib3-perl/usr/share/doc/hamlib3-perl + mv $(CURDIR)/debian/tmp/usr/lib/perl/$(perlversion)/* $(CURDIR)/debian/libhamlib2-perl/usr/lib/perl5 + rm -f $(CURDIR)/debian/libhamlib2-perl/usr/lib/perl5/auto/Hamlib/.packlist + rm -f $(CURDIR)/debian/libhamlib2-perl/usr/lib/perl5/auto/Hamlib/Hamlib.bs + rm -f $(CURDIR)/debian/libhamlib2-perl/usr/lib/perl5/perllocal.pod + mv $(CURDIR)/debian/libhamlib2-perl/usr/lib/perl5/perltest.pl $(CURDIR)/debian/libhamlib2-perl/usr/share/doc/libhamlib2-perl # Move the appropriate files into the python package rm $(CURDIR)/debian/tmp/usr/lib/python/Hamlib.pyc - mv $(CURDIR)/debian/tmp/usr/lib/python/* $(CURDIR)/debian/python2.3-hamlib3/usr/lib/python2.3/site-packages - mv $(CURDIR)/debian/tmp/usr/lib/_Hamlib.so $(CURDIR)/debian/python2.3-hamlib3/usr/lib/python2.3/site-packages - cp $(CURDIR)/bindings/pytest.py $(CURDIR)/debian/python2.3-hamlib3/usr/share/doc/python2.3-hamlib3/ + mv $(CURDIR)/debian/tmp/usr/lib/python/* $(CURDIR)/debian/python-libhamlib2/usr/share/python-support/python-libhamlib2 + mv $(CURDIR)/debian/tmp/usr/lib/_Hamlib.so $(CURDIR)/debian/python-libhamlib2/usr/share/python-support/python-libhamlib2 + cp $(CURDIR)/bindings/pytest.py $(CURDIR)/debian/python-libhamlib2/usr/share/doc/python-libhamlib2/ # Move the appropriate files into the tcl package - mv $(CURDIR)/debian/tmp/usr/lib/hamlibtcl* $(CURDIR)/debian/hamlib3-tcl/usr/lib/hamlib/ - mv $(CURDIR)/debian/tmp/usr/lib/tcl/* $(CURDIR)/debian/hamlib3-tcl/usr/lib/hamlib/ - cp $(CURDIR)/bindings/tcltest.tcl $(CURDIR)/debian/hamlib3-tcl/usr/share/doc/hamlib3-tcl/ + mv $(CURDIR)/debian/tmp/usr/lib/hamlibtcl* $(CURDIR)/debian/libhamlib2-tcl/usr/lib/hamlib/ + mv $(CURDIR)/debian/tmp/usr/lib/tcl/* $(CURDIR)/debian/libhamlib2-tcl/usr/lib/hamlib/ + cp $(CURDIR)/bindings/tcltest.tcl $(CURDIR)/debian/libhamlib2-tcl/usr/share/doc/libhamlib2-tcl/ # Move the appropriate files into the documentation package.. - mv $(CURDIR)/doc/html/* $(CURDIR)/debian/hamlib-doc/usr/share/doc/hamlib-doc/html + mv $(CURDIR)/doc/html/* $(CURDIR)/debian/libhamlib-doc/usr/share/doc/hamlib-doc/html # Move the appropriate files into the utils package.. - mv $(CURDIR)/debian/tmp/usr/bin/rigctl $(CURDIR)/debian/hamlib-utils/usr/bin/ - mv $(CURDIR)/debian/tmp/usr/bin/rotctl $(CURDIR)/debian/hamlib-utils/usr/bin/ - mv $(CURDIR)/debian/tmp/usr/bin/rigmem $(CURDIR)/debian/hamlib-utils/usr/bin/ - mv $(CURDIR)/debian/tmp/usr/share/man/man1/rigctl.1 $(CURDIR)/debian/hamlib-utils/usr/share/man/man1 - mv $(CURDIR)/debian/tmp/usr/share/man/man1/rotctl.1 $(CURDIR)/debian/hamlib-utils/usr/share/man/man1 - mv $(CURDIR)/debian/tmp/usr/share/man/man1/rigmem.1 $(CURDIR)/debian/hamlib-utils/usr/share/man/man1 - mv $(CURDIR)/debian/tmp/usr/sbin/rpc.rigd $(CURDIR)/debian/hamlib-utils/usr/sbin/ - mv $(CURDIR)/debian/tmp/usr/sbin/rpc.rotd $(CURDIR)/debian/hamlib-utils/usr/sbin/ - mv $(CURDIR)/debian/tmp/usr/share/man/man8/rpc.rigd.8 $(CURDIR)/debian/hamlib-utils/usr/share/man/man8 - mv $(CURDIR)/debian/tmp/usr/share/man/man8/rpc.rotd.8 $(CURDIR)/debian/hamlib-utils/usr/share/man/man8 + mv $(CURDIR)/debian/tmp/usr/bin/rigctl $(CURDIR)/debian/libhamlib-utils/usr/bin/ + mv $(CURDIR)/debian/tmp/usr/bin/rotctl $(CURDIR)/debian/libhamlib-utils/usr/bin/ + mv $(CURDIR)/debian/tmp/usr/bin/rigmem $(CURDIR)/debian/libhamlib-utils/usr/bin/ + mv $(CURDIR)/debian/tmp/usr/bin/rigswr $(CURDIR)/debian/libhamlib-utils/usr/bin/ + mv $(CURDIR)/debian/tmp/usr/share/man/man1/rigctl.1 $(CURDIR)/debian/libhamlib-utils/usr/share/man/man1 + mv $(CURDIR)/debian/tmp/usr/share/man/man1/rotctl.1 $(CURDIR)/debian/libhamlib-utils/usr/share/man/man1 + mv $(CURDIR)/debian/tmp/usr/share/man/man1/rigmem.1 $(CURDIR)/debian/libhamlib-utils/usr/share/man/man1 + mv $(CURDIR)/debian/tmp/usr/share/man/man1/rigswr.1 $(CURDIR)/debian/libhamlib-utils/usr/share/man/man1 + mv $(CURDIR)/debian/tmp/usr/sbin/rpc.rigd $(CURDIR)/debian/libhamlib-utils/usr/sbin/ + mv $(CURDIR)/debian/tmp/usr/sbin/rpc.rotd $(CURDIR)/debian/libhamlib-utils/usr/sbin/ + mv $(CURDIR)/debian/tmp/usr/share/man/man8/rpc.rigd.8 $(CURDIR)/debian/libhamlib-utils/usr/share/man/man8 + mv $(CURDIR)/debian/tmp/usr/share/man/man8/rpc.rotd.8 $(CURDIR)/debian/libhamlib-utils/usr/share/man/man8 # Build architecture-independent files here. binary-indep: build install @@ -116,29 +114,32 @@ binary-arch: build install dh_testdir dh_testroot -# dh_movefiles -# dh_installdebconf dh_installdocs -X INSTALL -X ChangeLog -# dh_installexamples -# dh_installmenu -# dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime -# dh_installinit -# dh_installcron -# dh_installman -# dh_installinfo -# dh_undocumented dh_installchangelogs # dh_link 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 -Xtcl -Xkit -Xracal -Xscanti -Xwj -Xtuner + dh_perl + + : # Replace all '#!' calls to python with $(PY_INTERPRETER) + : # and make them executable + for i in `find debian/python-* -type f`; do \ + sed '1s,#!.*python[^ ]*\(.*\),#! $(PY_INTERPRETER)\1,' \ + $$i > $$i.temp; \ + if cmp --quiet $$i $$i.temp; then \ + rm -f $$i.temp; \ + else \ + mv -f $$i.temp $$i; \ + chmod 755 $$i; \ + echo "fixed interpreter: $$i"; \ + fi; \ + done + + dh_pysupport + dh_makeshlibs -V -Xalinco -Xaor -Xdrake -Xdummy -Xeasycomm -Xflexradio -Xfodtrack -Xicom -Xjrc -Xkachina -Xkenwood -Xkit -Xlowe -Xmicrotune -Xpcr -Xracal -Xrft -Xrotorez -Xrpc -Xsartek -Xtapr -Xtentec -Xtuner -Xuniden -Xwinradio -Xyaesu -Xkit -Xracal -Xscanti -Xwj -Xtuner 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 -Xkit -Xracal -Xscanti -Xwj -Xtuner + dh_shlibdeps -Xalinco -Xaor -Xdrake -Xdummy -Xeasycomm -Xflexradio -Xfodtrack -Xicom -Xjrc -Xkachina -Xkenwood -Xkit -Xlowe -Xmicrotune -Xpcr -Xracal -Xrft -Xrotorez -Xrpc -Xsartek -Xtapr -Xtentec -Xtuner -Xuniden -Xwinradio -Xyaesu -Xkit -Xracal -Xscanti -Xwj -Xtuner dh_gencontrol dh_md5sums dh_builddeb diff --git a/debian/watch b/debian/watch new file mode 100644 index 000000000..9c36f9a60 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://heanet.dl.sourceforge.net/sourceforge/hamlib/hamlib-(.*)\.tar\.gz debian uupdate