[libgeo-metar-perl] 05/13: Switch to a dh-v7-style debian/rules file and compat level 10.

Axel Beckert abe at deuxchevaux.org
Sun Nov 12 02:04:28 UTC 2017


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

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

commit f2801ccd9ad49d2ed6d56fd2e3b375e60d4eb820
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Sun Nov 12 02:13:27 2017 +0100

    Switch to a dh-v7-style debian/rules file and compat level 10.
    
    * Update versioned debhelper build-dependency accordingly.
    * Install examples via debian/examples.
---
 debian/changelog |  3 +++
 debian/compat    |  2 +-
 debian/control   |  2 +-
 debian/examples  |  1 +
 debian/rules     | 52 ++--------------------------------------------------
 5 files changed, 8 insertions(+), 52 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index db61ab1..abda7c4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -29,6 +29,9 @@ libgeo-metar-perl (1.15-2) UNRELEASED; urgency=low
 
   [ Axel Beckert ]
   * Convert to Debian source format "3.0 (quilt)".
+  * Switch to a dh-v7-style debian/rules file and compat level 10.
+    + Update versioned debhelper build-dependency accordingly.
+    + Install examples via debian/examples.
 
  -- Martín Ferrari <tincho at debian.org>  Fri, 13 Jun 2008 22:26:36 -0300
 
diff --git a/debian/compat b/debian/compat
index 7ed6ff8..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-5
+10
diff --git a/debian/control b/debian/control
index 90ef553..80321b3 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Section: perl
 Testsuite: autopkgtest-pkg-perl
 Priority: optional
-Build-Depends: debhelper (>= 5)
+Build-Depends: debhelper (>= 10)
 Build-Depends-Indep: perl
 Standards-Version: 3.7.3
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libgeo-metar-perl.git
diff --git a/debian/examples b/debian/examples
new file mode 100644
index 0000000..e39721e
--- /dev/null
+++ b/debian/examples
@@ -0,0 +1 @@
+examples/*
diff --git a/debian/rules b/debian/rules
index b1f5ebe..657234c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,55 +1,7 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-export PERL_MM_USE_DEFAULT=1
-
-PACKAGE = $(shell dh_listpackages)
-TMP = $(CURDIR)/debian/$(PACKAGE)
-PERL ?= /usr/bin/perl
-
-build: build-stamp
-build-stamp:
-	dh_testdir
-	$(PERL) Makefile.PL verbose INSTALLDIRS=vendor
-	$(MAKE)
-	$(MAKE) test
-	touch $@
-
-clean:
-	dh_testdir
-	dh_testroot
-	dh_clean build-stamp install-stamp
-	[ ! -f Makefile ] || $(MAKE) realclean
-
-install: install-stamp
-install-stamp: build-stamp
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs
-	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-	touch $@
-
-binary-arch:;
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs
-	dh_installman
-	dh_installchangelogs
-	dh_installexamples examples/*
-	dh_link
-	dh_perl
-	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
+%:
+	dh $@

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



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