[pyepr] 01/01: Implement reproducible build
Antonio Valentino
a_valentino-guest at moszumanska.debian.org
Sat Jun 20 17:19:12 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 pyepr.
commit f17d01bd482559fc0a3cf894a04df32d56608288
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date: Sat Jun 20 19:11:35 2015 +0200
Implement reproducible build
---
debian/changelog | 1 +
debian/rules | 7 ++++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 5dcfea0..ebc2750 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ pyepr (0.9.3-1) UNRELEASED; urgency=medium
* Build-depends on python3-doc innstead of python-doc
* Update copyright file
* HTML doc is no longer compressed
+ * Make the package build reproducible (closes: #788246)
-- Antonio Valentino <antonio.valentino at tiscali.it> Sat, 28 Feb 2015 16:58:32 +0000
diff --git a/debian/rules b/debian/rules
index 9941ff7..c8a3400 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,11 @@
# 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)")
+SPHINXOPTS := -D today=\"$(BILD_DATE)\"
+SPHINXOPTS += -D html_last_updated_fmt=\"$(BUILD_DATE)\"
+
# Get the supported Python versions
#PY2VERS=$(shell pyversions -vr)
PY3VERS=$(shell py3versions -vr)
@@ -89,7 +94,7 @@ endif
override_dh_installdocs:
ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
- $(MAKE) -C doc html
+ $(MAKE) -C doc html SPHINXOPTS="$(SPHINXOPTS)"
else
mkdir -p doc/html
endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pyepr.git
More information about the Pkg-grass-devel
mailing list