[Pkg-electronics-commits] [gnucap] 01/01: starting to work out soversion.

felix salfelder felix-guest at moszumanska.debian.org
Fri Apr 1 16:53:45 UTC 2016


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

felix-guest pushed a commit to branch soname
in repository gnucap.

commit 0bde305b834b632c7d685e3ed1d943f6b6d05dcf
Author: Felix Salfelder <felix at salfelder.org>
Date:   Fri Apr 1 18:54:40 2016 +0200

    starting to work out soversion.
    
    essentially imitate libtool and soversion 0.0.0 (TBD)
---
 debian/gnucap-dev.install |  1 +
 debian/libgnucap0.install |  2 +-
 debian/rules              | 10 +++++++++-
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/debian/gnucap-dev.install b/debian/gnucap-dev.install
index 5be28dd..3bdc0a5 100644
--- a/debian/gnucap-dev.install
+++ b/debian/gnucap-dev.install
@@ -1 +1,2 @@
 usr/include/gnucap/*.h
+usr/lib/lib*.so
diff --git a/debian/libgnucap0.install b/debian/libgnucap0.install
index dc21b89..d0dbfd1 100644
--- a/debian/libgnucap0.install
+++ b/debian/libgnucap0.install
@@ -1 +1 @@
-usr/lib/lib*.so
+usr/lib/lib*.so.*
diff --git a/debian/rules b/debian/rules
index 5b1944c..357765a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,8 @@ CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
 CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
 LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
 
+LN_S = ln -sf
+
 pkglibdir=/usr/lib/gnucap
 
 %:
@@ -18,7 +20,9 @@ override_dh_auto_configure:
 
 override_dh_auto_build:
 	$(MAKE) -C lib \
-	        LDFLAGS="-shared -Wl,--enable-new-dtags -Wl,-rpath -Wl,${pkglibdir}" \
+	        LDFLAGS="-shared -Wl,--enable-new-dtags \
+	                         -Wl,-rpath -Wl,${pkglibdir}\
+	                         -Wl,-soname -Wl,libgnucap.so.0.0.0" \
 	        CPPFLAGS="$(CPPFLAGS)" \
 	        CXXFLAGS="$(CXXFLAGS)"
 
@@ -33,6 +37,10 @@ override_dh_auto_install:
 
 	$(MAKE) install -C lib \
 	        DESTDIR=$(PWD)/debian/tmp
+	mv $(PWD)/debian/tmp/usr/lib/libgnucap.so \
+	   $(PWD)/debian/tmp/usr/lib/libgnucap.so.0.0.0
+	cd $(PWD)/debian/tmp/usr/lib/; $(LN_S) libgnucap.so.0.0.0 libgnucap.so.0
+	cd $(PWD)/debian/tmp/usr/lib/; $(LN_S) libgnucap.so.0 libgnucap.so
 
 	$(MAKE) install -C modelgen \
 	        DESTDIR=$(PWD)/debian/tmp

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-electronics/gnucap.git



More information about the Pkg-electronics-commits mailing list