r19913 - in /trunk/libdbd-mysql-perl/debian: changelog rules
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Mon May 12 14:59:21 UTC 2008
Author: gregoa
Date: Mon May 12 14:59:21 2008
New Revision: 19913
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=19913
Log:
Refresh debian/rules, no functional changes, except that the only test
which doesn't need a local MySQL server is enabled.
Modified:
trunk/libdbd-mysql-perl/debian/changelog
trunk/libdbd-mysql-perl/debian/rules
Modified: trunk/libdbd-mysql-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbd-mysql-perl/debian/changelog?rev=19913&op=diff
==============================================================================
--- trunk/libdbd-mysql-perl/debian/changelog (original)
+++ trunk/libdbd-mysql-perl/debian/changelog Mon May 12 14:59:21 2008
@@ -2,6 +2,8 @@
* New upstream release.
* debian/copyright: use version-independent upstream source URL.
+ * Refresh debian/rules, no functional changes, except that the only test
+ which doesn't need a local MySQL server is enabled.
-- gregor herrmann <gregoa at debian.org> Mon, 12 May 2008 16:16:44 +0200
Modified: trunk/libdbd-mysql-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbd-mysql-perl/debian/rules?rev=19913&op=diff
==============================================================================
--- trunk/libdbd-mysql-perl/debian/rules (original)
+++ trunk/libdbd-mysql-perl/debian/rules Mon May 12 14:59:21 2008
@@ -1,76 +1,77 @@
#!/usr/bin/make -f
-# Sample debian/rules that uses debhelper. GNU copyright 1997 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
-ifndef PERL
-PERL = /usr/bin/perl
-endif
+# 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
-TMP =$(CURDIR)/debian/libdbd-mysql-perl
+PERL ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
- CFLAGS = -g
-endif
+# Allow disabling build optimisation by setting noopt in
+# $DEB_BUILD_OPTIONS
+CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
+ CFLAGS += -O0
else
- CFLAGS += -O2
+ CFLAGS += -O2
endif
build: build-stamp
build-stamp:
dh_testdir
- # Add here commands to compile the pacckage.
$(PERL) Makefile.PL --ssl INSTALLDIRS=vendor
- $(MAKE) OPTIMIZE="-Wall $(CFLAGS)" LD_RUN_PATH=""
- # tests try to use a MySQL server on localhost
- # $(MAKE) test
- touch build-stamp
+ $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
+ # all other tests try to use a MySQL server on localhost
+ $(MAKE) test TEST_FILES='t/00base.t'
+ touch $@
clean:
dh_testdir
dh_testroot
- rm -f build-stamp install-stamp debian/files Makefile.old dbimon *.o blib/arch/auto/DBD/mysql/mysql.so
- # Add here commands to clean up after the build process.
- [ ! -f Makefile ] || $(MAKE) distclean
- dh_clean
-
+ dh_clean build-stamp install-stamp dbimon *.o blib/arch/auto/DBD/mysql/mysql.so
+ [ ! -f Makefile ] || $(MAKE) realclean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
- dh_installdirs
- $(MAKE) install PREFIX=$(TMP)/usr
+ dh_clean -k
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
find $(TMP)/usr -name 'dbimon*' | xargs -r rm -f
find $(TMP)/usr -name '*.pod' | xargs -r chmod 0644
- [ ! -d $(TMP)/usr/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/share/perl5
- touch install-stamp
+ [ ! -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
+binary-indep: build install
+# 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_installexamples eg/*
dh_installdocs README
dh_installchangelogs ChangeLog
- dh_installexamples eg/*
+ dh_shlibdeps
dh_strip
+ dh_perl
dh_compress
dh_fixperms
- dh_perl
dh_installdeb
- dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
-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
+.PHONY: build clean binary-indep binary-arch binary install
More information about the Pkg-perl-cvs-commits
mailing list