[librtf-document-perl] 02/02: Rewrite debian/rules using a minimal dh v7 style file

Axel Beckert abe at deuxchevaux.org
Tue Jul 21 20:16:01 UTC 2015


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

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

commit 85142dd1e3a663d4c0617dd6c4ebc36f577be16e
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Tue Jul 21 22:13:24 2015 +0200

    Rewrite debian/rules using a minimal dh v7 style file
    
    Stop installing upstream README, i.e. no debian/docs needed.
    
    Bump debhelper compatibility level to 9, bump according versioned
    build-dependency.
---
 debian/changelog |  3 +++
 debian/compat    |  2 +-
 debian/control   |  2 +-
 debian/rules     | 68 ++------------------------------------------------------
 4 files changed, 7 insertions(+), 68 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ff3d030..0a393a1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,9 @@ librtf-document-perl (0.64-11) UNRELEASED; urgency=medium
     + Drop dependencies on patch target from debian/rules.
   * Drop complete Diff of Document.pm by fixing the line-endings.
   * Replace Build-Dependency on perl5 by plain perl (Closes: #786681)
+  * Rewrite debian/rules using a minimal dh v7 style file.
+    + Stop installing upstream README, i.e. no debian/docs needed.
+    + Bump debhelper compat level to 9, bump according versioned b-d.
 
  -- Axel Beckert <abe at debian.org>  Tue, 21 Jul 2015 21:03:51 +0200
 
diff --git a/debian/compat b/debian/compat
index b8626c4..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-4
+9
diff --git a/debian/control b/debian/control
index 9f116fb..2b80757 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: perl
 Priority: extra
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Krzysztof Krzyzaniak (eloy) <eloy at debian.org>
-Build-Depends: debhelper (>> 4.0.0)
+Build-Depends: debhelper (>= 9)
 Build-Depends-Indep: libconvert-units-perl (>= 0.43),
                      perl
 Standards-Version: 3.6.2
diff --git a/debian/rules b/debian/rules
index 3ff6700..81e25d5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,69 +1,5 @@
 #!/usr/bin/make -f
 # -*- Makefile -*-
 
-# Make sure perl is defined (allow overriding from the command line
-PERL ?= /usr/bin/perl
-
-# Set our build directory
-b := $(shell pwd)/debian/librtf-document-perl
-
-arrange: arrange-stamp
-arrange-stamp: install
-	dh_testdir
-	dh_installdirs
-	touch arrange-stamp
-
-binary: binary-stamp
-binary-stamp: binary-indep binary-arch
-	dh_testdir
-	touch binary-stamp
-
-binary-arch: binary-arch-stamp
-binary-arch-stamp: arrange
-	dh_testdir
-	touch binary-arch-stamp
-
-binary-indep: binary-indep-stamp
-binary-indep-stamp: arrange
-	dh_testdir
-	dh_testroot
-	dh_installdocs README
-	dh_installchangelogs Changes
-	dh_link
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_perl
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-	touch binary-indep-stamp
-
-build: build-stamp
-build-stamp: config
-	dh_testdir
-	$(MAKE)
-	$(MAKE) test
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-	if [ -e Makefile ]; then $(MAKE) -i distclean; fi
-	dh_clean arrange-stamp binary-stamp binary-arch-stamp binary-indep-stamp build-stamp config-stamp install-stamp
-
-config: config-stamp
-config-stamp:
-	dh_testdir
-	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	touch config-stamp
-
-install: install-stamp
-install-stamp: build
-	dh_testdir
-	$(MAKE) install PREFIX=$(b)/usr
-	touch install-stamp
-
-.PHONY: arrange binary binary-arch binary-indep build clean config install
+%:
+	dh $@

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



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