r23785 - in /trunk/libastro-fits-header-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Tue Aug 5 02:40:04 UTC 2008


Author: gregoa
Date: Tue Aug  5 02:39:53 2008
New Revision: 23785

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=23785
Log:
Refresh debian/rules, no functional changes, fixes some lintian errors and
warnings.

Modified:
    trunk/libastro-fits-header-perl/debian/changelog
    trunk/libastro-fits-header-perl/debian/rules

Modified: trunk/libastro-fits-header-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libastro-fits-header-perl/debian/changelog?rev=23785&op=diff
==============================================================================
--- trunk/libastro-fits-header-perl/debian/changelog (original)
+++ trunk/libastro-fits-header-perl/debian/changelog Tue Aug  5 02:39:53 2008
@@ -11,6 +11,8 @@
 
   [ gregor herrmann ]
   * debian/watch: use dist-based URL.
+  * Refresh debian/rules, no functional changes, fixes some lintian errors and
+    warnings.
 
  -- Joachim Breitner <nomeata at debian.org>  Mon, 11 Feb 2008 20:23:52 +0000
 

Modified: trunk/libastro-fits-header-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libastro-fits-header-perl/debian/rules?rev=23785&op=diff
==============================================================================
--- trunk/libastro-fits-header-perl/debian/rules (original)
+++ trunk/libastro-fits-header-perl/debian/rules Tue Aug  5 02:39:53 2008
@@ -1,93 +1,69 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+# 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
 
-PACKAGE=$(shell dh_listpackages)
+# 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
 
-ifndef PERL
-PERL = /usr/bin/perl
-endif
-
-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
-
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
-	# Add here commands to configure the package.
-	$(PERL) Makefile.PL verbose INSTALLDIRS=vendor
-	touch configure-stamp
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
-build-stamp: configure
+build-stamp:
 	dh_testdir
-
-	# Add here commands to compile the package.
-	$(MAKE) CC=gcc OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
-
-	touch build-stamp
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE)
+	$(MAKE) test
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp configure-stamp
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
-	# Add here commands to clean up after the build process.
-	-$(MAKE) distclean
-
-	dh_clean
-
-install: build
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
-
-	# Add here commands to install the package
 	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
-
 	# make the module compliant with debian policy, the NDF and GSD
 	# libraries on which these modules depend are non-free so will
 	# have to be in a separate package, i will set this up at some point.
+	-rm -f $(TMP)/usr/share/man/man3/Astro::FITS::Header::NDF.3pm
+	-rm -f $(TMP)/usr/share/perl5/Astro/FITS/Header/NDF.pm
 
-	-rm -f debian/`dh_listpackages`/usr/share/man/man3/Astro::FITS::Header::NDF.3pm
-	-rm -f debian/`dh_listpackages`/usr/share/perl5/Astro/FITS/Header/NDF.pm
+	-rm -f $(TMP)/usr/share/man/man3/Astro::FITS::Header::GSD.3pm
+	-rm -f $(TMP)/usr/share/perl5/Astro/FITS/Header/GSD.pm
 
-	-rm -f debian/`dh_listpackages`/usr/share/man/man3/Astro::FITS::Header::GSD.3pm
-	-rm -f debian/`dh_listpackages`/usr/share/perl5/Astro/FITS/Header/GSD.pm
+	[ ! -d $(TMP)/usr/lib/perl5 ] || \
+		rmdir --ignore-fail-on-non-empty --parents --verbose \
+		$(TMP)/usr/lib/perl5
+	touch $@
 
-# Build architecture-dependent files here.
-binary-arch: build install
+binary-arch:
+# We have nothing to do here for an architecture-independent package
 
-# Build architecture-independent files here.
 binary-indep: build install
 	dh_testdir
 	dh_testroot
+	dh_installdocs README TODO
+	dh_installchangelogs ChangeLog
 	dh_perl
-	dh_installdocs README TODO
-	dh_installexamples
-	dh_installchangelogs ChangeLog
-	dh_link
-	dh_strip
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_installman
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install




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