[med-svn] [pirs] 05/07: Do not parse d/changelog
Andreas Tille
tille at debian.org
Thu Sep 14 08:53:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository pirs.
commit 09c88a507fe3a7e9b5a5f448da1b747dac54c9d1
Author: Andreas Tille <tille at debian.org>
Date: Thu Sep 14 10:43:30 2017 +0200
Do not parse d/changelog
---
debian/changelog | 1 +
debian/rules | 9 +++++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 5fe906e..fbca2c3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ pirs (2.0.2+dfsg-6) UNRELEASED; urgency=medium
* Depends: s/ttf-liberation/fonts-liberation/
Closes: #861367
* Drop autoreconf dependency which is useless with debhelper 10
+ * d/rules: Do not parse d/changelog
-- Andreas Tille <tille at debian.org> Thu, 14 Sep 2017 10:08:41 +0200
diff --git a/debian/rules b/debian/rules
index 3cac3bf..d9f7ee6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,8 +4,9 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
-PERLDIR := debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)
+include /usr/share/dpkg/default.mk
+
+PERLDIR := debian/$(DEB_SOURCE)/usr/lib/$(DEB_SOURCE)
confflags := --enable-pirs-diploid
DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture --query DEB_HOST_ARCH_CPU)
@@ -49,7 +50,7 @@ override_dh_link-arch:
dh_link -a
for pl in $(PERLDIR)/*.pl ; do \
plname=`basename $${pl}` ; \
- ln -s ../lib/$(DEBPKGNAME)/$${plname} debian/$(DEBPKGNAME)/usr/bin/`basename $${plname} .pl` ; \
+ ln -s ../lib/$(DEB_SOURCE)/$${plname} debian/$(DEB_SOURCE)/usr/bin/`basename $${plname} .pl` ; \
done
override_dh_installchangelogs:
@@ -57,4 +58,4 @@ override_dh_installchangelogs:
override_dh_installdocs-arch:
dh_installdocs -a
- cp -a src/stator/readme.txt debian/$(DEBPKGNAME)/usr/share/doc/$(DEBPKGNAME)/strator_readme.txt
+ cp -a src/stator/readme.txt debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/strator_readme.txt
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/pirs.git
More information about the debian-med-commit
mailing list