[med-svn] [relion] 30/36: d/rules: Properly detect and use RELION_SO_VERSION
Roland Fehrenbacher
rfehren-guest at moszumanska.debian.org
Mon Oct 13 20:41:12 UTC 2014
This is an automated email from the git hooks/post-receive script.
rfehren-guest pushed a commit to branch master
in repository relion.
commit ca28bc13ee42d4cba913c05cbcda5d827ccfecf7
Author: Roland Fehrenbacher <rf at q-leap.de>
Date: Mon Oct 13 17:16:55 2014 +0000
d/rules: Properly detect and use RELION_SO_VERSION
---
debian/{librelion-mpi1.3.install => librelion-mpi1.3-1.install} | 0
debian/{librelion1.3.install => librelion1.3-1.install} | 0
debian/rules | 6 +++++-
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/debian/librelion-mpi1.3.install b/debian/librelion-mpi1.3-1.install
similarity index 100%
rename from debian/librelion-mpi1.3.install
rename to debian/librelion-mpi1.3-1.install
diff --git a/debian/librelion1.3.install b/debian/librelion1.3-1.install
similarity index 100%
rename from debian/librelion1.3.install
rename to debian/librelion1.3-1.install
diff --git a/debian/rules b/debian/rules
index ac5c9d1..ef90b37 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,6 +23,10 @@ RELION_API_VERSION := $(shell \
grep 'AC_SUBST.*RELION_API_VERSION' $(CURDIR)/configure.ac \
| sed 's/.*(.*\[\(.*\)\])$$/\1/g')
$(info Relion API Version = $(RELION_API_VERSION))
+RELION_SO_CUR_INTERFACE := $(shell \
+ grep 'AC_SUBST.*RELION_SO_VERSION' $(CURDIR)/configure.ac \
+ | sed 's/.*(.*\[\([0-9]*\):[0-9]*:[0-9]*\])$$/\1/g')
+$(info Relion most recent (current) lib interface = $(RELION_SO_CUR_INTERFACE))
CONFIGURE_COMMON := dh_auto_configure -- \
--libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
@@ -66,7 +70,7 @@ override_dh_shlibdeps:
mpi=""; [ "$$pkg" = "relion-bin-mpi" ] && mpi="-mpi"; \
echo -e "\n\n-- Info: Run dpkg-shlibdeps for $$pkg --\n"; \
dpkg-shlibdeps -e debian/$${pkg}/usr/bin/relion_* \
- -Sdebian/librelion$${mpi}$(RELION_API_VERSION) \
+ -Sdebian/librelion$${mpi}$(RELION_API_VERSION)-$(RELION_SO_CUR_INTERFACE) \
-Tdebian/$${pkg}.substvars; \
done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/relion.git
More information about the debian-med-commit
mailing list