[libmr-tarantool-perl] 01/02: debian/rules: replace dpkg-parsechangelog call with /usr/share/dpkg/pkg-info.mk.
gregor herrmann
gregoa at debian.org
Thu Aug 3 20:54:31 UTC 2017
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libmr-tarantool-perl.
commit a944deda39913eb7e562d8ce0909a318d1cca001
Author: gregor herrmann <gregoa at debian.org>
Date: Thu Aug 3 16:54:14 2017 -0400
debian/rules: replace dpkg-parsechangelog call with /usr/share/dpkg/pkg-info.mk.
---
debian/rules | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/debian/rules b/debian/rules
index ca9f660..3eb2573 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,13 +3,10 @@
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/perl-makemaker.mk
-MAIN_MODULE = lib/MR/Tarantool/Box.pm
+# for DEB_VERSION_UPSTREAM
+include /usr/share/dpkg/pkg-info.mk
-DEBVERSION = $(shell dpkg-parsechangelog \
- |grep ^Version|awk '{print $$2}'|sed 's/-.*//' )
-PERLVERSION = $(shell grep '^[[:space:]]*$$VERSION' $(MAIN_MODULE) \
- |head -n 1 \
- |awk '{print $$3}'|sed "s/[';']//g" )
+MAIN_MODULE = lib/MR/Tarantool/Box.pm
install/libmr-tarantool-perl::
rm -fr debian/libmr-tarantool-perl/usr/share/man
@@ -22,5 +19,5 @@ tarball:
cd .. && tar \
--exclude=debian \
--exclude=.git \
- -czf libmr-tarantool-perl_$(DEBVERSION).orig.tar.gz \
- libmr-tarantool-perl-$(DEBVERSION)
+ -czf libmr-tarantool-perl_$(DEB_VERSION_UPSTREAM).orig.tar.gz \
+ libmr-tarantool-perl-$(DEB_VERSION_UPSTREAM)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmr-tarantool-perl.git
More information about the Pkg-perl-cvs-commits
mailing list