[python-shapely] 04/05: Use pkg-info.mk variables instead of dpkg-parsechangelog output.

Bas Couwenberg sebastic at debian.org
Mon Jun 26 06:05:19 UTC 2017


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository python-shapely.

commit 07bf666993f0432e8dd2e9973c22e4101bef20f3
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Mon Jun 26 07:56:10 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 c30b47b..a45503a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ python-shapely (1.6~b4-1~exp2) UNRELEASED; urgency=medium
   * Bump Standards-Version to 4.0.0, no changes.
   * Add autopkgtest to test installability.
   * Enable PIE hardening buildflags.
+  * Use pkg-info.mk variables instead of dpkg-parsechangelog output.
 
  -- Bas Couwenberg <sebastic at debian.org>  Mon, 26 Jun 2017 07:54:42 +0200
 
diff --git a/debian/rules b/debian/rules
index 3cd7326..f6a1a3b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,9 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 export PYBUILD_NAME=shapely
 export LC_ALL=C.UTF-8
 
-BUILD_DATE := $(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C date -u "+%B %d, %Y" -f -)
+include /usr/share/dpkg/pkg-info.mk
+
+BUILD_DATE := $(shell $(SOURCE_DATE_EPOCH) | LC_ALL=C date -u "+%B %d, %Y" -f -)
 
 SPHINXOPTS := -D today=\"$(BILD_DATE)\"
 SPHINXOPTS += -D html_last_updated_fmt=\"$(BUILD_DATE)\"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/python-shapely.git



More information about the Pkg-grass-devel mailing list