[Python-modules-commits] [simplejson] 05/06: make the build reproducible

Piotr Ożarowski piotr at moszumanska.debian.org
Sat Nov 5 21:00:42 UTC 2016


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

piotr pushed a commit to branch master
in repository simplejson.

commit 2a9de448b315b47b8b4130b5ce0410a1dd37d79a
Author: Juan Picca <jumapico at gmail.com>
Date:   Sat Nov 5 21:53:32 2016 +0100

    make the build reproducible
---
 debian/rules | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 1fe70eb..69873b3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,13 +6,17 @@ export PYBUILD_DESTDIR_python3=debian/python3-simplejson/
 export PYBUILD_DESTDIR_python3-dbg=debian/python3-simplejson-dbg/
 export PYBUILD_DESTDIR_pypy=debian/pypy-simplejson/
 
+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,python3,pypy,sphinxdoc --buildsystem=pybuild
 
 build-indep:
 	dh_testdir
 	dh_installdirs
-	sphinx-build -N -q -E -b html . \
+	sphinx-build $(SPHINXOPTS) -N -q -E -b html . \
 	 $(CURDIR)/debian/python-simplejson-doc/usr/share/doc/python-simplejson-doc/
 
 override_dh_sphinxdoc:

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



More information about the Python-modules-commits mailing list