--- libsearch-xapian-perl-1.0.7.0.orig/debian/rules
+++ libsearch-xapian-perl-1.0.7.0/debian/rules
@@ -0,0 +1,66 @@
+#!/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.
+
+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)
+	TEST_POD=1 $(MAKE) test
+
+	touch $@
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	dh_clean build-stamp install-stamp
+	if [ -f Makefile ]; then $(MAKE) distclean; fi
+	rm -fr testdb testdb-exception
+
+install: install-stamp
+install-stamp: build-stamp
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	[ ! -d $(TMP)/usr/share/perl5 ] || rmdir --verbose --parents --ignore-fail-on-non-empty $(TMP)/usr/share/perl5
+
+	touch $@
+
+binary-indep:
+# We have nothing to do by default.
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installexamples examples/simplesearch.pl
+	dh_perl
+	dh_installchangelogs Changes
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- libsearch-xapian-perl-1.0.7.0.orig/debian/watch
+++ libsearch-xapian-perl-1.0.7.0/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://search.cpan.org/dist/Search-Xapian/ .*/Search-Xapian-v?(\d[\d_.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)
--- libsearch-xapian-perl-1.0.7.0.orig/debian/changelog
+++ libsearch-xapian-perl-1.0.7.0/debian/changelog
@@ -0,0 +1,94 @@
+libsearch-xapian-perl (1.0.7.0-1~bpo40+1) etch-backports; urgency=low
+
+  * Rebuild for etch-backports.
+
+ -- Frank Lichtenheld <djpig@debian.org>  Sat, 29 Nov 2008 11:38:54 +0100
+
+libsearch-xapian-perl (1.0.7.0-1) unstable; urgency=low
+
+  [ gregor herrmann ]
+  * New upstream release (closes: #486138).
+  * debian/copyright: change upstream source location.
+  * debian/control:
+    - add /me to Uploaders
+    - make build dependency on quilt versioned
+  * debian/rules: remove obsolete source and diff targets, add install
+    target to .PHONY.
+
+  [ Frank Lichtenheld ]
+  * debian/control:
+    - Bump Standards-Version to 3.8.0
+  * debian/README.source:
+    - Add to satisfy policy.
+
+ -- Frank Lichtenheld <djpig@debian.org>  Tue, 29 Jul 2008 18:53:38 +0200
+
+libsearch-xapian-perl (1.0.5.0-1) unstable; urgency=low
+
+  [ gregor herrmann ]
+  * New upstream release.
+  * Set Standards-Version to 3.7.3 (no changes needed).
+  * debian/watch: use dist-based URL.
+  * debian/rules: only remove /usr/share/perl5 if it exists.
+
+  [ Damyan Ivanov ]
+  * be verbose when removing usr/share/perl5
+  * update years of copyright
+  * strip Uploaders
+
+ -- Damyan Ivanov <dmn@debian.org>  Mon, 07 Jan 2008 22:31:55 +0200
+
+libsearch-xapian-perl (1.0.4.0-1) unstable; urgency=low
+
+  [ gregor herrmann ]
+  * New upstream release.
+  * Move homepage to real field in debian/control.
+  * Versioned build-dependency of libxapian-dev adjusted to ">= 1.0.4".
+  * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
+    field (source stanza). Removed: XS-Vcs-Svn fields.
+
+  [ Frank Lichtenheld ]
+  * Move tests from install to build target.
+
+  [ Damyan Ivanov ]
+  * Add libtest-pod-coverage-perl to B-D-I, but do not enable the test yet, as
+    most of them fail :/
+  * Update copyright years and download URL
+  * Add patch siggested by upstream for avoiding failing in t/threads.t
+    See http://thread.gmane.org/gmane.comp.search.xapian.general/5425
+  * Migrate the change to t/03podcoverage.t to a separate patch
+  * Add quilt to Build-Depends and debian/rules
+  * Add myself to Uploaders
+  * Move stamp-removal before distclean
+  * Remove unused dh_link call
+
+ -- Damyan Ivanov <dmn@debian.org>  Wed, 14 Nov 2007 16:38:17 +0200
+
+libsearch-xapian-perl (1.0.2.0-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Frank Lichtenheld <djpig@debian.org>  Fri, 06 Jul 2007 00:50:01 +0200
+
+libsearch-xapian-perl (1.0.0.0-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: added me to Uploaders
+
+ -- Krzysztof Krzyzaniak (eloy) <eloy@debian.org>  Wed, 30 May 2007 11:09:45 +0200
+
+libsearch-xapian-perl (0.9.10.0-1) unstable; urgency=low
+
+  * New upstream release.
+  * Remove empty /usr/share/perl5 directory from binary package.
+
+ -- gregor herrmann <gregor+debian@comodo.priv.at>  Fri, 13 Apr 2007 20:42:05 +0200
+
+libsearch-xapian-perl (0.9.9.0-1) unstable; urgency=low
+
+  * Initial release. (Closes: #402074)
+  * t/03podcoverage.t: Use TEST_POD_COVERAGE instead of
+    TEST_POD to be able to run t/02pod.t which is useful and
+    not t/03podcoverage.t which will currently always fail.
+
+ -- Frank Lichtenheld <djpig@debian.org>  Fri,  8 Dec 2006 01:19:45 +0100
--- libsearch-xapian-perl-1.0.7.0.orig/debian/control
+++ libsearch-xapian-perl-1.0.7.0/debian/control
@@ -0,0 +1,29 @@
+Source: libsearch-xapian-perl
+Section: perl
+Priority: optional
+Build-Depends: debhelper (>= 5), perl (>= 5.8.0-7), libtest-pod-perl,
+ libtest-pod-coverage-perl, libxapian-dev (>= 1.0.7), quilt (>= 0.40)
+Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
+Uploaders: Frank Lichtenheld <djpig@debian.org>,
+ Krzysztof Krzyzaniak (eloy) <eloy@debian.org>,
+ Damyan Ivanov <dmn@debian.org>,
+ gregor herrmann <gregor+debian@comodo.priv.at>
+Standards-Version: 3.8.0
+Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libsearch-xapian-perl/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libsearch-xapian-perl/
+Homepage: http://www.xapian.org/
+
+Package: libsearch-xapian-perl
+Architecture: any
+Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Suggests: xapian-doc
+Description: Perl bindings for the Xapian C++ search library
+ This package provides Perl bindings for Xapian.
+ .
+ The Xapian search engine library is a highly adaptable toolkit to allow
+ developers to easily add advanced indexing and search facilities to their own
+ applications.  It implements the probabilistic model of information retrieval,
+ and provides facilities for performing ranked free-text searches, relevance
+ feedback, phrase searching, boolean searching, stemming, and simultaneous
+ update and searching.  It is highly scalable, and is capable of working with
+ collections containing hundreds of millions of documents.
--- libsearch-xapian-perl-1.0.7.0.orig/debian/README.source
+++ libsearch-xapian-perl-1.0.7.0/debian/README.source
@@ -0,0 +1,5 @@
+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 more information.
--- libsearch-xapian-perl-1.0.7.0.orig/debian/patches/series
+++ libsearch-xapian-perl-1.0.7.0/debian/patches/series
@@ -0,0 +1,2 @@
+test_pod_coverage_with_separate_env_var.patch
+stop_failing_tests_on_values_begin.patch
--- libsearch-xapian-perl-1.0.7.0.orig/debian/patches/stop_failing_tests_on_values_begin.patch
+++ libsearch-xapian-perl-1.0.7.0/debian/patches/stop_failing_tests_on_values_begin.patch
@@ -0,0 +1,12 @@
+# Avoid test failures die to long-time crappy values_begin
+# See http://thread.gmane.org/gmane.comp.search.xapian.general/5425
+--- a/t/thread.t
++++ b/t/thread.t
+@@ -134,6 +134,7 @@ is( ref($posit), 'Search::Xapian::Positi
+ ok( $termit = $db->termlist_begin(1), 'create TermIterator' );
+ is( ref($termit), 'Search::Xapian::TermIterator', 'check TermIterator' );
+ 
++$doc->values_count();
+ ok( $valueit = $doc->values_begin(), 'create ValueIterator' );
+ is( $valueit->get_valueno(), 0, 'check ValueIterator' );
+ 
--- libsearch-xapian-perl-1.0.7.0.orig/debian/patches/test_pod_coverage_with_separate_env_var.patch
+++ libsearch-xapian-perl-1.0.7.0/debian/patches/test_pod_coverage_with_separate_env_var.patch
@@ -0,0 +1,10 @@
+--- a/t/03podcoverage.t
++++ b/t/03podcoverage.t
+@@ -2,6 +2,6 @@ use Test::More;
+ 
+ eval "use Test::Pod::Coverage 1.04";
+ plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@;
+-plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
++plan skip_all => 'set TEST_POD_COVERAGE to enable this test' unless $ENV{TEST_POD_COVERAGE};
+ 
+ all_pod_coverage_ok({also_private => [qr/[^\d][0123]$/]});
--- libsearch-xapian-perl-1.0.7.0.orig/debian/copyright
+++ libsearch-xapian-perl-1.0.7.0/debian/copyright
@@ -0,0 +1,22 @@
+This package was debianized by Frank Lichtenheld <djpig@debian.org>
+on Fri, 08 Dec 2006 01:12:48 +0100.
+
+The current maintainer is the Debian Perl Group
+<pkg-perl-maintainers@lists.alioth.debian.org>.
+
+The package was downloaded from http://search.cpan.org/dist/Search-Xapian/
+
+Upstream contact is xapian-discuss@lists.xapian.org
+
+Copyright:
+
+   Copyright (c) 2002,2003 Alex Bowley. All rights reserved.
+   Copyright (c) 2003,2004,2005,2006,2007,2008 Olly Betts. All rights reserved.
+
+   This library is free software; you can redistribute it and/or modify
+   it under the same terms as Perl itself.
+
+See /usr/share/common-licenses/GPL and
+/usr/share/common-licenses/Artistic for the basic licenses Perl is
+based on, and /usr/share/doc/perl/copyright for the license for
+Perl itself.
--- libsearch-xapian-perl-1.0.7.0.orig/debian/compat
+++ libsearch-xapian-perl-1.0.7.0/debian/compat
@@ -0,0 +1 @@
+5
