r34303 - in /trunk/libdbd-mysql-perl/debian: changelog examples rules
eloy at users.alioth.debian.org
eloy at users.alioth.debian.org
Wed Apr 29 09:16:53 UTC 2009
Author: eloy
Date: Wed Apr 29 09:16:48 2009
New Revision: 34303
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=34303
Log:
updated debian/rules & debian/examples
Added:
trunk/libdbd-mysql-perl/debian/examples
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=34303&op=diff
==============================================================================
--- trunk/libdbd-mysql-perl/debian/changelog (original)
+++ trunk/libdbd-mysql-perl/debian/changelog Wed Apr 29 09:16:48 2009
@@ -4,7 +4,8 @@
* New upstream release
* debian/control: add me to Uploaders, update Standards-Version to 3.8.1
narrow dependency libdbi-perl to (>= 1.607) (closes: #504648)
- * Update package to debhelper 7
+ * Update package to debhelper 7, update debian/rules
+ * create debian/examples
[ gregor herrmann ]
* New upstream release.
Added: trunk/libdbd-mysql-perl/debian/examples
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbd-mysql-perl/debian/examples?rev=34303&op=file
==============================================================================
--- trunk/libdbd-mysql-perl/debian/examples (added)
+++ trunk/libdbd-mysql-perl/debian/examples Wed Apr 29 09:16:48 2009
@@ -1,0 +1,1 @@
+eg/*
Modified: trunk/libdbd-mysql-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbd-mysql-perl/debian/rules?rev=34303&op=diff
==============================================================================
--- trunk/libdbd-mysql-perl/debian/rules (original)
+++ trunk/libdbd-mysql-perl/debian/rules Wed Apr 29 09:16:48 2009
@@ -1,81 +1,34 @@
#!/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.
-
-# Uncomment this to turn on verbose mode.
-#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
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:
- dh_testdir
+ dh build --before auto_configure
$(PERL) Makefile.PL --ssl INSTALLDIRS=vendor
- $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
- # all other tests try to use a MySQL server on localhost
+ dh build --after auto_configure --before test
$(MAKE) test TEST_FILES='t/00base.t'
+ dh build --after test
touch $@
clean:
- dh_testdir
- dh_testroot
- dh_clean build-stamp install-stamp dbimon *.o blib/arch/auto/DBD/mysql/mysql.so
- [ ! -f Makefile ] || $(MAKE) realclean
+ dh $@
install: install-stamp
install-stamp: build-stamp
- dh_testdir
- dh_testroot
- dh_clean -k
- $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+ dh install
find $(TMP)/usr -name 'dbimon*' | xargs -r rm -f
find $(TMP)/usr -name '*.pod' | xargs -r chmod 0644
[ ! -f $(TMP)/usr/lib/perl5/DBD/mysql/INSTALL.pod ] || $(RM) -v $(TMP)/usr/lib/perl5/DBD/mysql/INSTALL.pod
- # lintian override for manpage with long line
- dh_installdirs /usr/share/lintian/overrides/
- install -m 644 $(CURDIR)/debian/lintian-overrides $(TMP)/usr/share/lintian/overrides/$(PACKAGE)
- [ ! -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 here for an architecture-dependent package
+binary-arch: install
+ dh $@
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installexamples eg/*
- dh_installdocs
- dh_installchangelogs ChangeLog
- dh_shlibdeps
- dh_strip
- dh_perl
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_gencontrol
- dh_md5sums
- dh_builddeb
+binary-indep:
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+binary: binary-arch binary-indep
+
+.PHONY: binary binary-arch binary-indep install clean build
More information about the Pkg-perl-cvs-commits
mailing list