[libwx-perl] 01/03: Depend on wxperl-<key> to avoid version skew with libalien-wxwidgets-perl
gregor herrmann
gregoa at debian.org
Wed Aug 13 17:40:48 UTC 2014
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libwx-perl.
commit 4181d0aff2bb0be755ca396b5f2df87600379756
Author: Niko Tyni <ntyni at debian.org>
Date: Tue Aug 12 23:07:21 2014 +0300
Depend on wxperl-<key> to avoid version skew with libalien-wxwidgets-perl
Depend on the virtual package wxperl-<key>, provided by
libalien-wxwidgets-perl (>= 0.65+dfsg-3), to avoid version skew between
the packages. (Closes: #757855)
Implementation of get_perl_wx_version et al. by gregor herrmann
<gregoa at debian.org>.
---
debian/changelog | 6 ++++++
debian/control | 3 ++-
debian/rules | 11 ++++++++++-
3 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 7ab58f0..e3a4e6e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,14 @@
libwx-perl (1:0.9923-2) UNRELEASED; urgency=medium
+ [ gregor herrmann ]
* Use $Config{vendorarch} in debian/rules instead of /usr/lib/perl5.
* Refresh fix-fake-pod.patch (offset).
+ [ Niko Tyni ]
+ * Depend on the virtual package wxperl-<key>, now provided by
+ libalien-wxwidgets-perl, to avoid version skew between the
+ packages. (Closes: #757855)
+
-- gregor herrmann <gregoa at debian.org> Mon, 11 Aug 2014 16:05:13 +0200
libwx-perl (1:0.9923-1) unstable; urgency=medium
diff --git a/debian/control b/debian/control
index d1bba43..9c83e6a 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,7 @@ Section: perl
Priority: optional
Build-Depends: debhelper (>= 9.20120312~),
perl,
- libalien-wxwidgets-perl (>= 0.65+dfsg~),
+ libalien-wxwidgets-perl (>= 0.65+dfsg-3),
libextutils-xspp-perl (>= 0.1602),
libtest-pod-perl,
libyaml-perl,
@@ -28,6 +28,7 @@ Architecture: any
Depends: ${perl:Depends},
${shlibs:Depends},
${misc:Depends},
+ ${wxperl:Depends},
libalien-wxwidgets-perl (>= 0.65+dfsg~)
Description: interface to wxWidgets cross-platform GUI toolkit
wxPerl is an extension module allowing the creation of GUI (Graphical
diff --git a/debian/rules b/debian/rules
index 38d2d64..0056c41 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,9 +22,18 @@ override_dh_auto_install:
# remove bogus man page
rm -vf "$(TMP)/usr/share/man/man3/Wx::build::MakeMaker::Win32_MSVC.3pm"
+override_dh_gencontrol: get_perl_wx_version
+ dh_gencontrol -- -V'wxperl:Depends=wxperl-$(PERL_WX_VERSION)'
+
override_dh_installexamples:
dh_installexamples
chmod 0644 $(TMP)/usr/share/doc/$(PACKAGE)/examples/README.txt
find $(TMP)/usr/share/doc/$(PACKAGE)/examples -name '*.pl' -exec chmod 0755 {} \;
-.PHONY: $(DEBIAN_TARGETS)
+_DETECTION_CMD := perl -MAlien::wxWidgets -e '$$key = Alien::wxWidgets->key; $$key =~ s/_/-/g; print "$$key";'
+
+get_perl_wx_version: blib
+ : $(eval PERL_WX_VERSION := $(shell $(_DETECTION_CMD)))
+ @echo PERL_WX_VERSION detected as $(PERL_WX_VERSION)
+
+.PHONY: $(DEBIAN_TARGETS) get_perl_wx_version
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libwx-perl.git
More information about the Pkg-perl-cvs-commits
mailing list