[med-svn] [srst2] 01/01: Do not parse d/changelog, upload to unstable

Andreas Tille tille at debian.org
Mon Nov 20 10:52:20 UTC 2017


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

tille pushed a commit to branch master
in repository srst2.

commit 20889d33a216851258a492daf679efa6df0fff25
Author: Andreas Tille <tille at debian.org>
Date:   Mon Nov 20 11:50:08 2017 +0100

    Do not parse d/changelog, upload to unstable
---
 debian/changelog |  4 ++--
 debian/rules     | 16 ++++++++--------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f841610..0f0fe46 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,10 @@
-srst2 (0.2.0-5) UNRELEASED; urgency=medium
+srst2 (0.2.0-5) unstable; urgency=medium
 
   * Moved packaging from SVN to Git
   * debhelper 10
   * Standards-Version: 4.1.1
 
- -- Andreas Tille <tille at debian.org>  Mon, 20 Nov 2017 13:45:22 +0100
+ -- Andreas Tille <tille at debian.org>  Mon, 20 Nov 2017 13:46:20 +0100
 
 srst2 (0.2.0-4) unstable; urgency=medium
 
diff --git a/debian/rules b/debian/rules
index 0300b5c..d74a48d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,7 @@
 
 # DH_VERBOSE := 1
 
-DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+include /usr/share/dpkg/default.mk
 
 %:
 	dh $@ --with python2
@@ -14,17 +14,17 @@ override_dh_auto_build:
 
 override_dh_install:
 	dh_install
-	mv debian/$(DEBPKGNAME)/usr/lib/*/dist-packages/$(DEBPKGNAME)/* debian/$(DEBPKGNAME)/usr/share/$(DEBPKGNAME)
-	rm -rf debian/*/usr/bin/*.py debian/$(DEBPKGNAME)/usr/lib/*/dist-packages/
+	mv debian/$(DEB_SOURCE)/usr/lib/*/dist-packages/$(DEB_SOURCE)/* debian/$(DEB_SOURCE)/usr/share/$(DEB_SOURCE)
+	rm -rf debian/*/usr/bin/*.py debian/$(DEB_SOURCE)/usr/lib/*/dist-packages/
 	# fix line endings to make sure Python interpreter will be found
 	find debian/*/usr/share -name "VFDB*" -exec dos2unix \{\} \;
-	sed -i '1s:^#!/usr/local.*python[.0-9]*$$:#!/usr/bin/python:' debian/$(DEBPKGNAME)/usr/share/$(DEBPKGNAME)/qsub_srst2.py
+	sed -i '1s:^#!/usr/local.*python[.0-9]*$$:#!/usr/bin/python:' debian/$(DEB_SOURCE)/usr/share/$(DEB_SOURCE)/qsub_srst2.py
 
 override_dh_fixperms:
 	dh_fixperms
-	chmod +x debian/$(DEBPKGNAME)/usr/share/srst2/database_clustering/get_genus_vfdb.sh
-	chmod +x debian/$(DEBPKGNAME)/usr/share/srst2/database_clustering/get_all_vfdb.sh
-	chmod -x debian/$(DEBPKGNAME)/usr/share/srst2/database_clustering/align_plot_tree_min3.py
+	chmod +x debian/$(DEB_SOURCE)/usr/share/srst2/database_clustering/get_genus_vfdb.sh
+	chmod +x debian/$(DEB_SOURCE)/usr/share/srst2/database_clustering/get_all_vfdb.sh
+	chmod -x debian/$(DEB_SOURCE)/usr/share/srst2/database_clustering/align_plot_tree_min3.py
 	for py in `find debian -name "*.py"` ; do \
 	    if head -n 1 $$py | grep -q '^#! */usr/bin/.*python' ; then chmod +x $$py ; fi ; \
 	done
@@ -34,7 +34,7 @@ override_dh_auto_test:
 
 override_dh_installdocs:
 	dh_installdocs
-	sed -i "s?sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__).*scripts.*?sys.path.append(os.path.abspath('/usr/share/$(DEBPKGNAME)'))?" debian/$(DEBPKGNAME)/usr/share/doc/$(DEBPKGNAME)/tests/*.py
+	sed -i "s?sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__).*scripts.*?sys.path.append(os.path.abspath('/usr/share/$(DEB_SOURCE)'))?" debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/tests/*.py
 
 # README.html contains a really maintained changelog
 #override_dh_installchangelogs:

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



More information about the debian-med-commit mailing list