[python-shapely] 02/03: Set today & html_last_updated_fmt in SPHINXOPTS for reproducible builds.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Sun May 15 19:16:16 UTC 2016


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

sebastic pushed a commit to branch master
in repository python-shapely.

commit 9ebec90b5b8fc06f4595cb821246eb52c125f6a2
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sun May 15 21:04:01 2016 +0200

    Set today & html_last_updated_fmt in SPHINXOPTS for reproducible builds.
---
 debian/changelog | 1 +
 debian/rules     | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index d9eda12..cdd7eec 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 python-shapely (1.5.15-2) UNRELEASED; urgency=medium
 
   * Bump Standards-Version to 3.9.8, no changes.
+  * Set today & html_last_updated_fmt in SPHINXOPTS for reproducible builds.
 
  -- Bas Couwenberg <sebastic at debian.org>  Fri, 06 May 2016 00:49:43 +0200
 
diff --git a/debian/rules b/debian/rules
index 31f40db..8083614 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,6 +11,11 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
 export PYBUILD_NAME=shapely
 export LC_ALL=C.UTF-8
 
+BUILD_DATE := $(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C date -u "+%B %d, %Y" -f -)
+
+SPHINXOPTS := -D today=\"$(BILD_DATE)\"
+SPHINXOPTS += -D html_last_updated_fmt=\"$(BUILD_DATE)\"
+
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild --parallel
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/python-shapely.git



More information about the Pkg-grass-devel mailing list