[Debian-astro-commits] [iraf] 04/06: Use SOURCE_DATE_EPOCH for package date

Ole Streicher olebole at moszumanska.debian.org
Fri Dec 15 13:03:53 UTC 2017


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

olebole pushed a commit to branch master
in repository iraf.

commit 2c846af5278f9f044b5b8717c427fed2dcaa772c
Author: Ole Streicher <olebole at debian.org>
Date:   Fri Dec 15 13:32:35 2017 +0100

    Use SOURCE_DATE_EPOCH for package date
---
 debian/rules | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/debian/rules b/debian/rules
index dbcd9b2..6ce4e1a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,6 @@
 #!/usr/bin/make -f
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+include /usr/share/dpkg/pkg-info.mk
 
 %:
 	dh $@
@@ -14,8 +13,8 @@ export IRAFARCH=$(shell ./unix/hlib/irafarch.sh)
 
 override_dh_auto_configure:
 	mkdir -p $(BUILD_TMP)
-	sed "s/__VERSION__/$(shell dpkg-parsechangelog -S Version)/" -i unix/hlib/zzsetenv.def
-	sed "s/__DATE__/$(shell dpkg-parsechangelog -S Date)/" -i unix/hlib/zzsetenv.def
+	sed "s/__VERSION__/$(DEB_VERSION)/" -i unix/hlib/zzsetenv.def
+	sed "s/__DATE__/$(shell date -uRd @$(SOURCE_DATE_EPOCH))/" -i unix/hlib/zzsetenv.def
 	./install -v --term xterm \
                   --bindir $(BUILD_TMP)/bin \
 	          --cache $(BUILD_TMP)/cache \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/iraf.git



More information about the Debian-astro-commits mailing list