--- libswish-api-common-perl-0.03.orig/debian/control +++ libswish-api-common-perl-0.03/debian/control @@ -0,0 +1,23 @@ +Source: libswish-api-common-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 4.0.2), quilt (>= 0.40) +Build-Depends-Indep: perl (>= 5.8.0-7), swish-e, libwww-perl, liblog-log4perl-perl, libsysadm-install-perl +Maintainer: Debian Perl Group +Uploaders: Florian Ragwitz +Standards-Version: 3.6.2 +Homepage: http://search.cpan.org/dist/SWISH-API-Common/ +Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libswish-api-common-perl/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libswish-api-common-perl/ + +Package: libswish-api-common-perl +Architecture: all +Depends: ${perl:Depends}, swish-e, libwww-perl, liblog-log4perl-perl, libsysadm-install-perl +Description: SWISH Document Indexing Made Easy + SWISH::API::Common offers an easy interface to the Swish index engine. + While SWISH::API offers a complete API, SWISH::API::Common focusses + on ease of use. + . + Currently, SWISH::API::Common just allows for indexing documents + in a single directory and any of its subdirectories. Also, don't run + index() and search() in parallel yet. --- libswish-api-common-perl-0.03.orig/debian/compat +++ libswish-api-common-perl-0.03/debian/compat @@ -0,0 +1 @@ +4 --- libswish-api-common-perl-0.03.orig/debian/rules +++ libswish-api-common-perl-0.03/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +include /usr/share/quilt/quilt.make + +export PERL_MM_USE_DEFAULT=1 + +PACKAGE=$(shell dh_listpackages) + +ifndef PERL +PERL = /usr/bin/perl +endif + +TMP =$(CURDIR)/debian/$(PACKAGE) + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh_testdir + $(PERL) Makefile.PL INSTALLDIRS=vendor + $(MAKE) OPTIMIZE="-Wall -O2 -g" + touch build-stamp + +clean: clean1 unpatch +clean1: + dh_testdir + dh_testroot + [ ! -f Makefile ] || $(MAKE) distclean + dh_clean build-stamp install-stamp + +install: build install-stamp +install-stamp: + dh_testdir + dh_testroot + dh_clean -k + $(MAKE) test + $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr + [ ! -d $(TMP)/usr/lib/perl5 ] || \ + rmdir --ignore-fail-on-non-empty --parents --verbose \ + $(TMP)/usr/lib/perl5 + touch install-stamp + +binary-arch: +# We have nothing to do by default. + +binary-indep: build install + dh_testdir + dh_testroot + dh_installexamples eg/idx_and_search.pl + dh_installdocs + dh_installchangelogs Changes + dh_perl + dh_link + dh_strip + 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 patch unpatch clean1 --- libswish-api-common-perl-0.03.orig/debian/copyright +++ libswish-api-common-perl-0.03/debian/copyright @@ -0,0 +1,14 @@ +This package was debianized by Florian Ragwitz on +Tue, 23 Aug 2005 22:12:04 +0200 + +The upstream author is: Mike Schilli + +Copyright 2005 by Mike Schilli, all rights reserved. + +This program is free software, you can redistribute it and/or modify it under +the same terms as Perl itself. + +Perl is distributed under your choice of the GNU General Public License or +the Artistic License. On Debian GNU/Linux systems, the complete text of the +GNU General Public License can be found in `/usr/share/common-licenses/GPL' +and the Artistic Licence in `/usr/share/common-licenses/Artistic'. --- libswish-api-common-perl-0.03.orig/debian/watch +++ libswish-api-common-perl-0.03/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://search.cpan.org/dist/SWISH-API-Common/ .+/SWISH-API-Common-v?(\d[\d_.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ --- libswish-api-common-perl-0.03.orig/debian/changelog +++ libswish-api-common-perl-0.03/debian/changelog @@ -0,0 +1,37 @@ +libswish-api-common-perl (0.03-2) unstable; urgency=medium + + [ gregor herrmann ] + * Take over for the Debian Perl Group with maintainer's permission + (http://lists.debian.org/debian-perl/2008/06/msg00039.html) + * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser + field (source stanza); Homepage field (source stanza). Changed: + Maintainer set to Debian Perl Group (was: Florian Ragwitz + ); Florian Ragwitz moved + to Uploaders. + * Add debian/watch. + * Switch patch system from dpatch to quilt. + + [ Frank Lichtenheld ] + * Provide a &VERSION subroutine since somehow SWISH::API manages to wreck + the one we get from UNIVERSAL which causes FTBFS in other packages. + * Don't ignore errors from make distclean + + -- Frank Lichtenheld Tue, 08 Jul 2008 23:06:39 +0200 + +libswish-api-common-perl (0.03-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Fixed two FTBFS for the price of one! ;-) + * FTBFS: Typo in Makefile.PL (Closes: #467482) + * FTBFS: No longer dies trying to remove nonexisting directory + /usr/lib/perl5 (perl 5.10 transition) + + -- Gunnar Wolf Tue, 27 May 2008 18:20:09 -0500 + +libswish-api-common-perl (0.03-1) unstable; urgency=low + + * Initial Release (Closes: #324732). + + -- Florian Ragwitz Tue, 23 Aug 2005 21:11:53 +0200 + --- libswish-api-common-perl-0.03.orig/debian/patches/series +++ libswish-api-common-perl-0.03/debian/patches/series @@ -0,0 +1,3 @@ +20swish-e_path.patch +30fix-makefile-pl.patch +40provide_VERSION.patch --- libswish-api-common-perl-0.03.orig/debian/patches/20swish-e_path.patch +++ libswish-api-common-perl-0.03/debian/patches/20swish-e_path.patch @@ -0,0 +1,14 @@ +Author: Florian Ragwitz +Description: Look for swish-e in the default path first. +This should speed up looking for swish-e in the default case. +--- a/lib/SWISH/API/Common.pm ++++ b/lib/SWISH/API/Common.pm +@@ -11,7 +11,7 @@ use warnings; + + our $VERSION = "0.03"; + our $SWISH_EXE = "swish-e"; +-our @SWISH_EXE_PATHS = qw(/usr/local/bin); ++our @SWISH_EXE_PATHS = qw(/usr/bin/ /usr/local/bin); + + use SWISH::API; + use File::Path; --- libswish-api-common-perl-0.03.orig/debian/patches/40provide_VERSION.patch +++ libswish-api-common-perl-0.03/debian/patches/40provide_VERSION.patch @@ -0,0 +1,18 @@ +Index: libswish-api-common-perl/lib/SWISH/API/Common.pm +=================================================================== +--- libswish-api-common-perl.orig/lib/SWISH/API/Common.pm 2008-07-08 22:39:36.000000000 +0200 ++++ libswish-api-common-perl/lib/SWISH/API/Common.pm 2008-07-08 22:41:03.000000000 +0200 +@@ -22,6 +22,13 @@ + use Sysadm::Install qw(:all); + use File::Temp qw(tempfile); + ++# work around SWISH namespaces wreckage ++# the absence of a working &VERSION ++# causes problems with ExtUtils::MakeMaker ++# See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=422609 ++# for more info ++sub VERSION { return $VERSION; } ++ + ########################################### + sub new { + ########################################### --- libswish-api-common-perl-0.03.orig/debian/patches/30fix-makefile-pl.patch +++ libswish-api-common-perl-0.03/debian/patches/30fix-makefile-pl.patch @@ -0,0 +1,13 @@ +Author: +Description: No description. +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -57,7 +57,7 @@ EOT + #print "*** Temporary directory: $dir\n"; + chdir $dir or die "Cannot chdir to $dir"; + my $distro = "swish-e-2.4.3.tar.gz"; +- (my $distrodir = $distro) =~ s/\.tar.\gz$//g; ++ (my $distrodir = $distro) =~ s/\.tar\.gz$//g; + print "Downloading $distro ...\n"; + #File::Copy::copy("/tmp/$distro", "$dir/$distro"); + LWP::Simple::getstore(