[SCM] qtruby packaging branch, master, updated. 36cb55de4ad40a469d6605960e3b5ee4036253b3

Pino Toscano pino at alioth.debian.org
Mon Sep 26 14:02:42 UTC 2011


The following commit has been merged in the master branch:
commit 36cb55de4ad40a469d6605960e3b5ee4036253b3
Author: Pino Toscano <pino at debian.org>
Date:   Mon Sep 26 15:52:48 2011 +0200

    tighten the various libraries dependencies to the current version
---
 debian/changelog |    1 +
 debian/rules     |   13 +++++++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 513242e..0b44a11 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,6 +25,7 @@ qtruby (4:4.7.1-0r1) UNRELEASED; urgency=low
     - manually export CXXFLAGS and LDFLAGS from dpkg-buildflags now,
       as dpkg-buildpackage does not do that anymore
     - generate libraries shlibs based on the current version
+    - tighten the various libraries dependencies to the current version
   * Update control:
     - ruby-qt4-dbg: make it break/replace kdebindings-dbg, and recommend
       libruby1.8-dbg
diff --git a/debian/rules b/debian/rules
index 70c37a7..94e717e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,8 @@
 #! /usr/bin/make -f
 
+pkgs_lib := $(filter-out %-dev %-dbg,$(filter lib%,$(shell dh_listpackages)))
+current_version := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
+
 #Always use Ruby 1.8.x
 RUBY_SITEARCH := $(shell ruby1.8 -rrbconfig -e 'puts Config::CONFIG["sitearch"]')
 CMAKE_FLAGS := \
@@ -29,6 +32,16 @@ override_dh_installexamples:
 
 override_dh_makeshlibs:
 	dh_makeshlibs -V
+# Generate shlibs local files
+	for pkg in $(pkgs_lib); do \
+		if test -e debian/$${pkg}/DEBIAN/shlibs ; then \
+			sed 's/>=[^)]*/= $(current_version)/' debian/$${pkg}/DEBIAN/shlibs >> debian/shlibs.local ;\
+		fi \
+	done
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -f debian/shlibs.local
 
 #Build-Depend on debhelper (>= 7.4.10) for --parallel
 #Build-Depend on pkg-kde-tools (>= 0.6.8) for the sodeps addon

-- 
qtruby packaging



More information about the pkg-kde-commits mailing list