r16104 - in /trunk/libdbd-excel-perl/debian: changelog rules
gregoa-guest at users.alioth.debian.org
gregoa-guest at users.alioth.debian.org
Sat Mar 1 22:07:52 UTC 2008
Author: gregoa-guest
Date: Sat Mar 1 22:07:52 2008
New Revision: 16104
URL: http://svn.debian.org/wsvn/?sc=1&rev=16104
Log:
debian/rules: update with the help of dh-make-perl's templates; don't
install README anymore (contains only installation instructions).
Modified:
trunk/libdbd-excel-perl/debian/changelog
trunk/libdbd-excel-perl/debian/rules
Modified: trunk/libdbd-excel-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libdbd-excel-perl/debian/changelog?rev=16104&op=diff
==============================================================================
--- trunk/libdbd-excel-perl/debian/changelog (original)
+++ trunk/libdbd-excel-perl/debian/changelog Sat Mar 1 22:07:52 2008
@@ -9,8 +9,10 @@
* Set debhelper compatibility level to 6.
* Create new patch perl_path.patch instead of changing Excel.pm directly
from debian/rules; add quilt framework.
+ * debian/rules: update with the help of dh-make-perl's templates; don't
+ install README anymore (contains only installation instructions).
- -- gregor herrmann <gregor+debian at comodo.priv.at> Sat, 01 Mar 2008 23:01:25 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at> Sat, 01 Mar 2008 23:05:37 +0100
libdbd-excel-perl (0.06-5) unstable; urgency=low
Modified: trunk/libdbd-excel-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libdbd-excel-perl/debian/rules?rev=16104&op=diff
==============================================================================
--- trunk/libdbd-excel-perl/debian/rules (original)
+++ trunk/libdbd-excel-perl/debian/rules Sat Mar 1 22:07:52 2008
@@ -1,69 +1,73 @@
-#! /usr/bin/make -f
-# -*- makefile -*-
-# debian/rules file for the Debian Linux libdbd-excel-perl package
-# Copyright (C) 2001 - 2002 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)
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
-#export DH_VERBOSE=1
+# 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
+
+include /usr/share/quilt/quilt.make
+
+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)
$(MAKE) test
- touch build-stamp
+
+ touch $@
clean: unpatch
dh_testdir
dh_testroot
- rm -f build-stamp install-stamp
- -$(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
- 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
- touch install-stamp
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+ [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
+
+ touch $@
+
+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
- dh_installexamples sample/*
-# dh_installmenu
-# dh_installinit
-# dh_installcron
-# dh_installmanpages
-# dh_undocumented
- dh_installchangelogs Changes
+ dh_installexamples sample/*
+ dh_installdocs
+ dh_installchangelogs Changes
+ dh_perl
dh_compress
dh_fixperms
-# dh_suidregister
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
-binary-arch: build 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