[med-svn] [reprof] 01/01: d/rules: do not parse d/changelog; Upload to unstable

Andreas Tille tille at debian.org
Fri Nov 17 14:38:18 UTC 2017


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

tille pushed a commit to branch master
in repository reprof.

commit 5ad0e542f3287e10ce02bf3bd7ed061e86729996
Author: Andreas Tille <tille at debian.org>
Date:   Fri Nov 17 15:37:02 2017 +0100

    d/rules: do not parse d/changelog; Upload to unstable
---
 debian/changelog | 5 +++--
 debian/rules     | 5 ++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 89a1b28..da6d294 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,11 @@
-reprof (1.0.1-5) UNRELEASED; urgency=medium
+reprof (1.0.1-5) unstable; urgency=medium
 
   * Moved packaging from SVN to Git
   * debhelper 10
   * Standards-Version: 4.1.1
+  * d/rules: do not parse d/changelog
 
- -- Andreas Tille <tille at debian.org>  Fri, 17 Nov 2017 15:31:25 +0100
+ -- Andreas Tille <tille at debian.org>  Fri, 17 Nov 2017 15:32:09 +0100
 
 reprof (1.0.1-4) unstable; urgency=medium
 
diff --git a/debian/rules b/debian/rules
index 2549bc9..39a03c3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,8 +7,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DH_VERBOSE=1
 export DH_OPTIONS=-v
 
-DEBVERS        := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
-VERSION        := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
+include /usr/share/dpkg/default.mk
 
 %:
 	dh $@
@@ -16,7 +15,7 @@ VERSION        := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//'
 override_dh_clean:
 	find . -name Makefile -delete
 	# restore reprof.spec which is removed in the build process
-	if [ ! -e reprof.spec ] ; then sed 's/@VERSION@/$(VERSION)/' reprof.spec.in > reprof.spec ; fi
+	if [ ! -e reprof.spec ] ; then sed 's/@VERSION@/$(DEB_VERSION_UPSTREAM)/' reprof.spec.in > reprof.spec ; fi
 	dh_clean
 
 override_dh_auto_build:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/reprof.git



More information about the debian-med-commit mailing list