[med-svn] [conservation-code] 03/05: debhelper 10, re-arrange d/rules

Andreas Tille tille at debian.org
Fri Oct 6 13:53:20 UTC 2017


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

tille pushed a commit to branch master
in repository conservation-code.

commit bea32adc303acbdfc9206f88c077d25dfd5aea59
Author: Andreas Tille <tille at debian.org>
Date:   Fri Oct 6 15:26:27 2017 +0200

    debhelper 10, re-arrange d/rules
---
 debian/changelog |  2 ++
 debian/compat    |  2 +-
 debian/control   |  2 +-
 debian/rules     | 45 ++++++++++++++++++++-------------------------
 4 files changed, 24 insertions(+), 27 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c0595ec..9985ba3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ conservation-code (20110309.0-6) UNRELEASED; urgency=medium
   * Moved packaging from SVN to Git
   * Add fake watch file
   * Standards-Version: 4.1.1
+  * debhelper 10
+  * re-arrange d/rules
 
  -- Andreas Tille <tille at debian.org>  Fri, 06 Oct 2017 15:05:25 +0200
 
diff --git a/debian/compat b/debian/compat
index ec63514..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-9
+10
diff --git a/debian/control b/debian/control
index 578be61..8de5c99 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Uploaders: Laszlo Kajan <lkajan at rostlab.org>,
            Andreas Tille <tille at debian.org>
 Section: science
 Priority: optional
-Build-Depends: debhelper (>= 9),
+Build-Depends: debhelper (>= 10),
                dh-python,
                python
 Standards-Version: 4.1.1
diff --git a/debian/rules b/debian/rules
index cea1a6a..a8b0d40 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,37 +13,16 @@ datarootdir:=${prefix}/share
 docdir:=${datarootdir}/doc/${PACKAGE}
 pkgdatadir:=${datarootdir}/${PACKAGE}
 
-# Policy §4.9 says that the get-orig-source target 'may be invoked in any directory'. So we do not use variables set from dpkg-parsechangelog.
-.PHONY: get-orig-source
-get-orig-source:
-	set -e; \
-	if ! ( which xz >/dev/null ); then \
-		echo "Could not find 'xz' tool for compression. Please install the package 'xz-utils'." >&2; \
-		exit 1; \
-	fi ; \
-	t=$$(mktemp -d) || exit 1; \
-	trap "rm -rf -- '$$t'" EXIT; \
-	( cd "$$t"; \
-		wget -O conservation-code_20110309.0.orig.tar.gz http://compbio.cs.princeton.edu/conservation/conservation_code.tar.gz; \
-		gunzip *.tar.gz; \
-		tar --owner=root --group=root --mode=a+rX --delete -f *.tar --wildcards '*/._*'; \
-		xz --best *.tar; \
-	); \
-	mv $$t/*.tar.?z ./
-
-override_dh_auto_build: man
 
 %:
-	dh $@ --parallel --with python2
+	dh $@ --with python2
 
-.PHONY: man
-man: $(MANS)
+override_dh_auto_build: $(MANS)
 
 ChangeLog: score_conservation.py
 	# Courtesy of Jakub Wilk:
 	sed -n -e '/# [0-9/]\{8\}/ { s/# // p }' < $< > $@
 
-.PHONY: override_dh_installchangelogs
 override_dh_installchangelogs: ChangeLog
 	dh_installchangelogs
 
@@ -51,10 +30,26 @@ override_dh_installchangelogs: ChangeLog
 	sed -e 's|__docdir__|$(docdir)|g;s|__pkgdatadir__|$(pkgdatadir)|g;s|__VERSION__|$(VERSION)|g;' "$<" | \
 	pod2man -c 'User Commands' -r "$(VERSION)" -name $(shell echo "$(basename $@)" | tr '[:lower:]' '[:upper:]') > "$@"
 
-.PHONY: override_dh_install
 override_dh_install:
 	dh_install -X._
 
-.PHONY: override_dh_auto_clean
 override_dh_auto_clean:
 	rm -f $(MANS) ChangeLog
+
+# Policy §4.9 says that the get-orig-source target 'may be invoked in any directory'. So we do not use variables set from dpkg-parsechangelog.
+get-orig-source:
+	set -e; \
+	if ! ( which xz >/dev/null ); then \
+		echo "Could not find 'xz' tool for compression. Please install the package 'xz-utils'." >&2; \
+		exit 1; \
+	fi ; \
+	t=$$(mktemp -d) || exit 1; \
+	trap "rm -rf -- '$$t'" EXIT; \
+	( cd "$$t"; \
+		wget -O conservation-code_20110309.0.orig.tar.gz http://compbio.cs.princeton.edu/conservation/conservation_code.tar.gz; \
+		gunzip *.tar.gz; \
+		tar --owner=root --group=root --mode=a+rX --delete -f *.tar --wildcards '*/._*'; \
+		xz --best *.tar; \
+	); \
+	mv $$t/*.tar.?z ./
+

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



More information about the debian-med-commit mailing list