r19657 - in /trunk/libdata-stag-perl: debian/changelog debian/fix_binaries debian/fix_manpages debian/libdata-stag-perl.doc-base debian/rules debian/watch homepage/images/celtic-stag.gif
plessy at users.alioth.debian.org
plessy at users.alioth.debian.org
Thu May 8 00:49:28 UTC 2008
Author: plessy
Date: Thu May 8 00:49:27 2008
New Revision: 19657
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=19657
Log:
Build system tidied, and file of unclear copyright status deleted.
- debian/rules was updated using dh-make-perl -R
- manpages and binary names are fixed using prename instead of an external script
- a GIF file of unclear copyright status was removed, and a get-orig-source
target was added to debian/rules. debian/watch and debian/changelog were
updated accordingly.
- doc is registered via doc-base.
Added:
trunk/libdata-stag-perl/debian/libdata-stag-perl.doc-base
Removed:
trunk/libdata-stag-perl/debian/fix_binaries
trunk/libdata-stag-perl/debian/fix_manpages
trunk/libdata-stag-perl/homepage/images/celtic-stag.gif
Modified:
trunk/libdata-stag-perl/debian/changelog
trunk/libdata-stag-perl/debian/rules
trunk/libdata-stag-perl/debian/watch
Modified: trunk/libdata-stag-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-stag-perl/debian/changelog?rev=19657&op=diff
==============================================================================
--- trunk/libdata-stag-perl/debian/changelog (original)
+++ trunk/libdata-stag-perl/debian/changelog Thu May 8 00:49:27 2008
@@ -1,7 +1,4 @@
-libdata-stag-perl (0.10-1) UNRELEASED; urgency=low
-
- TODO: debian/rules: dependency problems/not parallel buildable, slightly
- outdated --> dh-make-perl -R
+libdata-stag-perl (0.10~dfsg-1) UNRELEASED; urgency=low
TODO: changes in .diff.gz outside of debian/patches - ?!
TODO: missing manpages
Added: trunk/libdata-stag-perl/debian/libdata-stag-perl.doc-base
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-stag-perl/debian/libdata-stag-perl.doc-base?rev=19657&op=file
==============================================================================
--- trunk/libdata-stag-perl/debian/libdata-stag-perl.doc-base (added)
+++ trunk/libdata-stag-perl/debian/libdata-stag-perl.doc-base Thu May 8 00:49:27 2008
@@ -1,0 +1,9 @@
+Document: libdata-stag-perl-homepage
+Title: Copy of the Stag homepage
+Abstract: This is a local copy of http://stag.sourceforge.net/,
+ provided by the CPAN Data::Stag module.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libdata-stag-perl/homepage/index.html
+Files: /usr/share/doc/libdata-stag-perl/homepage/*.html
Modified: trunk/libdata-stag-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-stag-perl/debian/rules?rev=19657&op=diff
==============================================================================
--- trunk/libdata-stag-perl/debian/rules (original)
+++ trunk/libdata-stag-perl/debian/rules Thu May 8 00:49:27 2008
@@ -11,71 +11,50 @@
# 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
-
-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
+PERL ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
include /usr/share/quilt/quilt.make
build: patch build-stamp
build-stamp:
dh_testdir
-
- $(PERL) Makefile.PL INSTALLDIRS=vendor \
- INSTALLVENDORARCH=/usr/lib/perl5/ \
- VENDORARCHEXP=/usr/lib/perl5/
- $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
+ # Add commands to compile the package here
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
+ $(MAKE)
+ $(MAKE) test
touch $@
-
-test: build
- $(MAKE) test
-
clean: unpatch
dh_testdir
dh_testroot
-
- dh_clean build-stamp install-stamp qq
-
+ dh_clean build-stamp install-stamp
+ # Add commands to clean up after the build process here
[ ! -f Makefile ] || $(MAKE) realclean
-install: build install-stamp
-install-stamp:
+install: install-stamp
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
-
+ # Add commands to install the package into $(TMP) here
$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-
- chmod a+x $(CURDIR)/debian/fix_binaries $(CURDIR)/debian/fix_manpages
- $(CURDIR)/debian/fix_binaries $(CURDIR)
- $(CURDIR)/debian/fix_manpages $(CURDIR)
-
-
+ [ ! -d $(TMP)/usr/lib/perl5 ] || \
+ rmdir --ignore-fail-on-non-empty --parents --verbose \
+ $(TMP)/usr/lib/perl5
+ prename 's/\.pl//' $(CURDIR)/debian/libdata-stag-perl/usr/bin/*
+ prename 's/\.pl//' $(CURDIR)/debian/libdata-stag-perl/usr/share/man/man1/*1p*
touch $@
-binary-arch: build install
-binary-indep: build install test
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
+binary-indep: build install
dh_testdir
dh_testroot
- dh_installexamples
- dh_installdocs README c-ext/README.c-ext
+ dh_installdocs README
dh_installchangelogs Changes
- dh_shlibdeps
- dh_strip
dh_perl
dh_compress
dh_fixperms
@@ -84,8 +63,12 @@
dh_md5sums
dh_builddeb
-source diff:
- @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+get-orig-sources:
+ # I am not sure of the copyright of images/celtic-stag.gif -- Charles Plessy <plessy at debian.org>
+ uscan --force-download
+ gunzip --to-stdout ../Data-Stag-0.10.tar.gz | \
+ tar --delete Data-Stag-0.10/homepage/images/celtic-stag.gif | \
+ gzip --best > ../libdata-stag-perl_0.10~dfsg.orig.tar.gz
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
+.PHONY: build clean binary-indep binary-arch binary install
Modified: trunk/libdata-stag-perl/debian/watch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-stag-perl/debian/watch?rev=19657&op=diff
==============================================================================
--- trunk/libdata-stag-perl/debian/watch (original)
+++ trunk/libdata-stag-perl/debian/watch Thu May 8 00:49:27 2008
@@ -1,3 +1,4 @@
# format version number, currently 3; this line is compulsory!
version=3
+opts=dversionmangle=s/~dfsg// \
http://search.cpan.org/dist/Data-Stag/ .*/Data-Stag-([\.\d]+)\.(?:tar\.gz|tar|tgz)$
More information about the Pkg-perl-cvs-commits
mailing list