[equivs] 11/36: Switch debian/rules to minimal dh v7 style

Axel Beckert abe at deuxchevaux.org
Fri Jul 28 23:04:35 UTC 2017


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

abe pushed a commit to branch master
in repository equivs.

commit b739c4238f51264f064f149c592386b4b5d257ac
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Tue Jul 18 00:42:50 2017 +0200

    Switch debian/rules to minimal dh v7 style
---
 debian/changelog |  1 +
 debian/rules     | 39 +++++----------------------------------
 2 files changed, 6 insertions(+), 34 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f66980f..b59532c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 equivs (2.0.11) UNRELEASED; urgency=medium
 
   * Adopt equivs. (Closes: #852223)
+  * Switch debian/rules to minimal dh v7 style.
 
  -- Axel Beckert <abe at debian.org>  Tue, 18 Jul 2017 00:35:11 +0200
 
diff --git a/debian/rules b/debian/rules
index cb2563f..51b069d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,4 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
-# This version is for packages that are architecture independent.
 
 #export DH_VERBOSE=1
 PKG := equivs
@@ -11,41 +9,14 @@ BUILD_DATE = $(shell dpkg-parsechangelog -S Date)
 	pod2man --section=1 --release="$$(LC_ALL=C date -u +'%d %b %Y' -d '$(BUILD_DATE)')" \
 	--center="Debian/GNU" --date=' ' $< > $@
 
-build-arch:
+%:
+	dh $@
+
 build-indep: $(MANPAGES)
-build: build-arch build-indep
 
-clean:
-	dh_testdir
+override_dh_auto_clean:
 	$(RM) $(MANPAGES)
-	dh_clean
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep
 
+override_dh_auto_install:
 	mkdir -p debian/$(PKG)
 	cp -la usr debian/$(PKG)
-
-# Build architecture-dependent packages - nothing to do here
-binary-arch: build install
-
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs
-	dh_installexamples
-	dh_installman
-	dh_installchangelogs
-	dh_link
-	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

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



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