[pytables] 10/20: Make build reproducible
Antonio Valentino
a_valentino-guest at moszumanska.debian.org
Fri Aug 14 19:00:06 UTC 2015
This is an automated email from the git hooks/post-receive script.
a_valentino-guest pushed a commit to branch master
in repository pytables.
commit 502c05eb9e49aa559ef409b96c166dda3dc9efc6
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date: Fri Aug 14 09:08:07 2015 +0000
Make build reproducible
---
debian/changelog | 2 ++
debian/rules | 9 +++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 502c69d..b0a431d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ pytables (3.2.1-1) UNRELEASED; urgency=medium
- update vcs URLs to the new recommended format
- remove deprecated XS-Testsuite field
- general update and reformatting (suggested by cme fix dpkg-control)
+ * debian/rules
+ - make build reproducible
* debian/patches
- refresh all patches
- drop 0003-Better-control-of-verbosity-in-unittests.patch and
diff --git a/debian/rules b/debian/rules
index ccfd2bb..ff52809 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,11 @@
PY2VERS = $(shell pyversions -r -v)
PY3VERS = $(shell py3versions -r -v)
+LAST_CHANGE=$(shell dpkg-parsechangelog -S Date)
+BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
+SPHINXOPTS := -D today=\"$(BILD_DATE)\"
+SPHINXOPTS += -D html_last_updated_fmt=\"$(BUILD_DATE)\"
+
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
export CFLAGS ?= -O0
endif
@@ -28,8 +33,8 @@ build-python%:
override_dh_auto_build: $(PY3VERS:%=build-python%)
ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
- $(MAKE) PWD=$(CURDIR)
- $(MAKE) -C doc PWD=$(CURDIR) latexpdf
+ $(MAKE) PWD=$(CURDIR) SPHINXOPTS="$(SPHINXOPTS)"
+ $(MAKE) -C doc PWD=$(CURDIR) SPHINXOPTS="$(SPHINXOPTS)" latexpdf
mv doc/build/latex/usersguide-*.pdf doc/usersguide.pdf
else
$(MAKE) ANNOUNCE.txt
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytables.git
More information about the debian-science-commits
mailing list