--- libcache-simple-timedexpiry-perl-0.27.orig/debian/rules +++ libcache-simple-timedexpiry-perl-0.27/debian/rules @@ -0,0 +1,73 @@ +#!/usr/bin/make -f +# This debian/rules file is provided as a template for normal perl +# packages. It was created by Marc Brockschmidt 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 + +include /usr/share/quilt/quilt.make + +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) + $(MAKE) test + + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + + dh_clean build-stamp install-stamp + [ ! -f Makefile ] || $(MAKE) realclean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + + $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr + [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5 + + touch $@ + +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 + dh_installchangelogs Changes + dh_perl + 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 --- libcache-simple-timedexpiry-perl-0.27.orig/debian/patches/whatis.patch +++ libcache-simple-timedexpiry-perl-0.27/debian/patches/whatis.patch @@ -0,0 +1,13 @@ +Index: libcache-simple-timedexpiry-perl/lib/Cache/Simple/TimedExpiry.pm +=================================================================== +--- libcache-simple-timedexpiry-perl.orig/lib/Cache/Simple/TimedExpiry.pm 2008-03-06 16:40:13.000000000 +0200 ++++ libcache-simple-timedexpiry-perl/lib/Cache/Simple/TimedExpiry.pm 2008-03-06 16:41:03.000000000 +0200 +@@ -8,7 +8,7 @@ + + =head1 NAME + +-Cache::Simple::TimedExpiry ++Cache::Simple::TimedExpiry - simple, time-expiring cache + + =head2 EXAMPLE + --- libcache-simple-timedexpiry-perl-0.27.orig/debian/patches/series +++ libcache-simple-timedexpiry-perl-0.27/debian/patches/series @@ -0,0 +1 @@ +whatis.patch --- libcache-simple-timedexpiry-perl-0.27.orig/debian/watch +++ libcache-simple-timedexpiry-perl-0.27/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://search.cpan.org/dist/Cache-Simple-TimedExpiry/ .*/Cache-Simple-TimedExpiry-v?(\d[\d_.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip) --- libcache-simple-timedexpiry-perl-0.27.orig/debian/compat +++ libcache-simple-timedexpiry-perl-0.27/debian/compat @@ -0,0 +1 @@ +5 --- libcache-simple-timedexpiry-perl-0.27.orig/debian/copyright +++ libcache-simple-timedexpiry-perl-0.27/debian/copyright @@ -0,0 +1,28 @@ +This is the debian package for the Cache::Simple::TimedExpiry module. +It was created by Andrew Stribblehill by tweaking the debian +directory from the libdbix-searchbuilder-perl package. + +Upstream source location: http://search.cpan.org/dist/Cache-Simple-TimedExpiry/ + +Files: * +Copyright: + Copyright 2004 Robert Spier and + Jesse Vincent +License: GPL-1+ | Artistic + This library 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'. + +Files: debian/* +Copyright: + Copyright 2004, Andrew Stribblehill + Copyright 2006, Stephen Quinney + Copyright 2006-2008, Debian Perl Group +License: GPL-1+ | Artistic + It is assumed that all contributors put their work under the same license + as the module itself. + --- libcache-simple-timedexpiry-perl-0.27.orig/debian/changelog +++ libcache-simple-timedexpiry-perl-0.27/debian/changelog @@ -0,0 +1,48 @@ +libcache-simple-timedexpiry-perl (0.27-2) unstable; urgency=low + + [ gregor herrmann ] + * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser + field (source stanza); Homepage field (source stanza). Removed: XS- + Vcs-Svn fields. + * debian/rules: delete /usr/lib/perl5 only if it exists (closes: #467688). + * Set Standards-Version to 3.7.3 (no changes). + * Set debhelper compatibility level to 5. + * debian/watch: use dist-based URL. + * debian/copyright: add upstream source location and convert to new + format. + * debian/rules: replace with template from dh-make-perl, install upstream + changelog. + + [ Damyan Ivanov ] + * add whatis.patch to fix bad whatis entry; add quilt framework + * add myself to Uploaders + + -- Damyan Ivanov Thu, 06 Mar 2008 16:47:30 +0200 + +libcache-simple-timedexpiry-perl (0.27-1) unstable; urgency=low + + * New upstream release + * New maintainer. + * Upgrade to debhelper compatibility level 5. + + -- Niko Tyni Mon, 4 Dec 2006 23:12:31 +0200 + +libcache-simple-timedexpiry-perl (0.26-1) unstable; urgency=low + + * New upstream release + + -- Stephen Quinney Fri, 25 Aug 2006 09:47:19 +0100 + +libcache-simple-timedexpiry-perl (0.25-1) unstable; urgency=low + + * New upstream release, closes: #329507 + * New maintainer + + -- Stephen Quinney Thu, 24 Aug 2006 16:30:43 +0100 + +libcache-simple-timedexpiry-perl (0.21-1) unstable; urgency=low + + * Initial Release (closes: Bug#272464) + + -- Andrew Stribblehill Tue, 7 Sep 2004 12:14:05 +0100 + --- libcache-simple-timedexpiry-perl-0.27.orig/debian/control +++ libcache-simple-timedexpiry-perl-0.27/debian/control @@ -0,0 +1,23 @@ +Source: libcache-simple-timedexpiry-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 5), quilt +Build-Depends-Indep: perl +Maintainer: Debian Perl Group +Uploaders: Niko Tyni , Damyan Ivanov +Standards-Version: 3.7.3 +Homepage: http://search.cpan.org/dist/Cache-Simple-TimedExpiry/ +Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libcache-simple-timedexpiry-perl/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libcache-simple-timedexpiry-perl/ + +Package: libcache-simple-timedexpiry-perl +Architecture: all +Depends: ${perl:Depends} +Description: Perl module to cache and expire key/value pairs + Example: + . + my $h = new Cache::Simple::TimedExpiry; + . + $h->set(Forever => "Don't expire", 0); + do {$h->set($_,"Value of $_", 1); sleep 2;} for qw(Have a nice day); $,=' '; + print $h->elements; $h->dump; sleep 4; print $h->elements; $h->dump;