r16010 - in /trunk/libtext-formattable-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Sat Mar 1 00:23:20 UTC 2008


Author: gregoa-guest
Date: Sat Mar  1 00:23:19 2008
New Revision: 16010

URL: http://svn.debian.org/wsvn/?sc=1&rev=16010
Log:
debian/rules:
  - don't ignore errors of make distclean
  - move tests to build-stamp target
  - remove unused CFLAGS
  - use $@ for touching stamp files
  - install example.pl with dh_installexamples instead of dh_installdocs
  - remove some unused/unneeded dh_* calls
  - don't install the README any more, doesn't provide useful information
    for the user

Modified:
    trunk/libtext-formattable-perl/debian/changelog
    trunk/libtext-formattable-perl/debian/rules

Modified: trunk/libtext-formattable-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libtext-formattable-perl/debian/changelog?rev=16010&op=diff
==============================================================================
--- trunk/libtext-formattable-perl/debian/changelog (original)
+++ trunk/libtext-formattable-perl/debian/changelog Sat Mar  1 00:23:19 2008
@@ -7,8 +7,17 @@
   * debian/watch: use dist-based URL.
   * Set Standards-Version to 3.7.3 (no changes).
   * Set debhelper compatibility level to 6.
+  * debian/rules:
+    - don't ignore errors of make distclean
+    - move tests to build-stamp target
+    - remove unused CFLAGS
+    - use $@ for touching stamp files
+    - install example.pl with dh_installexamples instead of dh_installdocs
+    - remove some unused/unneeded dh_* calls
+    - don't install the README any more, doesn't provide useful information
+      for the user
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Sat, 01 Mar 2008 01:16:58 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Sat, 01 Mar 2008 01:22:42 +0100
 
 libtext-formattable-perl (1.01-1) unstable; urgency=low
 

Modified: trunk/libtext-formattable-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libtext-formattable-perl/debian/rules?rev=16010&op=diff
==============================================================================
--- trunk/libtext-formattable-perl/debian/rules (original)
+++ trunk/libtext-formattable-perl/debian/rules Sat Mar  1 00:23:19 2008
@@ -19,32 +19,22 @@
 
 TMP     =$(CURDIR)/debian/$(PACKAGE)
 
-# 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: build-stamp
 build-stamp:
 	dh_testdir
 
-	# Add commands to compile the package here
 	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
+	$(MAKE) test
 
-	touch build-stamp
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
 
-	# Add commands to clean up after the build process here
 	dh_clean build-stamp install-stamp
-	-$(MAKE) distclean
+	[ ! -f Makefile ] || $(MAKE) distclean
 
 install: install-stamp
 install-stamp: build-stamp
@@ -52,11 +42,10 @@
 	dh_testroot
 	dh_clean -k
 
-	$(MAKE) test
 	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
 
 	# example.pl is incorrectly installed in the modules directory. We 
-	# remove it here and later (at dh_installdocs in the binary-inde 
+	# remove it here and later (at dh_installexmaples in the binary-indep
 	# target) add it as documentation.
 	rm -f $(TMP)/usr/share/perl5/Text/example.pl
 
@@ -65,7 +54,7 @@
 	# from the deb:
 	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
 
-	touch install-stamp
+	touch $@
 
 binary-arch:
 # We have nothing to do by default.
@@ -73,14 +62,10 @@
 binary-indep: build install
 	dh_testdir
 	dh_testroot
-#	dh_installcron
-#	dh_installmenu
-#	dh_installexamples
-	dh_installdocs README example.pl
+	dh_installexamples example.pl
+	dh_installdocs
 	dh_installchangelogs Changes
 	dh_perl
-	dh_link
-	dh_strip
 	dh_compress
 	dh_fixperms
 	dh_installdeb




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