[pytables] 10/15: No longer use dpkg-parsechangelog

Antonio Valentino a_valentino-guest at moszumanska.debian.org
Fri Jun 30 18:07:43 UTC 2017


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 bad066c3dafd93e02ab7f6a856e76fd42086692d
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date:   Wed Jun 28 22:47:07 2017 +0000

    No longer use dpkg-parsechangelog
---
 debian/changelog | 3 +++
 debian/rules     | 7 ++++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 72cb16c..e1bf7a6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -15,6 +15,9 @@ pytables (3.4.2-1) UNRELEASED; urgency=medium
     - add build dependency from python(3)-sphinx-rtd-theme,
       python(3)-ipython and python(3)-numpydoc
   * Remove -dbg packages (now they are built automatically)
+  * debian/rules
+    - no longer use dpkg-parsechangelog to determine the current
+      package timestamp
 
  -- Antonio Valentino <antonio.valentino at tiscali.it>  Wed, 28 Jun 2017 20:25:32 +0000
 
diff --git a/debian/rules b/debian/rules
index 976ee2b..26698b1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,19 +9,20 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
 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)")
+include /usr/share/dpkg/pkg-info.mk
+BUILD_DATE="$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d)"
 SPHINXOPTS := -D today=\"$(BUILD_DATE)\"
 SPHINXOPTS += -D html_last_updated_fmt=\"$(BUILD_DATE)\"
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-export CFLAGS ?= -O0
+  export CFLAGS ?= -O0
 endif
 
 ifneq ($(wildcard /usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial/libhdf5.so),)
   export HDF5_DIR := /usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial
 endif
 
+
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=python_distutils
 

-- 
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