r12567 - in /trunk/libfile-spec-perl/debian: changelog control rules

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Fri Jan 11 21:58:21 UTC 2008


Author: dmn
Date: Fri Jan 11 21:58:21 2008
New Revision: 12567

URL: http://svn.debian.org/wsvn/?sc=1&rev=12567
Log:
* rules:
  + adapt to Module::Build
  + add CFLAGS optimization settings, depending on DEB_BUILD_OPTS
* control: add libmodule-build-perl to Build-Depends

Modified:
    trunk/libfile-spec-perl/debian/changelog
    trunk/libfile-spec-perl/debian/control
    trunk/libfile-spec-perl/debian/rules

Modified: trunk/libfile-spec-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libfile-spec-perl/debian/changelog?rev=12567&op=diff
==============================================================================
--- trunk/libfile-spec-perl/debian/changelog (original)
+++ trunk/libfile-spec-perl/debian/changelog Fri Jan 11 21:58:21 2008
@@ -1,3 +1,12 @@
+libfile-spec-perl (3.2501-2) UNRELEASED; urgency=low
+
+  * rules:
+    + adapt to Module::Build
+    + add CFLAGS optimization settings, depending on DEB_BUILD_OPTS
+  * control: add libmodule-build-perl to Build-Depends
+
+ -- Damyan Ivanov <dmn at debian.org>  Fri, 11 Jan 2008 23:36:41 +0200
+
 libfile-spec-perl (3.2501-1) unstable; urgency=low
 
   [ Roberto C. Sanchez ]

Modified: trunk/libfile-spec-perl/debian/control
URL: http://svn.debian.org/wsvn/trunk/libfile-spec-perl/debian/control?rev=12567&op=diff
==============================================================================
--- trunk/libfile-spec-perl/debian/control (original)
+++ trunk/libfile-spec-perl/debian/control Fri Jan 11 21:58:21 2008
@@ -1,7 +1,8 @@
 Source: libfile-spec-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>> 6), perl (>= 5.8.0-7)
+Build-Depends: debhelper (>> 6), perl (>= 5.8.0-7),
+ libmodule-build-perl (>= 0.19)
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Bastian Blank <waldi at debian.org>, Roberto C. Sanchez <roberto at debian.org>
 Standards-Version: 3.7.3

Modified: trunk/libfile-spec-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libfile-spec-perl/debian/rules?rev=12567&op=diff
==============================================================================
--- trunk/libfile-spec-perl/debian/rules (original)
+++ trunk/libfile-spec-perl/debian/rules Fri Jan 11 21:58:21 2008
@@ -10,19 +10,28 @@
 PACKAGE = $(firstword $(shell dh_listpackages))
 PERL   ?= /usr/bin/perl
 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
-	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	$(MAKE)
-	$(MAKE) test
+	$(PERL) Build.PL installdirs=vendor
+	OPTIMIZE="$(CFLAGS)" $(PERL) Build
+	$(PERL) Build test
 	touch $@
 
 clean:
 	dh_testdir
 	rm -f build-stamp install-stamp
-	[ ! -f Makefile ] || $(MAKE) distclean
+	[ ! -f Build ] || $(PERL) Build distclean
 	dh_clean
 
 install: install-stamp
@@ -30,10 +39,9 @@
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-	[ ! -d $(TMP)/usr/share/perl5 ] || \
-		rmdir --ignore-fail-on-non-empty --parents \
-		      --verbose $(TMP)/usr/share/perl5
+	$(PERL) Build install destdir=$(TMP) create_packlist=0
+
+	[ ! -d $(TMP)/usr/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/share/perl5
 
 	touch $@
 




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