[SCM] Debian packaging of libdevice-cdio-perl branch, master, updated. 6b67a68afa744d1ca74eb40c47fbf784accf37e9

gregor herrmann gregoa at debian.org
Fri Oct 21 15:17:27 UTC 2011


The following commit has been merged in the master branch:
commit 616af080ba36d7a8a8760b95eb2df29b5ae3340a
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri Oct 21 17:12:31 2011 +0200

    Use tiny debian/rules and debhelper 8.

diff --git a/debian/compat b/debian/compat
index 1e8b314..45a4fb7 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-6
+8
diff --git a/debian/control b/debian/control
index 603cbab..cd179bc 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,7 @@
 Source: libdevice-cdio-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 6), swig, libmodule-build-perl,
+Build-Depends: debhelper (>= 8), swig, libmodule-build-perl,
  perl (>= 5.8.8-7), libversion-perl, libextutils-pkgconfig-perl, libcdio-dev,
  libiso9660-dev, libtest-pod-coverage-perl, libtest-pod-perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
diff --git a/debian/rules b/debian/rules
index 2dac221..03bcc80 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,76 +1,12 @@
 #!/usr/bin/make -f
-# 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
+%:
+	dh $@ --buildsystem=perl_build
 
-# 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
+override_dh_auto_test:
+	TZ=UTC dh_auto_test
 
-PERL   ?= /usr/bin/perl
-PACKAGE = $(shell dh_listpackages)
-TMP     = $(CURDIR)/debian/$(PACKAGE)
-
-# Allow disabling build optimisation 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) Build.PL installdirs=vendor config=optimize="$(CFLAGS)"
-	OPTIMIZE="$(CFLAGS)" $(PERL) Build
-	TZ=UTC $(PERL) Build test
-	touch $@
-
-clean:
-	dh_testdir
-	dh_testroot
-	dh_clean build-stamp install-stamp
-	# remove files that will be regenerated by SWIG (and fail because of
-	# permissions in the original tarball)
-	$(RM) $(CURDIR)/perlcdio_wrap.c $(CURDIR)/perliso9660_wrap.c \
-		$(CURDIR)/perlmmc_wrap.c $(CURDIR)/lib/perlmmc.pm \
-		$(CURDIR)/lib/perlcdio.pm $(CURDIR)/lib/perliso9660.pm
-	[ ! -f Build ] || ( touch Build && $(PERL) Build --allow_mb_mismatch 1 distclean )
-
-install: install-stamp
-install-stamp: build-stamp
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	$(PERL) Build install destdir=$(TMP) create_packlist=0
-	touch $@
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do here for an architecture-dependent package
-
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs
-	dh_installexamples examples/*
-	dh_installchangelogs Changes
-	dh_shlibdeps
-	dh_strip
-	dh_perl
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+# from old debian/rules, maybe add to debian/clean
+#       $(RM) $(CURDIR)/perlcdio_wrap.c $(CURDIR)/perliso9660_wrap.c \
+#               $(CURDIR)/perlmmc_wrap.c $(CURDIR)/lib/perlmmc.pm \
+#               $(CURDIR)/lib/perlcdio.pm $(CURDIR)/lib/perliso9660.pm

-- 
Debian packaging of libdevice-cdio-perl



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