[Python-modules-commits] [nose2] 01/01: d/rules: Set $SOURCE_DATE_EPOCH to the d/changelog Timestamp for reproducible builds of the manpage.

Barry Warsaw barry at moszumanska.debian.org
Mon Sep 26 15:19:32 UTC 2016


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

barry pushed a commit to branch master
in repository nose2.

commit 66e3690aac230d3f711b7f7418480840bad91214
Author: Barry Warsaw <barry at python.org>
Date:   Mon Sep 26 11:19:27 2016 -0400

    d/rules: Set $SOURCE_DATE_EPOCH to the d/changelog Timestamp for reproducible builds of the manpage.
---
 debian/changelog |  2 ++
 debian/rules     | 10 +++++++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ddf79b5..6988632 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,7 @@
 nose2 (0.6.5-2) UNRELEASED; urgency=medium
 
+  * d/rules: Set $SOURCE_DATE_EPOCH to the d/changelog Timestamp for
+    reproducible builds of the manpage.
   * d/watch: Use https URL.
 
  -- Barry Warsaw <barry at debian.org>  Mon, 15 Aug 2016 16:19:52 -0400
diff --git a/debian/rules b/debian/rules
index ce68ff2..00472e4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,9 @@
 
 #export DH_VERBOSE=1
 export PYBUILD_NAME=nose2
-export pkgversion=$(shell dpkg-parsechangelog --show-field version)
+
+export PKG_VERSION=$(shell dpkg-parsechangelog --show-field version)
+export SOURCE_DATE_EPOCH=$(shell dpkg-parsechangelog -S Timestamp)
 
 
 %:
@@ -20,10 +22,12 @@ override_dh_auto_install:
 
 override_dh_installman:
 	PYTHONPATH=$(CURDIR) help2man -n nose2 -s 1 -o debian/nose2.1 \
-		 --version-string=$(pkgversion) --no-discard-stderr --no-info \
+		 --version-string=$(PKG_VERSION) \
+		 --no-discard-stderr --no-info \
 		 debian/python-nose2/usr/bin/nose2
 	PYTHONPATH=$(CURDIR) help2man -n nose2-3 -s 1 -o debian/nose2-3.1 \
-		 --version-string=$(pkgversion) --no-discard-stderr --no-info \
+		 --version-string=$(PKG_VERSION) \
+		 --no-discard-stderr --no-info \
 		 debian/python3-nose2/usr/bin/nose2-3
 	cp debian/nose2.1   debian/nose2-2.7.1
 	cp debian/nose2-3.1 debian/nose2-3.5.1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/nose2.git



More information about the Python-modules-commits mailing list