r17286 - in /trunk/libsys-hostname-long-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Wed Mar 12 19:22:27 UTC 2008


Author: gregoa-guest
Date: Wed Mar 12 19:22:27 2008
New Revision: 17286

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=17286
Log:
debian/rules:
  - update based on dh-make-perl's templates
  - don't install almost empty README any more
  - don't install testall.pl into /usr/share/perl5/ but as an example
  - activate test suite

Modified:
    trunk/libsys-hostname-long-perl/debian/changelog
    trunk/libsys-hostname-long-perl/debian/rules

Modified: trunk/libsys-hostname-long-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsys-hostname-long-perl/debian/changelog?rev=17286&op=diff
==============================================================================
--- trunk/libsys-hostname-long-perl/debian/changelog (original)
+++ trunk/libsys-hostname-long-perl/debian/changelog Wed Mar 12 19:22:27 2008
@@ -5,12 +5,17 @@
     Vcs-Svn fields.
   * debian/watch: use dist-based URL.
   * debian/rules: delete /usr/lib/perl5 only if it exists (closes: #467967).
+  * debian/rules:
+    - update based on dh-make-perl's templates
+    - don't install almost empty README any more
+    - don't install testall.pl into /usr/share/perl5/ but as an example
+    - activate test suite
   * Set Standards-Version to 3.7.3 (no changes).
   * Set debhelper compatibility level to 5.
   * Add /me to Uploaders.
   * debian/copyright: add specific download URL and actual copyright notice.
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Wed, 12 Mar 2008 20:12:16 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Wed, 12 Mar 2008 20:21:03 +0100
 
 libsys-hostname-long-perl (1.4-1) unstable; urgency=low
 

Modified: trunk/libsys-hostname-long-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsys-hostname-long-perl/debian/rules?rev=17286&op=diff
==============================================================================
--- trunk/libsys-hostname-long-perl/debian/rules (original)
+++ trunk/libsys-hostname-long-perl/debian/rules Wed Mar 12 19:22:27 2008
@@ -19,33 +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) OPTIMIZE="$(CFLAGS)"
-	
-	touch build-stamp
+	$(MAKE)
+	$(MAKE) test
+
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
 
-	# Add commands to clean up after the build process here
-	-$(MAKE) distclean
-	
 	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
 install: install-stamp
 install-stamp: build-stamp
@@ -53,30 +42,22 @@
 	dh_testroot
 	dh_clean -k
 
-    #--- don't activate test suite - it demand su and root password 
-	#--- $(MAKE) test
 	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-	
-	# 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:
 	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
+	[ ! -f $(TMP)/usr/share/perl5/Sys/Hostname/testall.pl ] || rm -v $(TMP)/usr/share/perl5/Sys/Hostname/testall.pl
 
-	touch install-stamp
+	touch $@
 
 binary-arch:
-# We have nothing to do by default.
+# We have nothing to do here for an architecture-independent package
 
 binary-indep: build install
 	dh_testdir
 	dh_testroot
-#	dh_installcron
-#	dh_installmenu
-#	dh_installexamples
-	dh_installdocs README
+	dh_installexamples testall.pl
+	dh_installdocs
 	dh_installchangelogs Changes
 	dh_perl
-	dh_link
-	dh_strip
 	dh_compress
 	dh_fixperms
 	dh_installdeb
@@ -84,8 +65,8 @@
 	dh_md5sums
 	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