[SCM] Debian Qt/KDE packaging tools branch, master, updated. debian/0.6.2
Modestas Vainius
modax at alioth.debian.org
Sat Feb 13 22:55:32 UTC 2010
The following commit has been merged in the master branch:
commit c5ca73ca14a116838cf61d330908facffc54f563
Author: Modestas Vainius <modestas at vainius.eu>
Date: Sat Feb 13 15:53:48 2010 +0200
Add qt-kde-team/1/library-packages.mk.
* Add qt-kde-team/1/library-packages.mk which is capable of:
- generating and handling ${allLibraries}, ${kde43Libraries} substs;
- generating strict local shlibs.
---
debian/changelog | 3 +++
qt-kde-team/1/library-packages.mk | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 6d12f23..d2aaeb2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,9 @@ pkg-kde-tools (0.6.2~pre4) UNRELEASED; urgency=low
* Omit usr/lib/kde4/ from dh_makeshlibs by default (debian-qt-kde.mk, kde.mk,
dh kde addon).
* dh kde addon: exclude kde documentation from dh_compress by default.
+ * Add qt-kde-team/1/library-packages.mk which is capable of:
+ - generating and handling ${allLibraries}, ${kde43Libraries} substs;
+ - generating strict local shlibs.
-- Modestas Vainius <modax at debian.org> Sat, 13 Feb 2010 02:29:05 +0200
diff --git a/qt-kde-team/1/library-packages.mk b/qt-kde-team/1/library-packages.mk
new file mode 100644
index 0000000..84f0ced
--- /dev/null
+++ b/qt-kde-team/1/library-packages.mk
@@ -0,0 +1,37 @@
+_BINARYVERSION := $(shell dpkg-parsechangelog | grep '^Version: ' | sed 's/^Version: //')
+
+# All library packages
+DEB_LIBRARY_PACKAGES := $(filter-out %-dev,$(filter lib%,$(DEB_ARCH_PACKAGES)))
+ifneq (,$(DEB_ALL_LIBRARIES_SUBST_PACKAGES))
+
+DEB_ALL_LIBRARIES_SUBST := $(foreach pkg,$(DEB_LIBRARY_PACKAGES),$(patsubst %,% (= $(_BINARYVERSION)),,$(pkg)))
+
+$(patsubst %,binary-predeb/%,$(DEB_ALL_LIBRARIES_SUBST_PACKAGES)):: binary-predeb/%:
+ test -f debian/$(cdbs_curpkg).substvars || touch debian/$(cdbs_curpkg).substvars
+ echo 'allLibraries=$(DEB_ALL_LIBRARIES_SUBST)' >> debian/$(cdbs_curpkg).substvars
+
+endif
+
+# KDE 4.3 library packages
+ifneq (,$(DEB_KDE43_LIBRARY_PACKAGES))
+ifneq (,$(DEB_KDE43_LIBRARIES_SUBST_PACKAGES))
+DEB_KDE43_LIBRARIES_SUBST := $(foreach pkg,$(DEB_KDE43_LIBRARY_PACKAGES),$(patsubst %,% (= $(_BINARYVERSION)),,$(pkg)))
+
+$(patsubst %,binary-predeb/%,$(DEB_KDE43_LIBRARIES_SUBST_PACKAGES)):: binary-predeb/%:
+ test -f debian/$(cdbs_curpkg).substvars || touch debian/$(cdbs_curpkg).substvars
+ echo 'kde43Libraries=$(DEB_KDE43_LIBRARIES_SUBST)' >> debian/$(cdbs_curpkg).substvars
+endif
+endif
+
+
+# Generate shlibs local files if requested
+ifneq (,$(DEB_STRICT_LOCAL_SHLIBS_PACKAGES))
+$(patsubst %,binary-fixup/%,$(DEB_STRICT_LOCAL_SHLIBS_PACKAGES)) :: binary-fixup/%: binary-strip/%
+ if test -e debian/$(cdbs_curpkg)/DEBIAN/shlibs ; then \
+ sed 's/>=[^)]*/= $(_BINARYVERSION)/' debian/$(cdbs_curpkg)/DEBIAN/shlibs >> debian/shlibs.local ;\
+ fi
+
+clean::
+ rm -f debian/shlibs.local
+
+endif
--
Debian Qt/KDE packaging tools
More information about the pkg-kde-commits
mailing list