[Reportbug-commits] [reportbug] 01/03: convert to dh sequencer

Sandro Tosi morph at moszumanska.debian.org
Sun Jan 26 23:23:03 UTC 2014


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

morph pushed a commit to branch master
in repository reportbug.

commit 9782a62b54e93d85111f8cfb4258feea4f105d36
Author: Sandro Tosi <morph at debian.org>
Date:   Sun Jan 26 22:13:17 2014 +0100

    convert to dh sequencer
---
 debian/changelog |  7 +++++++
 debian/rules     | 56 +++++---------------------------------------------------
 2 files changed, 12 insertions(+), 51 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b6affc1..c47cce1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+reportbug (6.5.1) UNRELEASED; urgency=medium
+
+  * debian/rules
+    - convert to dh sequencer
+
+ -- Sandro Tosi <morph at debian.org>  Sun, 26 Jan 2014 22:13:01 +0100
+
 reportbug (6.5.0) unstable; urgency=low
 
   [ Sandro Tosi ]
diff --git a/debian/rules b/debian/rules
index 5959e33..aa5b60c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,12 +7,10 @@ VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | sed 's/^Version: \(
 DISTRO := $(shell dpkg-parsechangelog | egrep '^Distribution:' | sed 's/^Distribution: \([^+]*\).*/\1/')
 REPORTBUG_VERSION := $(shell python -c "import reportbug; print reportbug.VERSION_NUMBER")
 
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-build-stamp:
-	dh_testdir
+%:
+	dh $@
 
+override_dh_auto_build:
 	# Test if versions are synchronized (only if releasing); this will bomb if not synced
 	if [ "$(DISTRO)" != "UNRELEASED" -a "$(REPORTBUG_VERSION)" != "$(VERSION)" ] ; \
 	then \
@@ -21,28 +19,7 @@ build-stamp:
 
 	python setup.py build
 
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-
-	python setup.py clean
-
-	rm -rf `find . -name '*~' -o -name '.#*' -o -name '*.orig' -o -name '*.rej' -o -name '*.py[co]'` sed-script
-	rm -rf build
-	rm -rf reportbug.egg-info
-
-	dh_clean
-
-install: install-stamp
-install-stamp: build-stamp
-	dh_testdir
-	dh_testroot
-	dh_prep
-	dh_installdirs
-
-	# Add here commands to install the package into debian/reportbug.
+override_dh_auto_install:
 	python setup.py install --root $(CURDIR)/debian/reportbug --install-layout=deb
 	mv $(CURDIR)/debian/reportbug/usr/lib $(CURDIR)/debian/python-reportbug/usr
 	chmod 0755 $(CURDIR)/debian/reportbug/usr/bin/*
@@ -50,28 +27,5 @@ install-stamp: build-stamp
 
 	cp -p debian/desktop $(CURDIR)/debian/reportbug/usr/share/applications/reportbug.desktop
 
-	touch install-stamp
-
-# Build architecture-dependent files here.
-binary-arch: build install
-# We have nothing to do by default.
-
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs
-	dh_installmenu
+override_dh_installman:
 	dh_installman man/*
-	dh_installchangelogs
-	dh_compress
-	dh_fixperms
-	dh_pysupport
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary

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



More information about the Reportbug-commits mailing list