r16114 - in /trunk/libdbd-csv-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Sat Mar 1 22:22:00 UTC 2008


Author: gregoa-guest
Date: Sat Mar  1 22:21:59 2008
New Revision: 16114

URL: http://svn.debian.org/wsvn/?sc=1&rev=16114
Log:
debian/rules:
 - update with the help of dh-make-perl's templates
 - don't install README (text version of the POD documentation)
 - don't try to remove lib/DBD/File.pm, doesn't exist in the upstream
   tarball any more

Modified:
    trunk/libdbd-csv-perl/debian/changelog
    trunk/libdbd-csv-perl/debian/rules

Modified: trunk/libdbd-csv-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libdbd-csv-perl/debian/changelog?rev=16114&op=diff
==============================================================================
--- trunk/libdbd-csv-perl/debian/changelog (original)
+++ trunk/libdbd-csv-perl/debian/changelog Sat Mar  1 22:21:59 2008
@@ -13,8 +13,13 @@
   * Set Standards-Version to 3.7.3 (no changes).
   * Set debhelper compatibility level to 6.
   * debian/copyright: add upstream source location.
+  * debian/rules:
+   - update with the help of dh-make-perl's templates
+   - don't install README (text version of the POD documentation)
+   - don't try to remove lib/DBD/File.pm, doesn't exist in the upstream
+     tarball any more
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Sat, 01 Mar 2008 23:14:56 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Sat, 01 Mar 2008 23:20:00 +0100
 
 libdbd-csv-perl (0.2200-3) unstable; urgency=low
 

Modified: trunk/libdbd-csv-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libdbd-csv-perl/debian/rules?rev=16114&op=diff
==============================================================================
--- trunk/libdbd-csv-perl/debian/rules (original)
+++ trunk/libdbd-csv-perl/debian/rules Sat Mar  1 22:21:59 2008
@@ -1,59 +1,70 @@
-#! /usr/bin/make -f
-# -*-makefile-*-
-# debian/rules file for libdbd-csv-perl
+#!/usr/bin/make -f
+# This debian/rules file is provided as a template for normal perl
+# packages. It was created by Marc Brockschmidt <marc at dch-faq.de> for
+# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
+# be used freely wherever it is useful.
 
-PERL ?= /usr/bin/perl
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
 
-package	:= $(shell sed -ne 's/^Package: *//p' debian/control)
-prefix	:= $(CURDIR)/debian/$(package)/usr
+# If set to a true value then MakeMaker's prompt function will
+# always return the default without waiting for user input.
+export PERL_MM_USE_DEFAULT=1
 
-version	:= $(shell dpkg-parsechangelog | \
-			sed -ne 's/^Version: *\([0-9]\+:\)*//p')
+PACKAGE=$(shell dh_listpackages)
 
-build:	build-stamp
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP     =$(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
 build-stamp:
 	dh_testdir
-	rm -f lib/DBD/File.pm
-	$(PERL) Makefile.PL INSTALLDIRS=vendor PERL=$(PERL)
-	$(MAKE) LD_RUN_PATH=
+
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE)
+	$(MAKE) test
+
 	touch $@
 
-clean:	checkroot
-	rm -f build-stamp
-	dh_clean
-	-$(MAKE) distclean
+clean:
+	dh_testdir
+	dh_testroot
 
-binary-indep:	checkroot build
-	dh_clean
-	dh_installdirs
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
-	$(MAKE) install PREFIX=$(prefix)
+install: install-stamp
+install-stamp: build-stamp
+	dh_testdir
+	dh_testroot
+	dh_clean -k
 
-	# As this is a architecture independent package, we are not
-	# supposed to install stuff to /usr/lib. MakeMaker creates
-	# the dirs, we delete them from the deb:
-	[ ! -d $(prefix)/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(prefix)/lib/perl5
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
 
-	dh_installdocs README
-	dh_installexamples 
+	touch $@
+
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
 	dh_installchangelogs ChangeLog
-
-	dh_strip
+	dh_perl
 	dh_compress
 	dh_fixperms
-	dh_perl
-	dh_shlibdeps
 	dh_installdeb
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
 
-binary-arch:	checkroot build
+source diff:
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
 
-binary:	binary-indep binary-arch
-
-checkroot:
-	dh_testdir
-	dh_testroot
-
-.PHONY:	binary binary-arch binary-indep clean checkroot build
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary




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