This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository libpdl-netcdf-perl.

commit b3063246cd25c14ad485fbbdcb90b7021470c792
Author: Bas Couwenberg <sebas...@xs4all.nl>
Date:   Thu Jun 16 20:23:33 2016 +0200

    Refactor rules file to be like pdl.
---
 debian/changelog |   1 +
 debian/rules     | 113 +++++++++++--------------------------------------------
 2 files changed, 24 insertions(+), 90 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ada75e8..f4bfd92 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ libpdl-netcdf-perl (4.20-2) UNRELEASED; urgency=medium
   * Reorder (build) dependencies.
   * Update watch file and Homepage URL to use metacpan.org.
   * Add gbp.conf to use pristine-tar by default.
+  * Refactor rules file to be like pdl.
 
  -- Bas Couwenberg <sebas...@debian.org>  Thu, 16 Jun 2016 19:58:20 +0200
 
diff --git a/debian/rules b/debian/rules
index 239a89b..7d3620b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,28 +1,10 @@
 #!/usr/bin/make -f
-# This debian/rules file is provided as a template for normal perl
-# packages. It was created by Marc Brockschmidt <m...@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
 
-# 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
-
-PACKAGE=$(shell dh_listpackages)
-
-ifndef PERL
-PERL = /usr/bin/perl
-endif
-
-# NetCDF >= 4.3.3.1 uses Multi-Arch path
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
-
-export NETCDF_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
-
-TMP     =$(CURDIR)/debian/$(PACKAGE)
+# Enable hardening build flags
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        export DEB_CFLAGS_MAINT_APPEND:=-Wall
@@ -32,85 +14,36 @@ endif
 
 export DEB_LDFLAGS_MAINT_APPEND:=-Wl,--as-needed
 
-DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk
-
-configure: configure-stamp
-configure-stamp:
-       dh_testdir
-       # Add here commands to configure the package
-       dh_auto_configure
-
-       touch configure-stamp
-
-
-build-arch: build
-build-indep: build
-
-build: build-stamp
-build-stamp: configure
-       dh_testdir
-
-       # As this is a architecture dependent package, we are not
-       # supposed to install stuff to /usr/share. MakeMaker creates
-       # the dirs, we prevent this by setting the INSTALLVENDORARCH
-       # and VENDORARCHEXP environment variables.
-
-       # Add commands to compile the package here
-       $(MAKE) LD_RUN_PATH=""
-
-       touch $@
-
-test: test-stamp
-test-stamp: build-stamp
-       dh_testdir
-       -$(MAKE) TEST_VERBOSE=1 DISPLAY="" test
-       touch test-stamp
+# 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
 
-clean:
-       dh_testdir
-       dh_testroot
+PACKAGE=$(shell dh_listpackages)
 
-       dh_clean build-stamp configure-stamp install-stamp
+# NetCDF >= 4.3.3.1 uses Multi-Arch path
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
-       # Add commands to clean up after the build process here
-       [ ! -f Makefile ] || $(MAKE) realclean
+export NETCDF_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
 
-install: install-stamp
-install-stamp: build-stamp test
-       dh_testdir
-       dh_testroot
-       dh_prep
+%:
+       dh $@ --parallel
 
-       # Add commands to install the package into debian/$PACKAGE_NAME here
-       $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+override_dh_auto_build:
+       LD_RUN_PATH="" dh_auto_build
 
-       touch $@
+override_dh_auto_test:
+       TEST_VERBOSE=1 DISPLAY="" dh_auto_test
 
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do here for an architecture-dependent package
+override_dh_install:
+       dh_install --list-missing
 
-# Build architecture-dependent files here.
-binary-arch: build install
-       dh_testdir
-       dh_testroot
-       dh_installexamples 
+override_dh_installdocs:
        dh_installdocs README
+
+override_dh_installchangelogs:
        dh_installchangelogs Changes
-       dh_shlibdeps
-       dh_strip
+
+override_dh_perl:
        dh_perl
        dh_pdl
-       dh_compress
-       dh_fixperms
-       dh_installdeb
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-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 install configure
+

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libpdl-netcdf-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to