[libtext-roman-perl] 04/09: Rewrite debian/rules from scratch with dh-style debhelper

Axel Beckert abe at deuxchevaux.org
Mon Dec 23 02:51:39 UTC 2013


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

abe pushed a commit to branch master
in repository libtext-roman-perl.

commit aa32410b4594dec60b4ee7f12cae33804ea8f106
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Mon Dec 23 03:27:26 2013 +0100

    Rewrite debian/rules from scratch with dh-style debhelper
    
    Was no more working with new upstream release anyway.
    
    Use debhelper compatibility level 9.
---
 debian/changelog |  3 ++
 debian/compat    |  1 +
 debian/control   |  2 ++
 debian/docs      |  1 -
 debian/rules     | 92 ++------------------------------------------------------
 5 files changed, 8 insertions(+), 91 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d13e2f5..79b06ed 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -39,6 +39,9 @@ libtext-roman-perl (3.5-1) UNRELEASED; urgency=low
   * Switch debian/watch and Homepage header to metacpan.org URLs
     + Detects new upstream versions again
   * New upstream release
+  * Rewrite (no more working) debian/rules from scratch with dh-style
+    debhelper (compatibility level 9)
+    + Remove Changes from debian/docs
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Tue, 09 Oct 2007 22:32:39 +0200
 
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
index e1c4f73..9cd7c9e 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,8 @@ Standards-Version: 3.7.2.2
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libtext-roman-perl.git
 Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libtext-roman-perl.git
 Homepage: http://metacpan.org/release/Text-Roman
+Build-Depends: debhelper (>= 9~),
+               perl
 
 Package: libtext-roman-perl
 Architecture: all
diff --git a/debian/docs b/debian/docs
index 8230d18..e845566 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1,2 +1 @@
 README
-Changes
diff --git a/debian/rules b/debian/rules
index b80f87c..2d33f6a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,92 +1,4 @@
 #!/usr/bin/make -f
-# debian/rules makefile for libtext-roman-perl
-# Heavily based on the rules file for GNU Hello
 
-package = libtext-roman-perl
-tmpdir = debian/tmp
-debiandir = $(tmpdir)/DEBIAN
-docdir = $(tmpdir)/usr/share/doc/$(package)
-
-define checkdir
-	test -d debian -a -f debian/control -a -f debian/rules -a -f Makefile.PL -a -f Roman.pm
-endef
-
-configure: configure-stamp
-configure-stamp:
-	$(checkdir)
-	perl Makefile.PL INSTALLDIRS=vendor
-	touch configure-stamp
-
-build: build-stamp
-build-stamp: configure-stamp
-	$(checkdir)
-	$(MAKE)
-	$(MAKE) test
-	touch build-stamp
-
-clean: checkroot
-	$(checkdir)
-	# Does the blib directory exist? If so, we must clean it
-	# before starting to build the package... Of course, that
-	# requires a valid Makefile, so we create it if needed.
-	if [ -d blib ]; then \
-	  if [ ! -f Makefile ]; then \
-	    perl Makefile.PL INSTALLDIRS=vendor; \
-	  fi; \
-	  $(MAKE) realclean; \
-	fi
-	# And then, our stamps, temporary directories and files.
-	rm -fr configure-stamp build *~ debian/tmp debian/files debian/*~
-
-binary-arch:	build
-	true
-# Yup, that was just a stub
-
-binary-indep:	checkroot build
-	$(checkdir)
-	install -d $(tmpdir) $(debiandir) $(docdir)
-	$(MAKE) install PREFIX=$(CURDIR)/debian/tmp/usr
-	# Move documentation to its place, install ours and gzip what
-	# deserves being gzipped
-	cp -a README $(docdir)
-	cp -a debian/copyright $(docdir)
-	cp -a Changes $(docdir)/changelog
-	cp -a debian/changelog $(docdir)/changelog.Debian
-	gzip -9 $(docdir)/changelog
-	gzip -9 $(docdir)/changelog.Debian
-	for i in `find $(tmpdir)/usr/share/man -type f`; do \
-	  gzip -9 $$i; \
-	done
-	# Fix some permissions that don't comply to the standards...
-	for i in `find $(tmpdir)/usr/share/perl5/ $(tmpdir)/usr/share/man/ $(tmpdir)/usr/share/doc/libtext-roman-perl -type f`;do\
-	  chmod 644 $$i; \
-	done
-	for i in `find $(tmpdir)/usr/bin/ -type f`; do \
-	  chmod 755 $$i; \
-	done
-	
-	# remove emtpy /usr/lib/perl5 directory
-	[ ! -d $(tmpdir)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(tmpdir)/usr/lib/perl5
-	
-	# Ok, everything is finally in its place... Now make the md5 checksums
-	# We make the checksums of every package in $(tmpdir)/usr - Everything
-	# outside usr/ is either a conffile or the debian control files, which
-	# don't need being md5summed
-	for i in `find $(tmpdir)/usr -type f -printf '%P '` ; do \
-	  CURRDIR=`pwd`; cd $(tmpdir); \
-	  md5sum usr/$$i ; cd $$CURRDIR; \
-	done > $(debiandir)/md5sums
-	# Enough moving things around - Now build the package!
-	dpkg-gencontrol -isp
-	chown -R root.root $(tmpdir)
-	chmod -R g-ws $(tmpdir)
-	dpkg --build $(tmpdir) ..
-
-# Generic targets
-binary:		binary-indep binary-arch
-
-checkroot:
-	$(checkdir)
-	test $$(id -u) = 0
-
-.PHONY: binary binary-arch binary-indep build clean checkroot
+%:
+	dh $@

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



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