r19298 - in /trunk/libnet-patricia-perl/debian: changelog rules
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Wed Apr 30 21:15:29 UTC 2008
Author: gregoa
Date: Wed Apr 30 21:15:29 2008
New Revision: 19298
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=19298
Log:
Refresh debian/rules, don't install README any more.
Modified:
trunk/libnet-patricia-perl/debian/changelog
trunk/libnet-patricia-perl/debian/rules
Modified: trunk/libnet-patricia-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-patricia-perl/debian/changelog?rev=19298&op=diff
==============================================================================
--- trunk/libnet-patricia-perl/debian/changelog (original)
+++ trunk/libnet-patricia-perl/debian/changelog Wed Apr 30 21:15:29 2008
@@ -7,9 +7,10 @@
* debian/rules: touch Makefile in clean target after unpatching
Makefile.PL to prevent it from being re-built; allows building twice
in a row.
+ * Refresh debian/rules, don't install README any more.
* debian/copyright: point to CPAN for the upstream source.
- -- gregor herrmann <gregoa at debian.org> Wed, 30 Apr 2008 23:09:53 +0200
+ -- gregor herrmann <gregoa at debian.org> Wed, 30 Apr 2008 23:13:21 +0200
libnet-patricia-perl (1.014-3) unstable; urgency=low
Modified: trunk/libnet-patricia-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-patricia-perl/debian/rules?rev=19298&op=diff
==============================================================================
--- trunk/libnet-patricia-perl/debian/rules (original)
+++ trunk/libnet-patricia-perl/debian/rules Wed Apr 30 21:15:29 2008
@@ -1,13 +1,23 @@
#!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+# 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
include /usr/share/quilt/quilt.make
-# Allow disabling build optimation by setting noopt in
+# 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
+
+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)))
@@ -16,57 +26,47 @@
CFLAGS += -O2
endif
-PACKAGE=$(shell dh_listpackages)
-TMP =$(CURDIR)/debian/$(PACKAGE)
-
build: build-stamp
build-stamp: $(QUILT_STAMPFN)
dh_testdir
-
- perl Makefile.PL INSTALLDIRS=vendor
- $(MAKE) OPTIMIZE="$(CFLAGS)"
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
+ $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
$(MAKE) test
-
touch $@
clean: unpatch
dh_testdir
dh_testroot
-
dh_clean build-stamp install-stamp
-
- if [ -e Makefile ]; then touch Makefile; $(MAKE) distclean; fi
+ [ ! -f Makefile ] || ( touch Makefile && $(MAKE) realclean )
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
-
$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
- # this is an architecture-dependent package;
- # there's nothing in usr/share/perl5
- [ ! -d $(TMP)/usr/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/share/perl5
-
+ [ ! -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_installdocs
dh_installchangelogs Changes
+ dh_shlibdeps
dh_strip
+ dh_perl
dh_compress
dh_fixperms
dh_installdeb
- dh_perl
- dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
More information about the Pkg-perl-cvs-commits
mailing list