[librasterlite2] 02/05: Use pkg-info.mk variables instead of dpkg-parsechangelog output.
Bas Couwenberg
sebastic at debian.org
Tue Sep 26 12:27:41 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository librasterlite2.
commit 5cbac723c33dc4625af521799fccf0718d59caeb
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Tue Sep 26 14:09:09 2017 +0200
Use pkg-info.mk variables instead of dpkg-parsechangelog output.
---
debian/changelog | 1 +
debian/rules | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 82baa93..dbdcf4e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ librasterlite2 (1.0.0~rc0+devel1-5) UNRELEASED; urgency=medium
* Bump Standards-Version to 4.1.0, changes: priority.
* Add patch to fix FTBFS with OpenJPEG 2.2.
(closes: #876808)
+ * Use pkg-info.mk variables instead of dpkg-parsechangelog output.
-- Bas Couwenberg <sebastic at debian.org> Sun, 24 Sep 2017 13:08:21 +0200
diff --git a/debian/rules b/debian/rules
index b876ff2..8e96c06 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,8 +9,11 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
# Verbose test output
export VERBOSE=1
-UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+(debian|dfsg|ds|deb)[0-9]*.*//; s/^[0-9]://')
-BUILD_DATE=$(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C date -u "+%d %B %Y" -f -)
+include /usr/share/dpkg/pkg-info.mk
+
+UPSTREAM_VERSION=$(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+(debian|dfsg|ds|deb)[0-9]*.*//')
+
+BUILD_DATE=$(shell LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)")
MANPAGES := $(wildcard debian/man/*.*.xml)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/librasterlite2.git
More information about the Pkg-grass-devel
mailing list