r19362 - in /trunk/libapache-db-perl/debian: changelog rules
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Sat May 3 18:25:22 UTC 2008
Author: gregoa
Date: Sat May 3 18:25:21 2008
New Revision: 19362
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=19362
Log:
Refresh debian/rules, no functional changes.
Modified:
trunk/libapache-db-perl/debian/changelog
trunk/libapache-db-perl/debian/rules
Modified: trunk/libapache-db-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libapache-db-perl/debian/changelog?rev=19362&op=diff
==============================================================================
--- trunk/libapache-db-perl/debian/changelog (original)
+++ trunk/libapache-db-perl/debian/changelog Sat May 3 18:25:21 2008
@@ -12,8 +12,9 @@
* New upstream release, no longer FTBFS with Perl 5.10 (closes: #466734).
* debian/copyright: mention Debian Perl Group, quote statement about
authors and license verbatim from the module's source.
+ * Refresh debian/rules, no functional changes.
- -- gregor herrmann <gregoa at debian.org> Sat, 03 May 2008 20:20:45 +0200
+ -- gregor herrmann <gregoa at debian.org> Sat, 03 May 2008 20:22:53 +0200
libapache-db-perl (0.13-1) unstable; urgency=low
Modified: trunk/libapache-db-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libapache-db-perl/debian/rules?rev=19362&op=diff
==============================================================================
--- trunk/libapache-db-perl/debian/rules (original)
+++ trunk/libapache-db-perl/debian/rules Sat May 3 18:25:21 2008
@@ -1,92 +1,74 @@
#!/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)
+# 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
-ifndef PERL
-PERL = /usr/bin/perl
-endif
+PERL ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
-ifndef DESTDIR
-DESTDIR=..
-endif
-TMP =`pwd`/debian/$(PACKAGE)
-
-OPTIMIZE = -O2 -Wall
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
-OPTIMIZE += -g
+# 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:
dh_testdir
-
-
- # Add here commands to compile the package.
$(PERL) Makefile.PL INSTALLDIRS=vendor
- $(MAKE) OPTIMIZE="$(OPTIMIZE)" LD_RUN_PATH=""
-
- touch build-stamp
+ $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
+ # this module has no tests!
+ # $(MAKE) test
+ touch $@
clean:
dh_testdir
dh_testroot
- rm -f build-stamp
+ dh_clean build-stamp install-stamp
+ [ ! -f Makefile ] || $(MAKE) realclean
- # Add here commands to clean up after the build process.
- -$(MAKE) realclean
-
- dh_clean
-
-install:
+install: install-stamp
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
- dh_installdirs
-
- # Add here commands to install the package into debian/tmp.
- #$(MAKE) install DESTDIR=`pwd`/debian/tmp
- $(MAKE) install PREFIX=$(TMP)/usr
-
+ $(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_testversion
dh_testdir
dh_testroot
dh_installdocs README
- dh_installexamples
- dh_installmenu
-# dh_installemacsen
-# dh_installinit
- dh_installcron
- dh_installmanpages
-# dh_undocumented
dh_installchangelogs Changes
- dh_link
+ dh_shlibdeps
dh_strip
+ dh_perl
dh_compress
dh_fixperms
-# dh_makeshlibs
dh_installdeb
- dh_perl
- dh_shlibdeps
dh_gencontrol
dh_md5sums
- dh_builddeb --destdir=$(DESTDIR)
-
-source diff:
- @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+ dh_builddeb
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