[med-svn] r23843 - trunk/package_template
Andreas Tille
tille at moszumanska.debian.org
Thu Jun 22 09:06:08 UTC 2017
Author: tille
Date: 2017-06-22 09:05:52 +0000 (Thu, 22 Jun 2017)
New Revision: 23843
Modified:
trunk/package_template/rules
Log:
Rather use variables provided by dpkg
Modified: trunk/package_template/rules
===================================================================
--- trunk/package_template/rules 2017-06-20 19:20:00 UTC (rev 23842)
+++ trunk/package_template/rules 2017-06-22 09:05:52 UTC (rev 23843)
@@ -3,19 +3,15 @@
# DH_VERBOSE := 1
export LC_ALL=C.UTF-8
-# some helpful variables - uncomment them if needed
-# shamelessly stolen from http://jmtd.net/log/awk/
-#DEBVERS := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
-#VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
-#DEBFLAVOR := $(shell dpkg-parsechangelog | awk '/^Distribution:/ {print $$2}')
-#DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
-#DEBIAN_BRANCH := $(shell awk 'BEGIN{FS="[= ]+"} /debian-branch/ {print $$2}' debian/gbp.conf)
-#GIT_TAG := $(subst ~,_,$(VERSION))
+include /usr/share/dpkg/default.mk
+# this provides:
+# DEB_SOURCE: the source package name
+# DEB_VERSION: the full version of the package (epoch + upstream vers. + revision)
+# DEB_VERSION_EPOCH_UPSTREAM: the package's version without the Debian revision
+# DEB_VERSION_UPSTREAM_REVISION: the package's version without the Debian epoch
+# DEB_VERSION_UPSTREAM: the package's upstream version
+# DEB_DISTRIBUTION: the distribution(s) listed in the current entry of debian/changelog
-# alternatively to manually set those variables, you can
-# include /usr/share/dpkg/default.mk
-# and use what is set there.
-
# for hardening you might like to uncomment this:
# export DEB_BUILD_MAINT_OPTIONS=hardening=+all
More information about the debian-med-commit
mailing list