[libunicode-map-perl] 10/15: Switch to minimal dh-style debian/rules file

Axel Beckert abe at deuxchevaux.org
Fri Dec 13 23:03:44 UTC 2013


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

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

commit d79293bb84d5c1ed6541a29e4a5f04842d6eda06
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Fri Dec 13 23:47:13 2013 +0100

    Switch to minimal dh-style debian/rules file
---
 debian/changelog |  1 +
 debian/rules     | 60 +++++++-------------------------------------------------
 2 files changed, 8 insertions(+), 53 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 63899d1..1da03ac 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -50,6 +50,7 @@ libunicode-map-perl (0.112-11) UNRELEASED; urgency=low
       - Fixes blhc warning dpkg-buildflags-missing
     + Drop obsolete manual removing of stamp files, now done by dh_clean
     + Drop now obsolete dh_installchangelogs parameter
+    + Switch to minimal dh-style debian/rules file
   * Also fix the following lintian warnings:
     + binary-control-field-duplicates-source (priority, section)
 
diff --git a/debian/rules b/debian/rules
index 83203ab..b44323f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,47 +1,25 @@
 #!/usr/bin/make -f
-## ----------------------------------------------------------------------
-## debian/rules : package script for libunicode-map-perl
-## ----------------------------------------------------------------------
-
-## ----------------------------------------------------------------------
 ## uncomment this to turn on verbose mode
 #export DH_VERBOSE=1
 
-## ----------------------------------------------------------------------
 TMP_DIR		= debian/libunicode-map-perl
 
-## ----------------------------------------------------------------------
-## targets
+b% c% i%:
+	dh $@
 
-clean:
-		dh_testdir
-		dh_testroot
-		dh_auto_clean
+override_dh_auto_configure: fix-big5
+	dh_auto_configure
+
+override_dh_clean:
 		[ ! -f fix-big5-stamp ] || mv debian/BIG5.map.dist Map/EASTASIA/BIG5.map
 		dh_clean
 
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-build-stamp: fix-big5
-		dh_testdir
-		dh_auto_configure
-		dh_auto_build
-		dh_auto_test
-		touch build-stamp
-
-install:	build install-stamp
-install-stamp:
-		dh_testdir
-		dh_testroot
-		dh_prep
-		dh_installdirs
+override_dh_auto_install:
 		dh_auto_install
 		# Don't install scripts
 		rm -rf $(CURDIR)/$(TMP_DIR)/usr/bin
 		[ ! -d $(CURDIR)/$(TMP_DIR)/usr/share/man/man1 ] || \
 			$(RM) -vr $(CURDIR)/$(TMP_DIR)/usr/share/man/man1
-		touch install-stamp
 
 # fix the BIG5 map on the fly
 fix-big5:	fix-big5-stamp
@@ -51,27 +29,3 @@ fix-big5-stamp:
 		mv Map/EASTASIA/BIG5.map debian/BIG5.map.dist
 		mv debian/BIG5.map.new Map/EASTASIA/BIG5.map
 		touch fix-big5-stamp
-
-binary-indep:
-
-binary-arch:	build install
-		dh_testdir
-		dh_testroot
-		dh_installdocs
-		dh_installexamples
-		dh_installchangelogs
-		dh_strip
-		dh_compress
-		dh_fixperms
-		dh_installdeb
-		dh_shlibdeps
-		dh_perl
-		dh_gencontrol
-		dh_md5sums
-		dh_builddeb
-
-binary:		binary-indep binary-arch
-
-.PHONY:		clean build install binary-indep binary-arch binary fix-big5
-
-## ----------------------------------------------------------------------

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



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