]> review.fuel-infra Code Review - packages/trusty/python-pysaml2.git/commitdiff
Makes build reproducible thanks to Juan Picca (Closes: #789751).
authorThomas Goirand <zigo@debian.org>
Fri, 26 Jun 2015 13:41:56 +0000 (15:41 +0200)
committerThomas Goirand <zigo@debian.org>
Fri, 26 Jun 2015 13:41:56 +0000 (15:41 +0200)
Rewritten-From: 12cb71e629f6c4a2060954e4e7efaacadd81d7e8

debian/changelog
debian/rules

index f3b861eab1d36bb92d98187e9050796b86ff05c2..830f9537145f592fb85c0cd8d48acab942a9fd23 100644 (file)
@@ -1,3 +1,9 @@
+python-pysaml2 (2.4.0-2) unstable; urgency=medium
+
+  * Makes build reproducible thanks to Juan Picca (Closes: #789751).
+
+ -- Thomas Goirand <zigo@debian.org>  Fri, 26 Jun 2015 15:41:09 +0200
+
 python-pysaml2 (2.4.0-1) unstable; urgency=medium
 
   * New upstream release.
index d68645fedae92b29800742f019ce712e47002634..46a3e27e09b134414001548e156111c0b7a8e366 100755 (executable)
@@ -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