[owslib] 03/03: Use pkg-info.mk variables instead of dpkg-parsechangelog output.
Bas Couwenberg
sebastic at debian.org
Wed Sep 27 12:56:40 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository owslib.
commit 3658dd599dfed124dcb24d6fb76b4e754fd414e1
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Wed Sep 27 14:56:22 2017 +0200
Use pkg-info.mk variables instead of dpkg-parsechangelog output.
---
debian/changelog | 1 +
debian/rules | 9 +++++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index d0cbf3d..a203fd1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ owslib (0.15.0-2) UNRELEASED; urgency=medium
* Team upload.
* Add python3-sphinx to build dependencies.
* Add autopkgtest to test installability.
+ * Use pkg-info.mk variables instead of dpkg-parsechangelog output.
-- Bas Couwenberg <sebastic at debian.org> Wed, 27 Sep 2017 14:54:04 +0200
diff --git a/debian/rules b/debian/rules
index 13d7852..bd619cf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,12 +2,13 @@
# -*- makefile -*-
export PYBUILD_NAME=owslib
-
-LAST_CHANGE=$(shell dpkg-parsechangelog -S Date)
-BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
-SPHINXOPTS = -D today="$(BUILD_DATE)"
export PYBUILD_AFTER_BUILD_python2 = cd docs;make html
+include /usr/share/dpkg/pkg-info.mk
+
+BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "@$(SOURCE_DATE_EPOCH)")
+SPHINXOPTS = -D today="$(BUILD_DATE)"
+
%:
dh $@ --with python2,python3,sphinxdoc --buildsystem pybuild --parallel
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/owslib.git
More information about the Pkg-grass-devel
mailing list