[SCM] smokekde packaging branch, master, updated. debian/4.7.0-1-7-g4c5e98e

Pino Toscano pino at alioth.debian.org
Fri Sep 23 23:01:19 UTC 2011


The following commit has been merged in the master branch:
commit 880c920b317e43f75e76d829cc71f817cc4b0f45
Author: Pino Toscano <pino at debian.org>
Date:   Sat Sep 24 00:19:56 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 575eacf..95d88d5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,7 @@ smokekde (4:4.7.1-1) UNRELEASED; urgency=low
 
   [ Pino Toscano ]
   * Generate libraries shlibs based on the current version.
+  * Tighten the various libraries dependencies to the current version.
 
  -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Fri, 23 Sep 2011 10:47:45 -0500
 
diff --git a/debian/rules b/debian/rules
index d1729ce..7bb7856 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')
+
 override_dh_auto_configure:
 	dh_auto_configure -- \
 	  -DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed" \
@@ -14,6 +17,16 @@ override_dh_strip:
 
 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

-- 
smokekde packaging



More information about the pkg-kde-commits mailing list