r17329 - in /trunk/libspreadsheet-parseexcel-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Wed Mar 12 20:25:17 UTC 2008


Author: gregoa-guest
Date: Wed Mar 12 20:25:16 2008
New Revision: 17329

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=17329
Log:
debian/rules:
  - update based on dh-make-perl's examples
  - don't install README any more (text version of the POD documentation)

Modified:
    trunk/libspreadsheet-parseexcel-perl/debian/changelog
    trunk/libspreadsheet-parseexcel-perl/debian/rules

Modified: trunk/libspreadsheet-parseexcel-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libspreadsheet-parseexcel-perl/debian/changelog?rev=17329&op=diff
==============================================================================
--- trunk/libspreadsheet-parseexcel-perl/debian/changelog (original)
+++ trunk/libspreadsheet-parseexcel-perl/debian/changelog Wed Mar 12 20:25:16 2008
@@ -9,6 +9,9 @@
     Vcs-Svn fields.
   * Wrapped long lines.
   * debian/rules: delete /usr/lib/perl5 only if it exists (closes: #467966)
+  * debian/rules:
+    - update based on dh-make-perl's examples
+    - don't install README any more (text version of the POD documentation)
   * debian/watch: use dist-based URL.
   * Set Standards-Version to 3.7.3 (no changes).
   * Add /me to Uploaders.
@@ -17,7 +20,7 @@
     - use specific upstream URL instead of just pointing to CPAN
     - remove misleading paragraph about no Debian changes
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Wed, 12 Mar 2008 21:17:02 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Wed, 12 Mar 2008 21:20:33 +0100
 
 libspreadsheet-parseexcel-perl (0.3200-1) unstable; urgency=low
 

Modified: trunk/libspreadsheet-parseexcel-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libspreadsheet-parseexcel-perl/debian/rules?rev=17329&op=diff
==============================================================================
--- trunk/libspreadsheet-parseexcel-perl/debian/rules (original)
+++ trunk/libspreadsheet-parseexcel-perl/debian/rules Wed Mar 12 20:25:16 2008
@@ -1,62 +1,64 @@
-#! /usr/bin/make -f
-#                                                       -*- makefile -*-
-# debian/rules file for the Debian Linux libspreadsheet-parseexcel-perl package
-# Copyright (C) 2001 by Dirk Eddelbuettel <edd at debian.org>
+#!/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.
 
-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)
-
+# Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
 include /usr/share/quilt/quilt.make
 
-upstream: get-orig-source
-get-orig-source:
-	uscan --verbose
+# 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
 
-build: patch build-stamp
-build-stamp:
+PACKAGE=$(shell dh_listpackages)
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP     =$(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
+build-stamp: $(QUILT_STAMPFN)
 	dh_testdir
-	perl Makefile.PL INSTALLDIRS=vendor
+
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
-	touch build-stamp
+	$(MAKE) test
 
-test:	test-stamp
-test-stamp: build-stamp
-	$(MAKE) test
-	touch test-stamp
+	touch $@
 
-clean: clean-patched unpatch
-clean-patched:
+clean: unpatch
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp test-stamp install-stamp
+
+	dh_clean build-stamp install-stamp
 	[ ! -f Makefile ] || $(MAKE) realclean
-	dh_clean
 
 install: install-stamp
-install-stamp:
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
-	$(MAKE) install PREFIX=$(debtmp)/usr
 
-	#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 $(debtmp)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(debtmp)/usr/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
 
-	touch install-stamp
+	touch $@
 
-binary-indep: build test install
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
+binary-indep: build install
 	dh_testdir
 	dh_testroot
-	dh_perl	
-	dh_installdocs		README CP932Excel.map
-	dh_installexamples	sample/*
-	dh_installchangelogs	Changes
+	dh_installexamples sample/*
+	dh_installdocs CP932Excel.map
+	dh_installchangelogs Changes
+	dh_perl
 	dh_compress
 	dh_fixperms
 	dh_installdeb
@@ -64,9 +66,8 @@
 	dh_md5sums
 	dh_builddeb
 
-binary-arch:
-# nothing to do
+source diff:
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary upstream
-
+.PHONY: build clean binary-indep binary-arch binary install




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