From ce4e00ae43d7a1343b80e42f947b835431388dc6 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Fri, 26 Jun 2015 15:41:56 +0200 Subject: [PATCH] Makes build reproducible thanks to Juan Picca (Closes: #789751). Rewritten-From: 12cb71e629f6c4a2060954e4e7efaacadd81d7e8 --- debian/changelog | 6 ++++++ debian/rules | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index f3b861e..830f953 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-pysaml2 (2.4.0-2) unstable; urgency=medium + + * Makes build reproducible thanks to Juan Picca (Closes: #789751). + + -- Thomas Goirand Fri, 26 Jun 2015 15:41:09 +0200 + python-pysaml2 (2.4.0-1) unstable; urgency=medium * New upstream release. diff --git a/debian/rules b/debian/rules index d68645f..46a3e27 100755 --- a/debian/rules +++ b/debian/rules @@ -6,6 +6,9 @@ PYTHONS:=$(shell pyversions -vr) UPSTREAM_GIT = git://github.com/rohe/pysaml2.git -include /usr/share/openstack-pkg-tools/pkgos.make +LAST_CHANGE = $(shell dpkg-parsechangelog -S Date) +BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)") + %: dh $@ --buildsystem=python_distutils --with python2,sphinxdoc @@ -41,7 +44,7 @@ override_dh_clean: rm -rf build override_dh_sphinxdoc: - sphinx-build -b html doc debian/python-pysaml2-doc/usr/share/doc/python-pysaml2-doc/html + sphinx-build -D today="$(BUILD_DATE)" -b html doc debian/python-pysaml2-doc/usr/share/doc/python-pysaml2-doc/html dh_sphinxdoc -O--buildsystem=python_distutils # Commands not to run -- 2.45.2