[Python-modules-commits] r33087 - in packages/python-scrapy/trunk/debian (changelog rules)

yoh at users.alioth.debian.org yoh at users.alioth.debian.org
Wed Jun 24 20:23:32 UTC 2015


    Date: Wednesday, June 24, 2015 @ 20:23:31
  Author: yoh
Revision: 33087

make build "reproducible" by fixing date to the one from debian/changelog

Closes: #788593). Thanks Juan Picca for the patch!

Modified:
  packages/python-scrapy/trunk/debian/changelog
  packages/python-scrapy/trunk/debian/rules

Modified: packages/python-scrapy/trunk/debian/changelog
===================================================================
--- packages/python-scrapy/trunk/debian/changelog	2015-06-24 20:23:25 UTC (rev 33086)
+++ packages/python-scrapy/trunk/debian/changelog	2015-06-24 20:23:31 UTC (rev 33087)
@@ -1,11 +1,15 @@
 python-scrapy (1.0.0-1) UNRELEASED; urgency=medium
 
   * Team upload
+  * Fresh upstream release (Closes: #789606)
   * debian/watch
     - use pypi.debian.net redirector to fetch the sources
   * debian/
     - do not deal with scrapy-ws.py script any longer -- was moved to
       scrapy-jsonrpc package (N/A from Debian archive ATM)
+  * debian/rules
+    - make build "reproducible" by fixing date to the one from
+      debian/changelog (Closes: #788593). Thanks Juan Picca for the patch!
 
  -- Yaroslav Halchenko <debian at onerussian.com>  Wed, 24 Jun 2015 16:00:54 -0400
 

Modified: packages/python-scrapy/trunk/debian/rules
===================================================================
--- packages/python-scrapy/trunk/debian/rules	2015-06-24 20:23:25 UTC (rev 33086)
+++ packages/python-scrapy/trunk/debian/rules	2015-06-24 20:23:31 UTC (rev 33087)
@@ -3,12 +3,16 @@
 
 export DH_ALWAYS_EXCLUDE=license.txt:_sources/:.buildinfo:*.egg
 
+LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
+BUILD_DATE  = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
+SPHINXOPTS := -D html_last_updated_fmt=\"$(BUILD_DATE)\"
+
 %:
 	dh $@ --with python2,bash_completion
 
 override_dh_auto_install:
 	dh_auto_install
-	cd docs/ && $(MAKE) html
+	cd docs/ && $(MAKE) html SPHINXOPTS="$(SPHINXOPTS)"
 
 override_dh_install:
 	dh_install -Xjquery.js




More information about the Python-modules-commits mailing list