--- liburi-perl-1.37+dfsg.orig/debian/copyright
+++ liburi-perl-1.37+dfsg/debian/copyright
@@ -0,0 +1,18 @@
+This package was debianized by John Goerzen jgoerzen@complete.org on
+Sat, 23 Jan 1999 14:18:41 -0600.
+
+It was downloaded from CPAN; one CPAN site is
+http://www.perl.com/CPAN-local/.
+
+Upstream Author: Gisle Aas <gisle@ActiveState.com>
+
+Copyright:
+    1995-2004,2008 Gisle Aas.
+    1998 Graham Barr.
+    1995 Martijn Koster.
+
+This library is free software; you can redistribute it and/or
+modify it under the same terms as Perl itself.
+
+Debian GNU/Linux users can find the Perl license terms under
+/usr/share/common-licenses/Artistic and /usr/share/common-licenses/GPL.
--- liburi-perl-1.37+dfsg.orig/debian/rules
+++ liburi-perl-1.37+dfsg/debian/rules
@@ -0,0 +1,28 @@
+#!/usr/bin/make -f
+
+include /usr/share/quilt/quilt.make
+
+build: build-stamp
+build-stamp: $(QUILT_STAMPFN)
+	dh build
+	touch $@
+
+clean: unpatch
+	dh $@
+
+install: install-stamp
+install-stamp: build-stamp
+	dh install
+	touch $@
+
+binary-arch:
+
+binary-indep: install
+	dh $@
+
+binary: binary-arch binary-indep
+
+get-orig-source:
+	uscan --verbose --force-download
+
+.PHONY: binary binary-arch binary-indep install clean build
--- liburi-perl-1.37+dfsg.orig/debian/repack.sh
+++ liburi-perl-1.37+dfsg/debian/repack.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+# Repackage upstream source to exclude non-distributable files
+# should be called as "repack sh --upstream-source <ver> <downloaded file>
+# (for example, via uscan)
+
+set -e
+set -u
+
+VER="$2"
+FILE="$3"
+DVER="${VER}+dfsg"
+PKG=`dpkg-parsechangelog|grep ^Source:|sed 's/^Source: //'`
+
+printf "\nRepackaging $FILE\n"
+
+DIR=`mktemp -d ./tmpRepackXXXXXX`
+trap "rm -rf $DIR" QUIT INT EXIT
+
+tar xzf $FILE -C $DIR
+
+REPACK=`basename $FILE`
+
+UP_DIR=`ls -1 $DIR`
+
+(
+    set -e
+    set -u
+
+    cd $DIR
+
+    rm -v $UP_DIR/rfc2396.txt
+
+    sed -i '\,rfc2396.txt, D' $UP_DIR/MANIFEST
+
+    REPACK_DIR="$PKG-$VER.orig"
+    mv $UP_DIR $REPACK_DIR
+    tar -c $REPACK_DIR | gzip -9 > $REPACK
+)
+
+mv $DIR/$REPACK $FILE
+
+echo "*** $FILE repackaged"
+
+prename --verbose --force "s/$VER/$DVER/" $FILE
--- liburi-perl-1.37+dfsg.orig/debian/README.debian
+++ liburi-perl-1.37+dfsg/debian/README.debian
@@ -0,0 +1,16 @@
+liburi-perl for DEBIAN
+----------------------
+
+This package provides both the current and legacy URI interface for Perl. 
+At one time, it was part of libwww-perl, but it was split out of that
+package upstream.  Note that if you need liburi-perl, you probably need
+libwww-perl as well.
+
+John Goerzen <jgoerzen@complete.org>, Sat, 23 Jan 1999 14:18:41 -0600
+
+The sources have been repackaged without rfc2396.txt, because this is a
+non-free IETF document (see http://wiki.debian.org/NonFreeIETFDocuments)
+and it is unlikely to get additional rights grant from all the authors
+of this document. 
+
+Stefan Hornburg (Racke) <racke@linuxia.de>  Tue, 19 Jun 2007 13:41:01 +0200
--- liburi-perl-1.37+dfsg.orig/debian/changelog
+++ liburi-perl-1.37+dfsg/debian/changelog
@@ -0,0 +1,199 @@
+liburi-perl (1.37+dfsg-1~bpo50+1) lenny-backports; urgency=low
+
+  * Rebuild for lenny-backports.
+
+ -- Matt Taggart <taggart@debian.org>  Thu, 10 Sep 2009 13:54:15 -0700
+
+liburi-perl (1.37+dfsg-1) unstable; urgency=low
+
+  [ Kees Cook ]
+  * New upstream release (Closes: #507286)
+    + Closes: #386007 -- Undefined subroutine uri_escape_utf8
+    + Closes: #429540 -- URI::_query does not handle ; in URI correctly
+  * debian/control:
+    - Take over for the Debian Perl Group, with permission from Stefan
+      Hornburg.
+    - Clean up long description (Closes: #433968).
+    - Bump standards version to 3.8.0 (added Homepage, README.source).
+  * debian/{control,rules}:
+    - Add quilt for patch management.
+  * debian/{watch,repack.sh,rules}: handle repacking to remove rfc2396.txt
+    (non-redistributable):
+    - http://rt.cpan.org/Ticket/Display.html?id=41418
+  * debian/rules:
+    - Enable tests.
+    - Correctly handle missing Makefile in "clean" rule.
+  * debian/copyright: updated and clarified to match URI.pm and README.
+  * debian/control: Added: ${misc:Depends} to Depends: field.
+
+  [ Damyan Ivanov ]
+  * do not ship README containing information about installing the module
+  * rules: converted to debhelper 7; adjusted compat and control
+  * add libbusiness-isbn-perl to B-D-I, enabling additional test
+
+ -- Kees Cook <kees@outflux.net>  Wed, 03 Dec 2008 22:51:28 -0800
+
+liburi-perl (1.35.dfsg.1-1) unstable; urgency=low
+
+  *	source repackaged without non-free IETF RFC 2396 (Closes: #393393)
+  * fixed various Lintian issues (Closes: #401455, thanks
+    to Gunnar Wolf <gwolf@gwolf.org> for the report and the patch):
+    - removed example files from debian directory
+    - removed substvars file from the diff
+    - define compatibility level in debian/compat
+  
+ -- Stefan Hornburg (Racke) <racke@linuxia.de>  Tue, 19 Jun 2007 13:41:01 +0200
+
+liburi-perl (1.35-2) unstable; urgency=low
+
+  * added watch file supplied by Bart Martens <bart.martens@advalvas.be>
+    (Closes: #354253)
+  * changed section to perl
+  
+ -- Stefan Hornburg (Racke) <racke@linuxia.de>  Sun, 26 Feb 2006 14:20:22 +0100
+
+liburi-perl (1.35-1) unstable; urgency=low
+
+  * new upstream release (Closes: #303588, thanks to Chip Salzenberg
+    <chip@debian.org> for the report)
+  * changed Build-Depends into Build-Depends-Indep (Closes: #274195, thanks
+    to Stephen Quinney <stephen@jadevine.org.uk> for the report)
+  * point to license files under /usr/share/common-licenses
+  * removed some cruft from debian/rules
+  
+ -- Stefan Hornburg (Racke) <racke@linuxia.de>  Thu,  7 Apr 2005 21:30:51 +0200
+
+liburi-perl (1.30-1) unstable; urgency=low
+
+  * new upstream release (Closes: #228340)
+
+ -- Stefan Hornburg (Racke) <racke@linuxia.de>  Mon, 26 Jan 2004 16:16:15 +0100
+
+liburi-perl (1.23-1) unstable; urgency=low
+
+  * new upstream release
+  * corrected location of Perl copyright in debian/copyright
+  
+ -- Stefan Hornburg (Racke) <racke@linuxia.de>  Mon, 10 Feb 2003 13:49:17 +0100
+
+liburi-perl (1.18-1) unstable; urgency=low
+
+  * new upstream release (Closes: #128227)
+
+ -- Stefan Hornburg (Racke) <racke@linuxia.de>  Mon,  7 Jan 2002 21:21:40 -0500
+
+liburi-perl (1.17-1) unstable; urgency=low
+
+  * new upstream release
+  * applied patch provided by eperez@dei.inf.uc3m.es to send '-anonymous@'
+    as password on anonymous FTP logins (Closes: #123812)
+  
+ -- Stefan Hornburg (Racke) <racke@linuxia.de>  Thu, 13 Dec 2001 15:50:49 +0100
+
+liburi-perl (1.15-1) unstable; urgency=low
+
+  * new upstream release
+  * email address of upstream author added to copyright
+
+ -- Stefan Hornburg (Racke) <racke@linuxia.de>  Wed, 22 Aug 2001 13:17:59 +0200
+
+liburi-perl (1.12-4) unstable; urgency=low
+
+  * made Build-Depends compliant to Perl policy
+
+ -- Stefan Hornburg (Racke) <racke@linuxia.de>  Mon, 20 Aug 2001 21:47:54 +0200
+
+liburi-perl (1.12-3) unstable; urgency=low
+
+  * debhelper Build-Depends added (Closes: #108546)
+
+ -- Stefan Hornburg (Racke) <racke@linuxia.de>  Mon, 13 Aug 2001 09:03:28 +0200
+
+liburi-perl (1.12-2) unstable; urgency=low
+
+  * Updated standards version (Closes: #87171)
+  * Violation of Perl policy fixed (Closes: #104750)
+
+ -- Stefan Hornburg (Racke) <racke@linuxia.de>  Tue, 17 Jul 2001 23:03:44 +0200
+
+liburi-perl (1.12-1) unstable; urgency=low
+
+  * New upstream release (Closes: #99387)
+  * New maintainer (Closes: #100703)
+
+ -- Stefan Hornburg (Racke) <racke@linuxia.de>  Wed, 13 Jun 2001 21:10:38 +0200
+
+liburi-perl (1.10-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- John Goerzen <jgoerzen@complete.org>  Mon, 15 Jan 2001 14:08:35 -0500
+
+liburi-perl (1.09-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- John Goerzen <jgoerzen@complete.org>  Mon,  4 Sep 2000 15:38:09 -0500
+
+liburi-perl (1.07-1) unstable; urgency=low
+
+  * New upstream release.  Closes: #67014.
+
+ -- John Goerzen <jgoerzen@complete.org>  Mon, 10 Jul 2000 23:33:36 -0500
+
+liburi-perl (1.04-2) frozen unstable; urgency=low
+
+  * Fixes /usr/doc.  Closes: #58163.
+  * Fixes duplicate manpages.  Closes: #58222, #59957.
+
+ -- John Goerzen <jgoerzen@complete.org>  Wed, 22 Mar 2000 13:11:42 -0600
+
+liburi-perl (1.04-1) frozen unstable; urgency=low
+
+  * New upstream release
+  * Fixes a bug with abs and http.  Closes: #57747.
+
+ -- John Goerzen <jgoerzen@complete.org>  Sun, 13 Feb 2000 18:53:03 -0600
+
+liburi-perl (1.03-2) unstable; urgency=low
+
+  * Changed several chinges.  Closes: #40854.
+
+ -- John Goerzen <jgoerzen@complete.org>  Wed, 14 Jul 1999 11:43:00 -0500
+
+liburi-perl (1.03-1) unstable; urgency=low
+
+  * New upstream release.  Closes: #34886
+
+ -- John Goerzen <jgoerzen@complete.org>  Sun,  4 Jul 1999 21:53:55 -0500
+
+liburi-perl (1.01-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- John Goerzen <jgoerzen@complete.org>  Mon, 22 Mar 1999 09:27:28 -0600
+
+liburi-perl (1.00-3) unstable; urgency=low
+
+  * Delete Changes file from usr/doc (already present in changelog.gz)
+  * Delete usr/bin and usr/sbin from dirs
+  * Add code to remove cruft from the Perl installer routine.  This
+    and the above two changes fix #32524.
+  * Update copyright file.
+  * Update README.Debian file.
+
+ -- John Goerzen <jgoerzen@complete.org>  Thu, 28 Jan 1999 09:44:00 -0600
+
+liburi-perl (1.00-2) unstable; urgency=low
+
+  * Added Conflicts and Suggests lines.
+
+ -- John Goerzen <jgoerzen@complete.org>  Sat, 23 Jan 1999 16:27:03 -0600
+
+liburi-perl (1.00-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- John Goerzen <jgoerzen@complete.org>  Sat, 23 Jan 1999 14:18:41 -0600
+
+
--- liburi-perl-1.37+dfsg.orig/debian/watch
+++ liburi-perl-1.37+dfsg/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts=dversionmangle=s/\+dfsg// \
+    http://search.cpan.org/dist/URI/ .*/URI-v?(\d[\d_.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ \
+    debian sh debian/repack.sh
--- liburi-perl-1.37+dfsg.orig/debian/control
+++ liburi-perl-1.37+dfsg/debian/control
@@ -0,0 +1,31 @@
+Source: liburi-perl
+Section: perl
+Priority: optional
+Build-Depends: debhelper (>= 7), quilt
+Build-Depends-Indep: perl (>= 5.6.0-16), libbusiness-isbn-perl
+Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
+Uploaders: Stefan Hornburg (Racke) <racke@linuxia.de>,
+ Kees Cook <kees@outflux.net>, Rene Mayorga <rmayorga@debian.org.sv>
+Standards-Version: 3.8.0
+Homepage: http://search.cpan.org/dist/URI/
+Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/liburi-perl/
+Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/liburi-perl/
+
+Package: liburi-perl
+Architecture: all
+Depends: ${misc:Depends}, ${perl:Depends}, libmime-base64-perl, libnet-perl, data-dumper
+Suggests: libwww-perl (>=5.41)
+Conflicts: libwww-perl (<<5.41)
+Description: Manipulates and accesses URI strings
+ This package contains the URI.pm module with friends.  The module
+ implements the URI class.  Objects of this class represent Uniform
+ Resource Identifier (URI) references as specified in RFC 2396.
+ .
+ URI objects can be used to access and manipulate the various
+ components that make up these strings.  There are also methods to
+ combine URIs in various ways.
+ .
+ The URI class replace the URI::URL class that used to be distributed
+ with libwww-perl.  This package contains an emulation of the old
+ URI::URL interface.  The emulated URI::URL implement both the old and
+ the new interface.
--- liburi-perl-1.37+dfsg.orig/debian/compat
+++ liburi-perl-1.37+dfsg/debian/compat
@@ -0,0 +1 @@
+7
--- liburi-perl-1.37+dfsg.orig/debian/dirs
+++ liburi-perl-1.37+dfsg/debian/dirs
@@ -0,0 +1 @@
+usr/share/doc/liburi-perl
--- liburi-perl-1.37+dfsg.orig/debian/README.source
+++ liburi-perl-1.37+dfsg/debian/README.source
@@ -0,0 +1,12 @@
+This package uses quilt to manage all modifications to the upstream
+source.  Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+See /usr/share/doc/quilt/README.source for a detailed explanation.
+
+~~~~~
+
+The original tarball is repackaged, in order to remove the shipped RFC
+text file and the references to in in MANIFEST. To ease the creation of a
+new tarball debian/repack.sh can be used, which is also called by
+debian/rules' get-orig-source target.
