r11928 - in /trunk/soap-lite/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Wed Jan 2 18:43:36 UTC 2008


Author: gregoa-guest
Date: Wed Jan  2 18:43:36 2008
New Revision: 11928

URL: http://svn.debian.org/wsvn/?sc=1&rev=11928
Log:
debian/rules:
  - remove compiler flags and variables, this package is arch:all
  - move dh_clean and rm's before make distclean
  - remove /usr/lib/perl5 only if it exists
  - remove unused/commented dh_* calls
  - introduce fix-scripts-stamp to make debian/rules parallel-build-safe

Modified:
    trunk/soap-lite/debian/changelog
    trunk/soap-lite/debian/rules

Modified: trunk/soap-lite/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/soap-lite/debian/changelog?rev=11928&op=diff
==============================================================================
--- trunk/soap-lite/debian/changelog (original)
+++ trunk/soap-lite/debian/changelog Wed Jan  2 18:43:36 2008
@@ -12,6 +12,12 @@
   * debian/control:
     - set Standards-Version to 3.7.3 (no changes needed)
     - wrap long lines
+  * debian/rules:
+    - remove compiler flags and variables, this package is arch:all
+    - move dh_clean and rm's before make distclean
+    - remove /usr/lib/perl5 only if it exists
+    - remove unused/commented dh_* calls
+    - introduce fix-scripts-stamp to make debian/rules parallel-build-safe
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Tue, 09 Oct 2007 22:33:31 +0200
 

Modified: trunk/soap-lite/debian/rules
URL: http://svn.debian.org/wsvn/trunk/soap-lite/debian/rules?rev=11928&op=diff
==============================================================================
--- trunk/soap-lite/debian/rules (original)
+++ trunk/soap-lite/debian/rules Wed Jan  2 18:43:36 2008
@@ -19,29 +19,23 @@
 
 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: fix-scripts build-stamp
-build-stamp:
+build: build-stamp
+build-stamp: fix-scripts-stamp
 	dh_testdir
 
 	# Add commands to compile the package here
 	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	$(MAKE) OPTIMIZE="$(CFLAGS)"
+	$(MAKE)
 	
-	touch build-stamp
+	touch $@
 
 # remove the .pl from script names and fix their shebang lines
 SCRIPTS=bin/SOAPsh bin/XMLRPCsh bin/stubmaker
 
-fix-scripts: $(SCRIPTS)
+fix-scripts: fix-scripts-stamp
+fix-scripts-stamp: $(SCRIPTS)
+	touch $@
+	
 bin/%: bin/%.pl
 	echo '#!/usr/bin/perl' > $@
 	# fix the script names inside them too
@@ -51,12 +45,11 @@
 	dh_testdir
 	dh_testroot
 
+	dh_clean build-stamp install-stamp fix-scripts-stamp
+	$(RM) -f $(SCRIPTS)
+
 	# Add commands to clean up after the build process here
 	[ ! -f Makefile ] || $(MAKE) distclean
-
-	$(RM) -f $(SCRIPTS)
-	
-	dh_clean build-stamp install-stamp
 
 install: install-stamp
 install-stamp: build-stamp
@@ -69,9 +62,9 @@
 	
 	# As this is a architecture independent package, we are not supposed to install
 	# stuff to /usr/lib. MakeMaker creates the dirs, we delete them from the deb:
-	rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
+	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
 
-	touch install-stamp
+	touch $@
 
 binary-arch:
 
@@ -79,15 +72,11 @@
 binary-indep: build install
 	dh_testdir
 	dh_testroot
-#	dh_installcron
-#	dh_installmenu
 	dh_installexamples examples/*
 	chmod 644 $(TMP)/usr/share/doc/$(PACKAGE)/examples/COM/make-com-*
 	dh_installdocs README examples/COM/README
 	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