[liblas] 04/06: Use pkg-info.mk variables instead of dpkg-parsechangelog output.
Bas Couwenberg
sebastic at debian.org
Fri Jun 23 16:31:27 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch experimental
in repository liblas.
commit 84caabb9deacc077f4fca15164dbbbe13b23bdba
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Fri Jun 23 17:10:41 2017 +0200
Use pkg-info.mk variables instead of dpkg-parsechangelog output.
---
debian/changelog | 1 +
debian/rules | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index a3589ca..7c877f8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ liblas (1.8.1-4~exp3) UNRELEASED; urgency=medium
* Require at least libgdal-dev 2.2.1~ for experimental builds.
* Add autopkgtest to test installability.
* Bump Standards-Versiont to 4.0.0, no changes.
+ * Use pkg-info.mk variables instead of dpkg-parsechangelog output.
-- Bas Couwenberg <sebastic at debian.org> Fri, 23 Jun 2017 17:08:08 +0200
diff --git a/debian/rules b/debian/rules
index a8f8f42..9eef243 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,8 +3,11 @@
# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
-UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+.*//; s/^[0-9]://')
-BUILD_DATE=$(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C date -u "+%d %B %Y" -f -)
+include /usr/share/dpkg/pkg-info.mk
+
+UPSTREAM_VERSION=$(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')
+
+BUILD_DATE=$(shell $(SOURCE_DATE_EPOCH) | LC_ALL=C date -u "+%d %B %Y" -f -)
MANPAGES:=$(wildcard debian/man/*.*.xml)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/liblas.git
More information about the Pkg-grass-devel
mailing list