[Pkg-electronics-commits] [gnucap] 44/47: use debian-specific soname

felix salfelder felix-guest at moszumanska.debian.org
Mon Sep 26 10:38:06 UTC 2016


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

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

commit 5af63d7dcce26ef54d20bcc792bac9410c315299
Author: Felix Salfelder <felix at salfelder.org>
Date:   Mon Sep 12 14:52:53 2016 +0100

    use debian-specific soname
---
 debian/control                                       |  4 ++--
 debian/{libgnucap-0.install => libgnucap-d0.install} |  0
 debian/rules                                         | 11 +++++++----
 3 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/debian/control b/debian/control
index e16e0ed..c71e521 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,7 @@ Homepage: http://gnucap.org
 Vcs-Git: git://anonscm.debian.org/pkg-electronics/gnucap.git
 Vcs-Browser: https://anonscm.debian.org/git/pkg-electronics/gnucap
 
-Package: libgnucap-0
+Package: libgnucap-d0
 Architecture: any
 Multi-Arch: same
 Section: libs
@@ -37,7 +37,7 @@ Description: GNU Circuit Analysis package, main executable
 Package: libgnucap-dev
 Architecture: any
 Section: libdevel
-Depends: ${shlibs:Depends}, ${misc:Depends}, libgnucap-0 (= ${binary:Version})
+Depends: ${shlibs:Depends}, ${misc:Depends}, libgnucap-d0 (= ${binary:Version})
 Description: GNU Circuit Analysis package, development headers
  GNUCAP is a general purpose circuit simulator. It performs nonlinear
  dc and transient analyses, Fourier analysis, and ac analysis
diff --git a/debian/libgnucap-0.install b/debian/libgnucap-d0.install
similarity index 100%
rename from debian/libgnucap-0.install
rename to debian/libgnucap-d0.install
diff --git a/debian/rules b/debian/rules
index e63090a..a38d850 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,9 @@ version_no_epoch = $(shell v="$(version_full)"; echo $${v\#\#*:})
 tarball_version = $(shell v="$(version_no_epoch)"; echo $${v%%-*})
 upstream_commit = $(shell v="$(tarball_version)"; echo $${v\#\#*~})
 
+# take from control?
+SONAME=libgnucap-d0
+
 # upstream_commit_short = $(shell echo $(upstream_commit) | sed -e 's/\(........\).*/\1/')
 #
 UPSTREAM_REPO=git://git.savannah.gnu.org/gnucap.git
@@ -41,11 +44,11 @@ override_dh_auto_build:
 	        LDFLAGS="$(LIB_LDFLAGS) \
 	                 -Wl,--enable-new-dtags \
 	                 -Wl,-rpath -Wl,${pkglibdir} \
-	                 -Wl,-soname -Wl,libgnucap-0.so \
+	                 -Wl,-soname -Wl,${SONAME}.so \
 	                  $(LDFLAGS)" \
 	        CPPFLAGS="$(CPPFLAGS)" \
 	        CXXFLAGS="$(CXXFLAGS)"
-	cd $(CURDIR)/lib/O; $(LN_S) libgnucap.so libgnucap-0.so
+	cd $(CURDIR)/lib/O; $(LN_S) libgnucap.so ${SONAME}.so
 
 	$(MAKE) -C modelgen \
 	        LDFLAGS="$(EXEC_LDFLAGS) $(LDFLAGS)" \
@@ -71,8 +74,8 @@ override_dh_auto_install:
 	        DESTDIR=$(CURDIR)/debian/tmp
 	mkdir -p $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
 	mv $(CURDIR)/debian/tmp/usr/lib/libgnucap.so \
-	   $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libgnucap-0.so
-	cd $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH); $(LN_S) libgnucap-0.so libgnucap.so
+	   $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/${SONAME}.so
+	cd $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH); $(LN_S) ${SONAME}.so libgnucap.so
 
 	$(MAKE) install -C modelgen \
 	        DESTDIR=$(CURDIR)/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