[libconfigreader-perl] 16/17: Finally switch to a minimal dh-style debian/rules file

Axel Beckert abe at deuxchevaux.org
Thu Dec 26 17:18:44 UTC 2013


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

abe pushed a commit to branch master
in repository libconfigreader-perl.

commit a1e1e149370158af5dcb7027ab36ed7c135a2753
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Thu Dec 26 18:11:50 2013 +0100

    Finally switch to a minimal dh-style debian/rules file
---
 debian/changelog |  1 +
 debian/rules     | 53 ++++++++---------------------------------------------
 2 files changed, 9 insertions(+), 45 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 64120e1..1eab6f4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -67,6 +67,7 @@ libconfigreader-perl (0.5-5) UNRELEASED; urgency=low
     + Drop obsolete /usr/lib/perl5 handling
     + Move dh_installdocs parameter to debian/docs
     + Remove obsolete variable usage
+    + Finally switch to a minimal dh-style debian/rules file
 
  -- Joachim Breitner <nomeata at debian.org>  Mon, 11 Feb 2008 20:27:11 +0000
 
diff --git a/debian/rules b/debian/rules
index 12a0c94..de84a14 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,24 +1,17 @@
 #!/usr/bin/make -f
 
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-build-stamp:
-	dh_testdir
+%:
+	dh $@
 
+override_dh_auto_configure:
 	mkdir -pv $(CURDIR)/ConfigReader
 	mv -v $(CURDIR)/*.pm $(CURDIR)/ConfigReader
-
 	dh_auto_configure
-	dh_auto_build
-	dh_auto_test
-
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
 
+override_dh_auto_clean:
+	# This fallback is only needed by the package maintainer to
+	# clean up the git repository if the build stops between
+	# dh_auto_configure and dh_auto_install.
 	if [ -d $(CURDIR)/ConfigReader ]; then \
 	    mv -v $(CURDIR)/ConfigReader/*.pm $(CURDIR)/; \
 	    rmdir -v $(CURDIR)/ConfigReader; \
@@ -46,37 +39,7 @@ clean:
 
 	rm -rvf $(CURDIR)/ConfigReader
 
-	dh_clean
-
-install: install-stamp
-install-stamp: build-stamp
-	dh_testdir
-	dh_testroot
-	dh_prep
-
+override_dh_auto_install:
 	dh_auto_install
 	mv -v $(CURDIR)/ConfigReader/*.pm $(CURDIR)/
 	rmdir -v $(CURDIR)/ConfigReader
-
-	touch install-stamp
-
-binary-arch: build install
-# We have nothing to do by default.
-
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs
-	dh_perl
-	dh_installchangelogs
-	dh_link
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfigreader-perl.git



More information about the Pkg-perl-cvs-commits mailing list