[DRE-commits] [ruby-httparty] 08/10: Use DEB_VERSION_UPSTREAM instead of parsing changelog

Cédric Boutillier boutil at moszumanska.debian.org
Sat Nov 25 21:37:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository ruby-httparty.

commit 89fc1be9e6f8ab520cafac3e4c8018bcaedb513f
Author: Cédric Boutillier <boutil at debian.org>
Date:   Sat Nov 25 21:37:11 2017 +0100

    Use DEB_VERSION_UPSTREAM instead of parsing changelog
---
 debian/changelog | 1 +
 debian/rules     | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ac204ed..93fd00e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ ruby-httparty (0.15.6-1) unstable; urgency=medium
   * Refresh skip_failing_test.patch
   * New patch git-in-gemspecs.patch to remove use of git in gemspecs
   * Build-depend on ruby-webmock
+  * Use DEB_VERSION_UPSTREAM instead of parsing changelog
 
  -- Cédric Boutillier <boutil at debian.org>  Sat, 25 Nov 2017 10:41:34 +0100
 
diff --git a/debian/rules b/debian/rules
index e3e4c78..94c13de 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,14 +11,14 @@
 # If you need to specify the .gemspec (eg there is more than one)
 #export DH_RUBY_GEMSPEC=gem.gemspec
 
-UPSTREAM_VERSION = $(shell dpkg-parsechangelog | awk '{ if ($$1 == "Version:") { print($$2) } }' | cut -d - -f 1)
+include /usr/share/dpkg/pkg-info.mk
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
 
 override_dh_installman:
 	help2man --no-info --include=debian/httparty.h2m \
-          -h "-I lib/ bin/httparty -h"  --version-string $(UPSTREAM_VERSION) /usr/bin/ruby  > httparty.1
+          -h "-I lib/ bin/httparty -h"  --version-string $(DEB_VERSION_UPSTREAM) /usr/bin/ruby  > httparty.1
 	patch httparty.1 < debian/httparty.1.diff
 	dh_installman
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-httparty.git



More information about the Pkg-ruby-extras-commits mailing list