[hamradio-commits] [soapysdr] 10/11: Include pkg-info.mk in debian/rules instead of setting DEB_VERSION manually
Andreas E. Bombe
aeb at moszumanska.debian.org
Tue Jun 27 01:09:00 UTC 2017
This is an automated email from the git hooks/post-receive script.
aeb pushed a commit to branch master
in repository soapysdr.
commit 1b7ab0a04f6ee0a3a8294f15fd61b5325e06c99a
Author: Andreas Bombe <aeb at debian.org>
Date: Tue Jun 27 02:55:44 2017 +0200
Include pkg-info.mk in debian/rules instead of setting DEB_VERSION manually
---
debian/changelog | 2 ++
debian/rules | 6 +++---
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 3ea2ce2..7d31f0f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ soapysdr (0.6.0-1) UNRELEASED; urgency=medium
* Bump Standards-Version to 4.0.0, no changes required
* Fix CMake warning for mismatched logical block arguments in version-string
patch
+ * Include pkg-info.mk in debian/rules instead of setting DEB_VERSION
+ manually with dpkg-parsechangelog
-- Andreas Bombe <aeb at debian.org> Tue, 27 Jun 2017 01:15:14 +0200
diff --git a/debian/rules b/debian/rules
index fd1f750..054d941 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,12 +4,12 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+# for definition of DEB_VERSION
+include /usr/share/dpkg/pkg-info.mk
+
# extract the architecture for setting the library path suffix
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
-# extract the last section of the changelog version for extra info
-DEB_VERSION ?= $(shell dpkg-parsechangelog -S Version)
-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/soapysdr.git
More information about the pkg-hamradio-commits
mailing list