--- libcompress-zlib-perl-2.015.orig/debian/rules
+++ libcompress-zlib-perl-2.015/debian/rules
@@ -0,0 +1,63 @@
+#!/usr/bin/make -f
+# This debian/rules file is provided as a template for normal perl
+# packages. It was created by Marc Brockschmidt <marc@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
+
+include /usr/share/quilt/quilt.make
+
+# 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
+
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
+build-stamp: $(QUILT_STAMPFN)
+	dh_testdir
+	$(PERL) Makefile.PL INSTALLDIRS=vendor INST_LIB='blib/lib'
+	$(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 examples/*
+	dh_installdocs README
+	dh_installchangelogs Changes
+	dh_perl
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- libcompress-zlib-perl-2.015.orig/debian/README.source
+++ libcompress-zlib-perl-2.015/debian/README.source
@@ -0,0 +1,4 @@
+This package uses quilt for anaging patches to upstream source.
+
+A brief explaiination about the procedures is available in
+/usr/share/quilt/README.source file, shipped in `quilt' package.
--- libcompress-zlib-perl-2.015.orig/debian/control
+++ libcompress-zlib-perl-2.015/debian/control
@@ -0,0 +1,38 @@
+Source: libcompress-zlib-perl
+Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
+Uploaders: gregor herrmann <gregoa@debian.org>,
+ Krzysztof Krzyzaniak (eloy) <eloy@debian.org>,
+ Damyan Ivanov <dmn@debian.org>,
+ Gunnar Wolf <gwolf@debian.org>
+Priority: optional
+Section: perl
+Standards-Version: 3.8.0
+Homepage: http://search.cpan.org/dist/Compress-Zlib/
+Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libcompress-zlib-perl/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libcompress-zlib-perl/
+Build-Depends: debhelper (>= 6), quilt
+Build-Depends-Indep:  perl (>= 5.8.3), libtest-pod-perl,
+ libio-compress-zlib-perl (>= 2.015),
+ libio-compress-zlib-perl (<< 2.016),
+ libio-compress-base-perl (>= 2.015), 
+ libio-compress-base-perl (<< 2.016) 
+
+Package: libcompress-zlib-perl
+Priority: optional
+Architecture: all
+Depends: ${perl:Depends}, ${shlibs:Depends},
+ libio-compress-zlib-perl (>= ${source:Upstream-Version}),
+ libio-compress-zlib-perl (<< ${source:Upstream-Version}.~),
+ libio-compress-base-perl (>= ${source:Upstream-Version}),
+ libio-compress-base-perl (<< ${source:Upstream-Version}.~)
+Description: Perl module for creation and manipulation of gzip files
+ Compress::Zlib is a Perl external module which provides an interface to
+ the info-zip zlib compression library. zlib is a general purpose
+ compression library.
+ .
+ Some of the features provided by Compress::Zlib include:
+ .
+    * in-memory compression and decompression
+    * read and write gzip (.gz) files directly.
+ .
+ See also: libio-compress-zlib-perl
--- libcompress-zlib-perl-2.015.orig/debian/compat
+++ libcompress-zlib-perl-2.015/debian/compat
@@ -0,0 +1 @@
+6
--- libcompress-zlib-perl-2.015.orig/debian/changelog
+++ libcompress-zlib-perl-2.015/debian/changelog
@@ -0,0 +1,312 @@
+libcompress-zlib-perl (2.015-1~bpo50+1) lenny-backports; urgency=low
+
+  * Rebuild for lenny-backports.
+
+ -- Michael Koch <konqueror@gmx.de>  Tue, 28 Jul 2009 07:56:09 +0200
+
+libcompress-zlib-perl (2.015-1) unstable; urgency=low
+
+  * New upstream release
+  * Added myself as an uploader
+  * Adjust build-dependencies to match upstream versions
+  
+ -- Gunnar Wolf <gwolf@debian.org>  Thu, 11 Sep 2008 23:19:22 -0500
+
+libcompress-zlib-perl (2.012-1) unstable; urgency=low
+
+  * New upstream release
+  * bump build-dependencies to match
+  * Standards-Version: 3.8.0
+    + add README.source documenting quilt usage
+
+ -- Damyan Ivanov <dmn@debian.org>  Wed, 16 Jul 2008 23:29:56 +0300
+
+libcompress-zlib-perl (2.011-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/control:
+    - set build dependency on libio-compress-zlib-perl and
+      libio-compress-base-perl to (>= 2.011) and (<< 2.012)
+    - set dependency on libio-compress-zlib-perl and
+      libio-compress-base-perl to (>= ${source:Upstream-Version}) and
+      (<< ${source:Upstream-Version}.~)
+    in order to avoid version skews between the different
+    lib.*compress.*-perl packages.
+
+ -- gregor herrmann <gregoa@debian.org>  Tue, 20 May 2008 23:19:33 +0200
+
+libcompress-zlib-perl (2.010-1) unstable; urgency=low
+
+  * New upstream release.
+  * Add INST_LIB='blib/lib' to $(PERL) Makefile.PL in debian/rules,
+    otherwise the variable is set wrong.
+  * Refresh debian/rules, no other functional changes.
+  * debian/control:
+    - change my email address
+    - bump (build) dependencies on libio-compress-zlib-perl and
+      libio-compress-base-perl to 2.010.
+
+ -- gregor herrmann <gregoa@debian.org>  Thu, 08 May 2008 16:27:26 +0200
+
+libcompress-zlib-perl (2.009-1) unstable; urgency=low
+
+  * New upstream release.
+  * Updated years of upstream copyright.
+  * Updated dependencies on libio-compress-zlib-perl and
+    libio-compress-base-perl to version 2.009.
+
+ -- Roberto C. Sanchez <roberto@debian.org>  Mon, 21 Apr 2008 09:06:23 -0400
+
+libcompress-zlib-perl (2.008-2) unstable; urgency=low
+
+  [ gregor herrmann ]
+  * debian/rules:
+    - delete /usr/lib/perl5 only if it exists (closes: #467703)
+    - update without functional changes based on dh-make-perl's
+      templates
+  * debian/watch: use improved regexp for matching upstream releases.
+  * Set Standards-Version to 3.7.3 (no changes).
+
+  [ Gunnar Wolf ]
+  * Upgraded to debhelper 6 compat version
+
+ -- Gunnar Wolf <gwolf@debian.org>  Fri, 07 Mar 2008 16:55:10 -0600
+
+libcompress-zlib-perl (2.008-1) unstable; urgency=low
+
+  [ gregor herrmann ]
+  * New upstream release.
+  * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
+    field (source stanza); Homepage field (source stanza). Removed: XS-
+    Vcs-Svn fields.
+  * debian/watch: Use working URL.
+  * debian/control: bump (build-)dependencies of libio-compress-zlib-perl
+    and libio-compress-base-perl to (>= 2.008).
+  * debian/copyright: add upstream URL, update years of copyright, add
+    copyright/license informations for files in ./t/Test/.
+
+  [ Damyan Ivanov ]
+  * debian/rules:
+    + make stamp targets depend only on stamp targets
+    + Drop unused dh_installdirs
+    + Drop unused dh_shlibdeps (binary-indep)
+
+ -- Damyan Ivanov <dmn@debian.org>  Fri, 16 Nov 2007 07:44:35 +0200
+
+libcompress-zlib-perl (2.007-1) unstable; urgency=low
+
+  * New upstream release
+    Fixes compatibility issues with 1.x series
+    Closes: #440943 -- Documentation and/or API inconsistencies
+
+ -- Damyan Ivanov <dmn@debian.org>  Sun, 23 Sep 2007 09:21:47 +0300
+
+libcompress-zlib-perl (2.006-1) unstable; urgency=low
+
+  * New upstream release
+  * Drop 02_restore-gzreadline-record-separator-behaviour.patch (fix applied
+    upstream)
+  * Add (>= 2.006) to (build-)depends on libio-compress-(zlib|base)-perl
+
+ -- Damyan Ivanov <dmn@debian.org>  Mon, 10 Sep 2007 15:50:08 +0300
+
+libcompress-zlib-perl (2.005-3) unstable; urgency=low
+
+  * Fix the fix for #435656 to not mangle with the *global* $/, but set it to
+    "\n" locally, before calling $gz->getline
+
+ -- Damyan Ivanov <dmn@debian.org>  Sat, 04 Aug 2007 16:55:54 +0300
+
+libcompress-zlib-perl (2.005-2) unstable; urgency=low
+
+  * Added 02_restore-gzreadline-record-separator-behaviour.patch, which
+    hard-codes "\n" as record separator before calling $gz->getline for the
+    actual read. Closes: #435656
+  * This package is now pure Perl. Set Architecture: to "all" and adjust
+    debian/control and debian/rules accordingly.
+
+ -- Damyan Ivanov <dmn@debian.org>  Sat, 04 Aug 2007 08:13:39 +0300
+
+libcompress-zlib-perl (2.005-1) unstable; urgency=low
+
+  * New upstream release (Closes: #434639)
+  * Use quilt for patching
+    + Add quilt to Build-depends
+    + include /usr/share/quilt/quilt.make in debian/rules
+    + Add dependency to patch target to config-stamp
+    + Add dependency to unpatch target to clean
+    + Convert the existing changes to 01_use-debian-perl-in-examples.patch
+  * Replace libcompress-raw-zlib-perl with libio-compress-zlib-perl in
+    Build-Depends and Depends
+  * Added libtest-pod-perl to Build-Depends to enable POD tests
+  * Drop ANNOUNCE from dh_installdocs
+  * Added reference to libio-compress-zlib-perl to long description
+  * Added myself to Uploaders
+
+ -- Damyan Ivanov <dmn@debian.org>  Wed, 01 Aug 2007 08:52:03 +0300
+
+libcompress-zlib-perl (1.42-2) unstable; urgency=low
+
+  * New maintainer: Debian Perl Group.
+  * Set Standards-Version to 3.7.2 (no changes).
+  * Set debhelper compatibility level to 5.
+  * Change PWD to CURDIR in debian/rules to avoid problems with sudo.
+  * Remove empty /usr/share/perl5 directory.
+  * Install Changes as upstream changelog and README as - well - README
+    (closes: #335554).
+
+ -- gregor herrmann <gregor+debian@comodo.priv.at>  Sat, 25 Nov 2006 02:28:45 +0100
+
+libcompress-zlib-perl (1.42-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Matthias Klose <doko@debian.org>  Sat, 19 Aug 2006 20:51:49 +0000
+
+libcompress-zlib-perl (1.41-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Matthias Klose <doko@debian.org>  Sun, 23 Oct 2005 16:19:13 +0000
+
+libcompress-zlib-perl (1.39-2) unstable; urgency=low
+
+  * Upload to unstable.
+
+ -- Matthias Klose <doko@debian.org>  Thu, 22 Sep 2005 06:33:00 +0000
+
+libcompress-zlib-perl (1.39-1) unstable; urgency=low
+
+  * New upstream release
+    - fixes: new upstream release 1.38 available (Closes: #327842)
+    - updated copyright -> debian/copyright
+  * Standards-Version 3.6.2, no changes required
+
+ -- Matthias Klose <doko@debian.org>  Mon, 19 Sep 2005 23:22:36 +0200
+
+libcompress-zlib-perl (1.34-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Matthias Klose <doko@debian.org>  Sat,  5 Feb 2005 10:36:22 +0100
+
+libcompress-zlib-perl (1.33-3) unstable; urgency=low
+
+  * Rebuild in clean unstable chroot (closes: #272416).
+
+ -- Matthias Klose <doko@debian.org>  Sun, 19 Sep 2004 21:40:32 +0000
+
+libcompress-zlib-perl (1.33-2) unstable; urgency=low
+
+  * Add watch file.
+
+ -- Matthias Klose <doko@debian.org>  Sun, 19 Sep 2004 19:48:29 +0200
+
+libcompress-zlib-perl (1.33-1) unstable; urgency=low
+
+  * New maintainer.
+  * New upstream version (closes: #218068).
+    - fixes memGzip not working properly with perl 5.8 when it is given
+      UTF-8 data (closes: #227942).
+  * Don't include backup files in examples directory (closes: #205213).
+  * Add pointer in copyright to Artistic license (closes: #157553).
+
+ -- Matthias Klose <doko@debian.org>  Mon, 28 Jun 2004 18:12:30 +0200
+
+libcompress-zlib-perl (1.16-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Build against perl 5.8. Bumped perl build-dependency to 5.8.0-3.
+
+ -- Colin Watson <cjwatson@debian.org>  Mon, 26 Aug 2002 17:17:10 +0100
+
+libcompress-zlib-perl (1.16-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Michael Alan Dorman <mdorman@debian.org>  Sat, 15 Dec 2001 21:23:53 -0500
+
+libcompress-zlib-perl (1.15-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Michael Alan Dorman <mdorman@debian.org>  Sun,  9 Dec 2001 10:58:56 -0500
+
+libcompress-zlib-perl (1.14-1) unstable; urgency=low
+
+  * New upstream version (closes: bug#113408)
+
+ -- Michael Alan Dorman <mdorman@debian.org>  Tue, 25 Sep 2001 12:28:30 -0400
+
+libcompress-zlib-perl (1.13-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Michael Alan Dorman <mdorman@debian.org>  Sat, 18 Aug 2001 18:04:53 -0400
+
+libcompress-zlib-perl (1.12-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Michael Alan Dorman <mdorman@debian.org>  Tue,  8 May 2001 09:59:13 -0400
+
+libcompress-zlib-perl (1.11-2) unstable; urgency=low
+
+  * Fix build-depends.
+  * Minor edits to rules and such.
+
+ -- Michael Alan Dorman <mdorman@debian.org>  Sun, 15 Apr 2001 15:45:26 -0400
+
+libcompress-zlib-perl (1.11-1) unstable; urgency=low
+
+  * New upstream release (closes: bug#80656, bug#65274, bug#57288)
+
+ -- Michael Alan Dorman <mdorman@debian.org>  Sat, 24 Feb 2001 12:17:16 -0800
+
+libcompress-zlib-perl (1.08-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Michael Alan Dorman <mdorman@debian.org>  Mon, 10 Jan 2000 12:41:09 -0500
+
+libcompress-zlib-perl (1.06-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Michael Alan Dorman <mdorman@debian.org>  Tue, 21 Sep 1999 11:55:35 -0400
+
+libcompress-zlib-perl (1.05-3) unstable; urgency=low
+
+  * For some reason I do not understand, Zlib.so doesn't show up
+    as linked to libz.  I've included a patch from Manish Singh
+    <yosh@gimp.org> (closes: bug#41869)
+
+ -- Michael Alan Dorman <mdorman@debian.org>  Sun, 25 Jul 1999 16:56:12 -0400
+
+libcompress-zlib-perl (1.05-2) unstable; urgency=low
+
+  * Too stupid to get the binary-arch stuff in the right place (closes: bug#40921)
+
+ -- Michael Alan Dorman <mdorman@debian.org>  Sun, 11 Jul 1999 12:48:38 -0400
+
+libcompress-zlib-perl (1.05-1) unstable; urgency=low
+
+  * New upstream release.
+  * Modified for new perl packages.
+  * Modified to use debhelper.
+
+ -- Michael Alan Dorman <mdorman@debian.org>  Mon,  5 Jul 1999 18:28:40 +0000
+
+libcompress-zlib-perl (1.02-1) unstable; urgency=low closes=20609 21021 25187 26828
+
+  * New upstream release.
+  * Recompiled against new zlib (closes: bug#21021, bug#25187, bug#26828)
+  * Correctly install manpages (closes: bug#20609)
+
+ -- Michael Alan Dorman <mdorman@debian.org>  Mon,  4 Dec 2017 12:27:41 -0500
+
+libcompress-zlib-perl (1.01-1) unstable; urgency=low
+
+  * Initial Debianization.
+
+ -- Michael Alan Dorman <mdorman@debian.org>  Mon,  4 Dec 2017 12:27:41 -0500
--- libcompress-zlib-perl-2.015.orig/debian/watch
+++ libcompress-zlib-perl-2.015/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://search.cpan.org/dist/Compress-Zlib/ .*/Compress-Zlib-v?(\d[\d_.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)
--- libcompress-zlib-perl-2.015.orig/debian/copyright
+++ libcompress-zlib-perl-2.015/debian/copyright
@@ -0,0 +1,44 @@
+This is Debian GNU/Linux's prepackaged version of Compress::Zlib
+(renamed to be libcompress-zlib-perl), the Perl module for creation
+and manipulation of gzip files.
+
+Michael Alan Dorman <mdorman@debian.org> assembled this package.  The
+library is available from the Comprehensive Perl Archive Network
+(CPAN). Visit <URL:http://www.perl.com/CPAN/> to find a CPAN site near
+you.
+
+Upstream URL: http://search.cpan.org/dist/Compress-Zlib/
+
+The only change for the Debian package was the addition of the debian/
+files and the modification of the examples to reference /usr/bin/perl.
+
+The Compress::Zlib copyright is as follows:
+
+             Copyright (c) 1995-2008 Paul Marquess. All rights reserved.
+         This program is free software; you can redistribute it and/or
+                modify it under the same terms as Perl itself.
+
+On Debian GNU/Linux systems, the complete text of Perl's license, the
+Artistic License can be found in `/usr/share/common-licenses/Artistic'.
+
+
+The files in ./t/Test/ contain the following copyright/license notes:
+
+t/Test/Builder.pm:
+Copyright 2002, 2004 by chromatic <chromatic@wgz.org> and
+                        Michael G Schwern <schwern@pobox.com>.
+
+This program is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
+
+t/Test/Simple.pm:
+Copyright 2001, 2002, 2004 by Michael G Schwern <schwern@pobox.com>.
+
+This program is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
+
+t/Test/More.pm:
+Copyright 2001, 2002, 2004 by Michael G Schwern <schwern@pobox.com>.
+
+This program is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
--- libcompress-zlib-perl-2.015.orig/debian/patches/01_use-debian-perl-in-examples.patch
+++ libcompress-zlib-perl-2.015/debian/patches/01_use-debian-perl-in-examples.patch
@@ -0,0 +1,40 @@
+--- a/examples/gzcat
++++ b/examples/gzcat
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl
++#!/usr/bin/perl
+ 
+ use strict ;
+ use warnings ;
+--- a/examples/filtdef
++++ b/examples/filtdef
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl
++#!/usr/bin/perl
+ 
+ use strict ;
+ use warnings ;
+--- a/examples/filtinf
++++ b/examples/filtinf
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl
++#!/usr/bin/perl
+ 
+ use strict ;
+ use warnings ;
+--- a/examples/gzgrep
++++ b/examples/gzgrep
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl
++#!/usr/bin/perl
+ 
+ use strict ;
+ use warnings ;
+--- a/examples/gzstream
++++ b/examples/gzstream
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl
++#!/usr/bin/perl
+ 
+ use strict ;
+ use warnings ;
--- libcompress-zlib-perl-2.015.orig/debian/patches/series
+++ libcompress-zlib-perl-2.015/debian/patches/series
@@ -0,0 +1 @@
+01_use-debian-perl-in-examples.patch
