[med-svn] [biosquid] 04/05: Rename binary packages and create libsquid1 and libsquid-dev package

Andreas Tille tille at debian.org
Wed Apr 5 07:11:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository biosquid.

commit a4e0ee24fd5239fc93026df985a0ce64ac2a329d
Author: Andreas Tille <tille at debian.org>
Date:   Wed Apr 5 08:49:37 2017 +0200

    Rename binary packages and create libsquid1 and libsquid-dev package
---
 debian/biosquid-dev.install                        |  1 +
 debian/compat                                      |  2 +-
 debian/control                                     | 30 ++++++++++++++++++----
 ...ev.README.Debian => libsquid-dev.README.Debian} |  0
 debian/{biosquid.docs => libsquid-dev.docs}        |  0
 ...biosquid-dev.examples => libsquid-dev.examples} |  0
 debian/rules                                       | 19 ++++++++++++--
 debian/tests/run-unit-test                         |  2 +-
 8 files changed, 45 insertions(+), 9 deletions(-)

diff --git a/debian/biosquid-dev.install b/debian/biosquid-dev.install
index 802e993..c79177a 100644
--- a/debian/biosquid-dev.install
+++ b/debian/biosquid-dev.install
@@ -1,2 +1,3 @@
 usr/include/*	usr/include
 usr/lib/	usr
+squid*.h	usr/include/biosquid
diff --git a/debian/compat b/debian/compat
index ec63514..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-9
+10
diff --git a/debian/control b/debian/control
index 344692e..59ae234 100644
--- a/debian/control
+++ b/debian/control
@@ -4,8 +4,8 @@ Uploaders: Nelson A. de Oliveira <naoliv at debian.org>,
            Andreas Tille <tille at debian.org>
 Section: science
 Priority: optional
-Build-Depends: debhelper (>= 9.20160403),
-               autoconf,
+Build-Depends: debhelper (>= 10),
+               d-shlibs,
                autotools-dev,
 	       pvm-dev
 Standards-Version: 3.9.8
@@ -16,6 +16,7 @@ Homepage: http://eddylab.org/software.html
 Package: biosquid
 Architecture: any
 Depends: ${shlibs:Depends},
+         libsquid1 (= ${binary:Version}),
          ${misc:Depends}
 Recommends: hmmer
 Description: utilities for biological sequence analysis
@@ -29,13 +30,32 @@ Description: utilities for biological sequence analysis
  This package contains some tools to demonstrate the features of the
  SQUID library.
 
-Package: biosquid-dev
+Package: libsquid1
 Architecture: any
-Section: devel
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Suggests: biosquid
-Description: headers and static library for biological sequence analysis
+Description: biosquid dynamic library for biological sequence analysis
+ SQUID is a library of C code functions for sequence analysis. It also
+ includes a number of small utility programs to convert, show statistics,
+ manipulate and do other functions on sequence files.
+ .
+ The original name of the package is "squid", but since there is already
+ a squid on the archive (a proxy cache), it was renamed to "biosquid".
+ .
+ This package contains the dynamic SQUID library.
+
+Package: libsquid-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends},
+         libsquid1 (= ${binary:Version}),
+         ${misc:Depends}
+Breaks: biosquid-dev
+Replaces: biosquid-dev
+Provides: biosquid-dev
+Description: biosquid headers and static library for biological sequence analysis
  SQUID is a library of C code functions for sequence analysis. It also
  includes a number of small utility programs to convert, show statistics,
  manipulate and do other functions on sequence files.
diff --git a/debian/biosquid-dev.README.Debian b/debian/libsquid-dev.README.Debian
similarity index 100%
rename from debian/biosquid-dev.README.Debian
rename to debian/libsquid-dev.README.Debian
diff --git a/debian/biosquid.docs b/debian/libsquid-dev.docs
similarity index 100%
rename from debian/biosquid.docs
rename to debian/libsquid-dev.docs
diff --git a/debian/biosquid-dev.examples b/debian/libsquid-dev.examples
similarity index 100%
rename from debian/biosquid-dev.examples
rename to debian/libsquid-dev.examples
diff --git a/debian/rules b/debian/rules
index 84045a3..4a867bf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,12 +1,16 @@
 #!/usr/bin/make -f
 
+
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 # Uncomment this to turn on verbose mode.
 export DH_VERBOSE=1
 
+DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+LIBNAME	       := libsquid
+
 %:
-	dh $@   --with autoreconf 
+	dh $@ --no-parallel
 
 override_dh_auto_clean:
 	dh_auto_clean
@@ -20,11 +24,22 @@ override_dh_auto_configure:
 override_dh_install:
 	mv $(CURDIR)/debian/tmp/usr/bin/translate $(CURDIR)/debian/tmp/usr/bin/stranslate
 	dh_install
+	d-shlibmove --commit \
+		    --multiarch \
+		    --devunversioned \
+		    --exclude-la \
+		    --override s/libpvm3-3-dev/pvm-dev/ \
+		    --movedev debian/tmp/usr/include/* usr/include \
+		    --movedev squid.h usr/include/$(DEBPKGNAME) \
+		    --movedev squidconf.h usr/include/$(DEBPKGNAME) \
+		    debian/tmp/usr/lib/*/$(LIBNAME).so
+
+#		    --movedev "debian/tmp/usr/lib/*/pkgconfig/*.pc" usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \
 
 override_dh_installexamples:
 	dh_installexamples
 	cd $(CURDIR)/debian/biosquid-dev/usr/share/doc/biosquid-dev/examples/Testsuite; make clean
-	sed -i 's#/usr/local/bin/perl#/usr/bin/perl#' $(CURDIR)/debian/biosquid-dev/usr/share/doc/biosquid-dev/examples/Formats/*.pl
+	sed -i 's#/usr/local/bin/perl#/usr/bin/perl#' $(CURDIR)/debian/$(LIBNAME)-dev/usr/share/doc/$(LIBNAME)-dev/examples/Formats/*.pl
 
 override_dh_auto_test:
 	chmod u+x Testsuite/x-base-* Testsuite/bug-1-sfetch*
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
index b5ec3ce..9992126 100644
--- a/debian/tests/run-unit-test
+++ b/debian/tests/run-unit-test
@@ -15,7 +15,7 @@ if [ "$ADTTMP" = "" ] ; then
   ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
 fi
 cd $ADTTMP
-cp -a /usr/share/doc/${pkg}-dev/examples/* $ADTTMP
+cp -a /usr/share/doc/libsquid-dev/examples/* $ADTTMP
 find . -name "*.gz" -exec gunzip \{\} \;
 cd Testsuite
 sed -i 's#-I../#-I/usr/include/biosquid#' Makefile

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/biosquid.git



More information about the debian-med-commit mailing list