r16152 - in /trunk/libspreadsheet-writeexcel-perl/debian: changelog rules
gregoa-guest at users.alioth.debian.org
gregoa-guest at users.alioth.debian.org
Sat Mar 1 23:36:10 UTC 2008
Author: gregoa-guest
Date: Sat Mar 1 23:36:09 2008
New Revision: 16152
URL: http://svn.debian.org/wsvn/?sc=1&rev=16152
Log:
debian/rules:
- update with the help of dh-make-perl's templates
- don't try to fix characters in manpages -- not needed anymore
Modified:
trunk/libspreadsheet-writeexcel-perl/debian/changelog
trunk/libspreadsheet-writeexcel-perl/debian/rules
Modified: trunk/libspreadsheet-writeexcel-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libspreadsheet-writeexcel-perl/debian/changelog?rev=16152&op=diff
==============================================================================
--- trunk/libspreadsheet-writeexcel-perl/debian/changelog (original)
+++ trunk/libspreadsheet-writeexcel-perl/debian/changelog Sat Mar 1 23:36:09 2008
@@ -9,8 +9,11 @@
* Set Standards-Version to 3.7.3 (no changes).
* Set debhelper compatibility level to 6.
* debian/copyright: convert to UTF-8 and use arabic numbers for the years.
-
- -- gregor herrmann <gregor+debian at comodo.priv.at> Sun, 02 Mar 2008 00:23:15 +0100
+ * debian/rules:
+ - update with the help of dh-make-perl's templates
+ - don't try to fix characters in manpages -- not needed anymore
+
+ -- gregor herrmann <gregor+debian at comodo.priv.at> Sun, 02 Mar 2008 00:35:34 +0100
libspreadsheet-writeexcel-perl (2.20-1) unstable; urgency=low
Modified: trunk/libspreadsheet-writeexcel-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libspreadsheet-writeexcel-perl/debian/rules?rev=16152&op=diff
==============================================================================
--- trunk/libspreadsheet-writeexcel-perl/debian/rules (original)
+++ trunk/libspreadsheet-writeexcel-perl/debian/rules Sat Mar 1 23:36:09 2008
@@ -1,66 +1,62 @@
-#! /usr/bin/make -f
-# -*- makefile -*-
-# debian/rules file for the Debian Linux libspreadsheet-writeexcel-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 := $(shell pwd)/debian/$(package)
-
-perlbase := $(shell perl -MConfig -e 'print $$Config{vendorlib}')
-
+# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-upstream: get-orig-source
-get-orig-source:
- links http://www.cpan.org/authors/id/J/JM/JMCNAMARA/
+# 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
+
+PACKAGE=$(shell dh_listpackages)
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP =$(CURDIR)/debian/$(PACKAGE)
build: build-stamp
build-stamp:
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:
dh_testdir
dh_testroot
- rm -f build-stamp test-stamp install-stamp
- [ ! -f Makefile ] || $(MAKE) distclean
- dh_clean
+
+ dh_clean build-stamp install-stamp
+ [ ! -f Makefile ] || $(MAKE) realclean
install: install-stamp
-install-stamp:
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
- $(MAKE) install PREFIX=$(debtmp)/usr
- # fix non-ascii chars in manpages
- sed -i -e "s/ç/\\\[,c\]/" -e "s/©/\\\[co\]/" -e "s/£/\\\[Po\]/" -e "s/¥/\\\[Ye\]/" -e "s/ü/\\\[:u\]/" -e "s/é/\\\[\'e\]/" \
- $(debtmp)/usr/share/man/man1/* $(debtmp)/usr/share/man/man3/*
-
- # 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
- # dh_testversion ge 3.0.0
+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 doc/*
- dh_installexamples examples/*
- dh_installchangelogs Changes
+ dh_installexamples examples/*
+ dh_installdocs README doc/*
+ dh_installchangelogs Changes
+ dh_perl
dh_compress
dh_fixperms
dh_installdeb
@@ -68,11 +64,8 @@
dh_md5sums
dh_builddeb
-binary-arch: build test install
-
-source diff:
+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
-
More information about the Pkg-perl-cvs-commits
mailing list