[Pkg-gnupg-commit] [gpgme] 01/04: Add an epoch to python-pyme
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Thu Oct 13 00:01:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gpgme.
commit f36dcdaf8c66e82421db66010de1d272e58f7bc2
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date: Wed Oct 12 11:09:00 2016 -0400
Add an epoch to python-pyme
The older versions of python-pyme already have an epoch in their
version number in debian unstable, so we need to introduce an epoch
to the binary package so that it is upgradable.
---
debian/rules | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/debian/rules b/debian/rules
index 36885cb..30b2e53 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,7 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
export QT_SELECT := qt5
+export DEBIAN_VERSION = $(shell dpkg-parsechangelog | sed -n -e '/^Version:/s/.*: //p')
%:
dh $@ --with autoreconf,python2,python3 --parallel
@@ -17,3 +18,14 @@ override_dh_install:
override_dh_makeshlibs:
dh_makeshlibs -V
+
+# python-pyme needs an epoch number because previous versions had an
+# epoch. If we ever add an epoch to the source package, remove this
+# stanza.
+override_dh_gencontrol-arch:
+ dh_gencontrol
+ dpkg-gencontrol -ppython-pyme \
+ -v1:$(DEBIAN_VERSION) \
+ -Tdebian/python-pyme.substvars \
+ -Pdebian/python-pyme \
+ -Odebian/python-pyme/DEBIAN/control
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git
More information about the Pkg-gnupg-commit
mailing list