r15550 - in /trunk/libclass-methodmaker-perl/debian: changelog compat control docs rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Sun Feb 24 23:02:25 UTC 2008


Author: gregoa-guest
Date: Sun Feb 24 23:02:24 2008
New Revision: 15550

URL: http://svn.debian.org/wsvn/?sc=1&rev=15550
Log:
* debian/rules:
  - rewrite from scratch from dh-make-perl's template
  - install TODO from debian/rules, don't install README anymore, remove
    debian/docs accordingly
  - install examples/*
* Set Standards-Version to 3.7.3 (no changes).
* Set debhelper compatibility level to 6; add debian/compat.

Added:
    trunk/libclass-methodmaker-perl/debian/compat
Removed:
    trunk/libclass-methodmaker-perl/debian/docs
Modified:
    trunk/libclass-methodmaker-perl/debian/changelog
    trunk/libclass-methodmaker-perl/debian/control
    trunk/libclass-methodmaker-perl/debian/rules

Modified: trunk/libclass-methodmaker-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libclass-methodmaker-perl/debian/changelog?rev=15550&op=diff
==============================================================================
--- trunk/libclass-methodmaker-perl/debian/changelog (original)
+++ trunk/libclass-methodmaker-perl/debian/changelog Sun Feb 24 23:02:24 2008
@@ -12,8 +12,15 @@
     http://search.cpan.org/~schwigon/Class-MethodMaker-2.10/ -- necessary to
     fix the FBTFS with Perl 5.10 (closes: #463093). Add the author-style URL
     for these releases to debian/watch.
+  * debian/rules:
+    - rewrite from scratch from dh-make-perl's template
+    - install TODO from debian/rules, don't install README anymore, remove
+      debian/docs accordingly
+    - install examples/*
+  * Set Standards-Version to 3.7.3 (no changes).
+  * Set debhelper compatibility level to 6; add debian/compat.
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Sun, 24 Feb 2008 23:37:27 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Sun, 24 Feb 2008 23:57:41 +0100
 
 libclass-methodmaker-perl (2.07-2) unstable; urgency=low
 

Added: trunk/libclass-methodmaker-perl/debian/compat
URL: http://svn.debian.org/wsvn/trunk/libclass-methodmaker-perl/debian/compat?rev=15550&op=file
==============================================================================
--- trunk/libclass-methodmaker-perl/debian/compat (added)
+++ trunk/libclass-methodmaker-perl/debian/compat Sun Feb 24 23:02:24 2008
@@ -1,0 +1,1 @@
+6

Modified: trunk/libclass-methodmaker-perl/debian/control
URL: http://svn.debian.org/wsvn/trunk/libclass-methodmaker-perl/debian/control?rev=15550&op=diff
==============================================================================
--- trunk/libclass-methodmaker-perl/debian/control (original)
+++ trunk/libclass-methodmaker-perl/debian/control Sun Feb 24 23:02:24 2008
@@ -2,8 +2,8 @@
 Section: perl
 Priority: optional
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Build-Depends: debhelper
-Standards-Version: 3.6.2
+Build-Depends: debhelper (>> 6)
+Standards-Version: 3.7.3
 Homepage: http://search.cpan.org/dist/Class-MethodMaker/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libclass-methodmaker-perl/
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libclass-methodmaker-perl/

Modified: trunk/libclass-methodmaker-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libclass-methodmaker-perl/debian/rules?rev=15550&op=diff
==============================================================================
--- trunk/libclass-methodmaker-perl/debian/rules (original)
+++ trunk/libclass-methodmaker-perl/debian/rules Sun Feb 24 23:02:24 2008
@@ -1,83 +1,86 @@
 #!/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
 
-# This is the debhelper compatability version to use.
-export DH_COMPAT=4
+# 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
+
+PACKAGE=$(shell dh_listpackages)
 
 ifndef PERL
-	PERL    = /usr/bin/perl
+PERL = /usr/bin/perl
 endif
-	TMP	= `pwd`/debian/libclass-methodmaker-perl
-	config	=       INSTALLBIN=$(TMP)/usr/bin \
-		INSTALLSCRIPT=$(TMP)/usr/bin \
-		INSTALLDIRS=perl \
-		INSTALLMAN1DIR=$(TMP)/usr/share/man/man1 \
-		INSTALLMAN3DIR=$(TMP)/usr/share/man/man3 \
-		INSTALLPRIVLIB=$(TMP)/usr/share/perl5 \
-		INSTALLARCHLIB=$(TMP)/usr/lib/perl5
 
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
-	# Add here commands to configure the package.
-	$(PERL) Makefile.PL $(config)
+TMP     =$(CURDIR)/debian/$(PACKAGE)
 
-	touch configure-stamp
+# Allow disabling build optimation by setting noopt in
+# $DEB_BUILD_OPTIONS
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+        CFLAGS += -O0
+else
+        CFLAGS += -O2
+endif
 
-build: configure-stamp build-stamp
+build: build-stamp
 build-stamp:
 	dh_testdir
 
-	# Add here commands to compile the package.
-	$(MAKE)
-	#/usr/bin/docbook-to-man debian/libclass-methodmaker-perl.sgml > libclass-methodmaker-perl.1
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
+	$(MAKE) test
 
-	touch build-stamp
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp configure-stamp
-	if [ -e Makefile ]; then $(MAKE) -i distclean; fi
-	dh_clean
 
-install: build
+	dh_clean build-stamp install-stamp
+
+	[ ! -f Makefile ] || $(MAKE) realclean
+
+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/libclass-methodmaker-perl.
-	$(MAKE) install
-	[ -d debian/libclass-methodmaker-perl/usr/share/perl5/auto ] || mkdir -p debian/libclass-methodmaker-perl/usr/share/perl5/auto
-	# mv debian/libclass-methodmaker-perl/usr/lib/perl/5.8/auto debian/libclass-methodmaker-perl/usr/share/perl5/auto
-	find debian/libclass-methodmaker-perl/ -type f -name '.packlist' | xargs --no-run-if-empty rm
-	find debian/libclass-methodmaker-perl/usr/lib -type d -empty | xargs --no-run-if-empty rmdir -p || true
-	mkdir -p debian/libclass-methodmaker-perl/usr/share/lintian/overrides
-	cp debian/lintian.override debian/libclass-methodmaker-perl/usr/share/lintian/overrides/libclass-methodmaker-perl
+	$(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 here for an architecture-dependent package
+
+# Build architecture-dependent files here.
 binary-arch: build install
-#	dh_testversion
 	dh_testdir
 	dh_testroot
-	dh_installdocs
+	dh_installexamples examples/*
+	dh_installdocs TODO
 	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
 
-# Build architecture-dependent files here.
-binary-indep: build install
-# We have nothing to do here.
+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 install
+.PHONY: build clean binary-indep binary-arch binary




More information about the Pkg-perl-cvs-commits mailing list