[Python-modules-commits] r33067 - in packages/python-amqp/trunk/debian (rules)

fladi at users.alioth.debian.org fladi at users.alioth.debian.org
Wed Jun 24 09:41:35 UTC 2015


    Date: Wednesday, June 24, 2015 @ 09:41:34
  Author: fladi
Revision: 33067

Allow for reproducible builds by setting a fixed date in the documentation, thanks to Juan Picca for the patch (Closes: #788487).

Modified:
  packages/python-amqp/trunk/debian/rules

Modified: packages/python-amqp/trunk/debian/rules
===================================================================
--- packages/python-amqp/trunk/debian/rules	2015-06-24 09:39:03 UTC (rev 33066)
+++ packages/python-amqp/trunk/debian/rules	2015-06-24 09:41:34 UTC (rev 33067)
@@ -3,6 +3,9 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+LAST_CHANGE=$(shell dpkg-parsechangelog -S Date)
+BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
+
 export PYBUILD_NAME=amqp
 
 %:
@@ -10,7 +13,7 @@
 
 override_dh_auto_build:
 	dh_auto_build
-	PYTHONPATH=. sphinx-build -b html -N docs/ docs/.build/html
+	PYTHONPATH=. sphinx-build -D today="$(BUILD_DATE)" -b html -N docs/ docs/.build/html
 
 override_dh_clean:
 	rm -rf docs/.build




More information about the Python-modules-commits mailing list