r16998 - in /trunk/libmodule-signature-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Sat Mar 8 23:05:10 UTC 2008


Author: gregoa-guest
Date: Sat Mar  8 23:05:09 2008
New Revision: 16998

URL: http://svn.debian.org/wsvn/?sc=1&rev=16998
Log:
debian/rules:
  - update based on dh-make-perl's templates
  - don't install README any more (no additional information)

Modified:
    trunk/libmodule-signature-perl/debian/changelog
    trunk/libmodule-signature-perl/debian/rules

Modified: trunk/libmodule-signature-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libmodule-signature-perl/debian/changelog?rev=16998&op=diff
==============================================================================
--- trunk/libmodule-signature-perl/debian/changelog (original)
+++ trunk/libmodule-signature-perl/debian/changelog Sat Mar  8 23:05:09 2008
@@ -4,13 +4,16 @@
     field (source stanza); Homepage field (source stanza). Removed: XS-
     Vcs-Svn fields.
   * debian/rules: delete /usr/lib/perl5 only if it exists (closes: #467870).
+  * debian/rules:
+    - update based on dh-make-perl's templates
+    - don't install README any more (no additional information)
   * debian/watch: use dist-based URL.
   * Set Standards-Version to 3.7.3 (no changes).
   * Add debian/compat instead of setting DH_COMPAT in debian/rules.
   * debian/copyright: add download URL and copy copyright/license terms
     verbatim from README to match reality.
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Sat, 08 Mar 2008 23:58:06 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Sat, 08 Mar 2008 23:59:52 +0100
 
 libmodule-signature-perl (0.55-1) unstable; urgency=low
 

Modified: trunk/libmodule-signature-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libmodule-signature-perl/debian/rules?rev=16998&op=diff
==============================================================================
--- trunk/libmodule-signature-perl/debian/rules (original)
+++ trunk/libmodule-signature-perl/debian/rules Sat Mar  8 23:05:09 2008
@@ -1,13 +1,15 @@
 #!/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
+
+# 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)
 
@@ -15,62 +17,54 @@
 PERL = /usr/bin/perl
 endif
 
-ifndef DESTDIR
-DESTDIR=..
-endif
-TMP     =`pwd`/debian/$(PACKAGE)
+TMP     =$(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
 build-stamp:
 	dh_testdir
-	$(PERL) Makefile.PL INSTALLDIRS=vendor -skipdeps
-	$(MAKE) OPTIMIZE="-O2 -g -Wall"
-	touch build-stamp
+
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE)
+	$(MAKE) test
+
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp
-	-$(MAKE) realclean
-	dh_clean
 
-install: 
+	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
-	$(MAKE) install PREFIX=$(TMP)/usr
+
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
 	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
 
-# Build architecture-dependent files here.
-binary-arch: build install
-# We have nothing to do by default.
+	touch $@
 
-# Build architecture-independent files here.
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
 binary-indep: build install
 	dh_testdir
 	dh_testroot
-	dh_installdocs README
-	dh_installexamples
-	dh_installmenu
-	dh_installcron
-	dh_installman
-#	dh_undocumented
+	dh_installdocs
 	dh_installchangelogs Changes
-	dh_link
-	dh_strip
+	dh_perl
 	dh_compress
 	dh_fixperms
-#	dh_makeshlibs
 	dh_installdeb
-	dh_perl 
-	dh_shlibdeps
 	dh_gencontrol
 	dh_md5sums
-	dh_builddeb --destdir="$(DESTDIR)"
+	dh_builddeb
 
-source diff:                                                                  
+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