[geographiclib] 01/02: Use pkg-info.mk variables instead of dpkg-parsechangelog output.
Bas Couwenberg
sebastic at debian.org
Wed Sep 27 12:51:27 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository geographiclib.
commit aeeb4b842e84752173bcbd9a83a02309dd915c95
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Wed Sep 27 14:50:02 2017 +0200
Use pkg-info.mk variables instead of dpkg-parsechangelog output.
---
debian/changelog | 1 +
debian/rules | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index c2ac7d0..d9d3c2b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ geographiclib (1.48-2) UNRELEASED; urgency=medium
* Change priority for libgeographic-dbg from extra to optional.
* Bump Standards-Version to 4.1.0, changes: priority.
+ * Use pkg-info.mk variables instead of dpkg-parsechangelog output.
-- Bas Couwenberg <sebastic at debian.org> Sun, 24 Sep 2017 12:53:58 +0200
diff --git a/debian/rules b/debian/rules
index 81768cb..23316c2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,9 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export PYBUILD_NAME=geographiclib
-UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+.*//; s/^[0-9]://')
+include /usr/share/dpkg/pkg-info.mk
+
+UPSTREAM_VERSION=$(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')
%:
dh $@ --with autoreconf,python2,python3,pkgkde_symbolshelper --parallel
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/geographiclib.git
More information about the Pkg-grass-devel
mailing list