[med-svn] [libbpp-core] 01/03: Use d-shlibs

Andreas Tille tille at debian.org
Fri Apr 8 21:27:57 UTC 2016


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

tille pushed a commit to branch master
in repository libbpp-core.

commit 4ca623183e54e08228010552b8fb203ab982700e
Author: Andreas Tille <tille at debian.org>
Date:   Fri Apr 8 23:08:50 2016 +0200

    Use d-shlibs
---
 debian/changelog |  1 +
 debian/control   | 13 +++++++++----
 debian/rules     | 20 +++++++++++++-------
 3 files changed, 23 insertions(+), 11 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4cc883b..67eea55 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ libbpp-core (2.2.0-1) UNRELEASED; urgency=medium
   * wrote watch file
   * DEP5 copyright
   * Short dh rules file
+  * Use d-shlibs
 
  -- Andreas Tille <tille at debian.org>  Thu, 07 Apr 2016 09:19:57 +0200
 
diff --git a/debian/control b/debian/control
index 6c40fbf..101d9f5 100644
--- a/debian/control
+++ b/debian/control
@@ -2,10 +2,11 @@ Source: libbpp-core
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
 Uploaders: Julien Dutheil <julien.dutheil at univ-montp2.fr>,
            Andreas Tille <tille at debian.org>
-Section: libs
+Section: science
 Priority: optional
 Build-Depends: debhelper (>= 9),
-               cmake
+               cmake,
+               d-shlibs
 Standards-Version: 3.9.7
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/libbpp-core.git
 Vcs-Git: https://anonscm.debian.org/git/debian-med/libbpp-core.git
@@ -14,7 +15,7 @@ Homepage: http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
 Package: libbpp-core-dev
 Architecture: any
 Section: libdevel
-Depends: libbpp-core2 (= ${binary:Version}),
+Depends: libbpp-core2v5 (= ${binary:Version}),
          ${misc:Depends}
 Description: Bio++ Core library development files
  Bio++ is a set of C++ libraries for Bioinformatics, including sequence
@@ -26,11 +27,15 @@ Description: Bio++ Core library development files
  This package contains the static library and the header files of the
  Bio++ core classes.
 
-Package: libbpp-core2
+Package: libbpp-core2v5
 Architecture: any
 Section: libs
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
 Depends: ${shlibs:Depends},
          ${misc:Depends}
+Conflicts: libbpp-core2
+Replaces: libbpp-core2
 Description: Bio++ Core library
  Bio++ is a set of C++ libraries for Bioinformatics, including sequence
  analysis, phylogenetics, molecular evolution and population genetics.
diff --git a/debian/rules b/debian/rules
index dff0348..0ff1970 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,16 +2,22 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-# shared library versions
-version=`ls src/lib*.so.* | \
- awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
-major=`ls src/lib*.so.* | \
- awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
+DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
 
 CMAKE_EXTRA_FLAGS += -DBUILD_TESTING=OFF
 
 %:
 	dh $@
 
-override_dh_installchangelogs:
-	dh_installchangelogs ChangeLog
+override_dh_install:
+	dh_install
+	d-shlibmove --commit \
+		    --multiarch \
+		    --v5 \
+		    --devunversioned \
+		    --exclude-la \
+                    debian/tmp/usr/lib/*.so
+	# somehow the static lib is copied twice - hack to fix this
+	rm -f debian/$(DEBPKGNAME)-dev/usr/lib/*.a \
+	      debian/$(DEBPKGNAME)-dev/usr/lib/*.so
+##                    --movedev debian/tmp/usr/include/* usr/include \

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



More information about the debian-med-commit mailing list