[libmath-spline-perl] 08/12: Switch to short-form debian/rules

Florian Schlichting fsfs at alioth.debian.org
Thu Oct 3 20:21:46 UTC 2013


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

fsfs pushed a commit to branch master
in repository libmath-spline-perl.

commit aa3b1cac0b89457cc61faa0819eaf13e3651af55
Author: Florian Schlichting <fsfs at debian.org>
Date:   Thu Oct 3 22:10:47 2013 +0200

    Switch to short-form debian/rules
---
 debian/rules |   54 ++++--------------------------------------------------
 1 file changed, 4 insertions(+), 50 deletions(-)

diff --git a/debian/rules b/debian/rules
index 34ea7f7..6dea7fb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,53 +1,7 @@
 #!/usr/bin/make -f
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+%:
+	dh $@
 
-package := $(shell grep Package debian/control | sed 's/^Package: //')
-version := $(shell head -1 debian/changelog | \
-                        perl -nle 'm/\S+\s+\((\S+)\)/ && print $$1')
-debtmp  := $(CURDIR)/debian/$(package)
-
-build: build-stamp
-build-stamp:
-	dh_testdir
-	# Add here commands to compile the package.
-	perl Makefile.PL verbose INSTALLDIRS=vendor
-	$(MAKE)
-	$(MAKE) test
-
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-	dh_clean build-stamp
-	[ ! -f Makefile ] || $(MAKE) clean
-	rm -f Makefile.old
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs
-	$(MAKE) DESTDIR=$(debtmp) PREFIX=/usr install
-	[ ! -d $(debtmp)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(debtmp)/usr/lib/perl5
-
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_perl	
-	dh_installdocs	README
-	dh_installexamples
-	dh_installchangelogs	Release
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary-arch: build install
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+override_dh_installchangelogs:
+	dh_installchangelogs Release

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



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