r19291 - in /trunk/libquota-perl/debian: changelog rules
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Wed Apr 30 20:56:07 UTC 2008
Author: gregoa
Date: Wed Apr 30 20:56:06 2008
New Revision: 19291
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=19291
Log:
Refresh debian/rules, no functional changes, except for the omission of
README.
Modified:
trunk/libquota-perl/debian/changelog
trunk/libquota-perl/debian/rules
Modified: trunk/libquota-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libquota-perl/debian/changelog?rev=19291&op=diff
==============================================================================
--- trunk/libquota-perl/debian/changelog (original)
+++ trunk/libquota-perl/debian/changelog Wed Apr 30 20:56:06 2008
@@ -3,9 +3,11 @@
* debian/rules: touch Makefile in clean target after unpatching
Makefile.PL to prevent it from being re-built; allows building twice
in a row. s/stamp-stamp/install-stamp/ in dh_clean.
+ * Refresh debian/rules, no functional changes, except for the omission of
+ README.
* debian/control: make build dependency on quilt versioned.
- -- gregor herrmann <gregoa at debian.org> Wed, 30 Apr 2008 22:49:10 +0200
+ -- gregor herrmann <gregoa at debian.org> Wed, 30 Apr 2008 22:51:12 +0200
libquota-perl (1.6.2+dfsg-1) unstable; urgency=low
Modified: trunk/libquota-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libquota-perl/debian/rules?rev=19291&op=diff
==============================================================================
--- trunk/libquota-perl/debian/rules (original)
+++ trunk/libquota-perl/debian/rules Wed Apr 30 20:56:06 2008
@@ -1,79 +1,79 @@
#!/usr/bin/make -f
-#-*- makefile -*-
-# Made with the aid of dh_make, by Craig Small
-# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
-# Some lines taken from debmake, by Christoph Lameter.
+# 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.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-PACKAGE=$(shell dh_listpackages)
-
-ifndef PERL
-PERL = /usr/bin/perl
-endif
-
include /usr/share/quilt/quilt.make
-ifndef DESTDIR
-DESTDIR=..
-endif
-TMP =$(CURDIR)/debian/$(PACKAGE)
+# 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
-OPTIMIZE = -O2 -Wall
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
-OPTIMIZE += -g
+PERL ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
+
+# Allow disabling build optimisation by setting noopt in
+# $DEB_BUILD_OPTIONS
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
endif
build: build-stamp
build-stamp: $(QUILT_STAMPFN)
dh_testdir
$(PERL) Makefile.PL INSTALLDIRS=vendor
- $(MAKE) OPTIMIZE="$(OPTIMIZE)" LD_RUN_PATH=""
- touch $@
+ $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
+ # don't run tests, test.pl only outputs:
+ # "This is an interactive test script - input must be a tty
+ # Exiting now."
+ # $(MAKE) test
+ touch $@
clean: unpatch
dh_testdir
dh_testroot
dh_clean build-stamp install-stamp
- [ ! -f Makefile ] || ( touch Makefile && $(MAKE) distclean )
+ [ ! -f Makefile ] || ( touch Makefile && $(MAKE) realclean )
install: install-stamp
-install-stamp:
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
- $(MAKE) install PREFIX=$(TMP)/usr
- [ ! -d $(TMP)/usr/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/share/perl5
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+ [ ! -d $(TMP)/usr/share/perl5 ] || \
+ rmdir --ignore-fail-on-non-empty --parents --verbose \
+ $(TMP)/usr/share/perl5
touch $@
-
# Build architecture-independent files here.
binary-indep: build install
-# We have nothing to do by default.
+# We have nothing to do here for an architecture-dependent package
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
- dh_installdocs README
+ dh_installexamples contrib/*
+ dh_installdocs
dh_installchangelogs CHANGES
- dh_installexamples contrib/*
+ dh_shlibdeps
dh_strip
+ dh_perl
dh_compress
dh_fixperms
dh_installdeb
- dh_perl
- dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
-source diff:
- @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-
-get-orig-source:
- uscan --force
-
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
+.PHONY: build clean binary-indep binary-arch binary install
More information about the Pkg-perl-cvs-commits
mailing list