[med-svn] [relion] 23/36: d/rules: Override substvars for gui and bin packages

Roland Fehrenbacher rfehren-guest at moszumanska.debian.org
Mon Oct 13 20:41:11 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 3b271d22cb5a382cef1045fe2cd455d4be516e46
Author: Roland Fehrenbacher <rf at q-leap.de>
Date:   Mon Oct 13 12:37:46 2014 +0000

    d/rules: Override substvars for gui and bin packages
---
 debian/rules | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index d294912..6698b1f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,8 +17,10 @@ endif
 # include defs of all DEB_HOST_*/DEB_BUILD_* vars
 include /usr/share/dpkg/architecture.mk
 
+RELION_API_VERSION := $(shell grep 'AC_SUBST.*RELION_API_VERSION' configure.ac \
+  | sed 's/.*\[\(.*\)\])$/\1/g')
 CONFIGURE_COMMON := dh_auto_configure -- \
-  --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) -program-prefix="relion_" 
+  --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
 
 %:
 	dh $@ --parallel --with autoreconf
@@ -45,6 +47,18 @@ override_dh_prep:
 override_dh_auto_install:
 	dh_install
 
+override_dh_shlibdeps:
+	dh_shlibdeps
+	# Override substvars for gui and bin packages to make sure they use
+	# the correct lib package
+	for pkg in relion-gui relion-bin relion-bin-mpi; do \
+	  mpi=""; [ "$$pkg" = "relion-bin-mpi" ] && mpi="-mpi"; \
+	  echo -e "\n-- Info: Run dpkg-shlibdeps for $$pkg --\n\n"; \
+	  dpkg-shlibdeps -e debian/$${pkg}/usr/bin/relion_* \
+	    -Sdebian/librelion$${mpi}$(RELION_API_VERSION) \
+	    -T debian/$${pkg}.substvars; \
+	done
+
 describe-current-version:
 	git describe --tags upstream | sed 's,^release-,,;s,-,+,;s,-,~,;'
 

-- 
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