--- python-apsw-3.3.13-r1.orig/apsw.html
+++ python-apsw-3.3.13-r1/apsw.html
@@ -2614,8 +2614,8 @@
can also use the bare Python string class, and ASPW will automatically
call the unicode converter if any non-ascii characters are present.
- When reading values from SQLite, ASPW uses the Python string class for
- any pure ASCII text, else it uses the Python unicode class.
+ All strings that APSW reads from SQLite are returned as
+ Unicode strings, even if they only contain ASCII characters.
--- python-apsw-3.3.13-r1.orig/debian/changelog
+++ python-apsw-3.3.13-r1/debian/changelog
@@ -0,0 +1,82 @@
+python-apsw (3.3.13-r1-3) unstable; urgency=low
+
+ * Build python-apsw-dbg package.
+
+ -- Joel Rosdahl Thu, 21 Jun 2007 23:18:31 +0200
+
+python-apsw (3.3.13-r1-2) unstable; urgency=low
+
+ * Corrected documentation about Unicode strings in apsw.html.
+ * Created NEWS.Debian with information about notable changes since
+ python-apsw 3.3.5r1.
+
+ -- Joel Rosdahl Sun, 03 Jun 2007 23:09:49 +0200
+
+python-apsw (3.3.13-r1-1) unstable; urgency=low
+
+ * New upstream release.
+ * Updated build dependencies on debhelper, python-all-dev,
+ python-central and libsqlite3-dev.
+ * Removed use of dh_python.
+ * Added debian/pycompat.
+ * Removed XS-Python-Standards-Version field.
+
+ -- Joel Rosdahl Thu, 12 Apr 2007 07:07:54 +0200
+
+python-apsw (3.3.5r1-2) unstable; urgency=low
+
+ * Adapt to new Python policy. Closes: bug#373511.
+ * Updated Standards-Version to 3.7.2.
+
+ -- Joel Rosdahl Mon, 19 Jun 2006 18:43:11 +0000
+
+python-apsw (3.3.5r1-1) unstable; urgency=low
+
+ * New upstream release. Closes: bug#365222.
+ * APSW now has more error checking. Closes: bug#329236.
+
+ -- Joel Rosdahl Tue, 2 May 2006 22:53:03 +0200
+
+python-apsw (3.2.7r1-1) unstable; urgency=low
+
+ * New upstream release.
+ * Closes: bug#329233 ("segfault on too few argument bindings").
+
+ -- Joel Rosdahl Sun, 9 Oct 2005 21:31:13 +0200
+
+python-apsw (3.2.2r1-3) unstable; urgency=low
+
+ * Clarified description.
+
+ -- Joel Rosdahl Fri, 9 Sep 2005 18:16:51 +0200
+
+python-apsw (3.2.2r1-2) unstable; urgency=low
+
+ * Added doc-base information.
+
+ -- Joel Rosdahl Fri, 2 Sep 2005 17:59:56 +0200
+
+python-apsw (3.2.2r1-1) unstable; urgency=low
+
+ * New upstream release.
+ * Standards-Version 3.6.2.
+
+ -- Joel Rosdahl Sun, 21 Aug 2005 19:12:14 +0200
+
+python-apsw (3.2.1r1-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Joel Rosdahl Sun, 5 Jun 2005 11:50:41 +0200
+
+python-apsw (3.1.3r1-2) unstable; urgency=low
+
+ * Corrected description of the python-apsw binary package.
+
+ -- Joel Rosdahl Tue, 5 Apr 2005 16:50:49 +0200
+
+python-apsw (3.1.3r1-1) unstable; urgency=low
+
+ * First version of the package. Closes: bug#296652.
+
+ -- Joel Rosdahl Thu, 10 Mar 2005 22:06:25 +0100
--- python-apsw-3.3.13-r1.orig/debian/control
+++ python-apsw-3.3.13-r1/debian/control
@@ -0,0 +1,35 @@
+Source: python-apsw
+Section: python
+Priority: optional
+Maintainer: Joel Rosdahl
+Build-Depends: debhelper (>= 5.0.38), python-all-dev (>= 2.3.5-11), python-all-dbg, python-central (>= 0.5.6), libsqlite3-dev (>= 3.3.13)
+XS-Python-Version: all
+Standards-Version: 3.7.2
+
+Package: python-apsw
+Architecture: any
+Depends: ${shlibs:Depends}, ${python:Depends}
+Provides: ${python:Provides}
+Conflicts: python2.3-apsw, python2.4-apsw
+Replaces: python2.3-apsw, python2.4-apsw
+XB-Python-Version: ${python:Versions}
+Description: another Python SQLite 3 wrapper
+ APSW (Another Python SQLite Wrapper) is an SQLite 3 wrapper that
+ provides the thinnest layer over SQLite 3 possible. Everything you
+ can do from the C API to SQLite 3, you can do from Python. Although
+ APSW's API looks vaguely similar to Python's DB-API, it is not
+ compliant with that API and instead works the way SQLite 3 does.
+
+Package: python-apsw-dbg
+Priority: extra
+Architecture: any
+Depends: python-apsw (= ${binary:Version}), python-dbg, ${shlibs:Depends}
+XB-Python-Version: ${python:Versions}
+Description: another Python SQLite 3 wrapper (debug extension)
+ APSW (Another Python SQLite Wrapper) is an SQLite 3 wrapper that
+ provides the thinnest layer over SQLite 3 possible. Everything you
+ can do from the C API to SQLite 3, you can do from Python. Although
+ APSW's API looks vaguely similar to Python's DB-API, it is not
+ compliant with that API and instead works the way SQLite 3 does.
+ .
+ This package contains the extension built for the Python debug interpreter.
--- python-apsw-3.3.13-r1.orig/debian/copyright
+++ python-apsw-3.3.13-r1/debian/copyright
@@ -0,0 +1,32 @@
+This Debian package was created by Joel Rosdahl .
+
+The upstream source was found on the following address:
+
+ http://www.rogerbinns.com/apsw.html
+
+Upstream authors:
+
+ Roger Binns
+
+License:
+
+ Copyright (C) 2004 Roger Binns rogerb@rogerbinns.com
+
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the authors be held liable for any
+ damages arising from the use of this software.
+
+ Permission is granted to anyone to use this software for any
+ purpose, including commercial applications, and to alter it and
+ redistribute it freely, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you
+ must not claim that you wrote the original software. If you use
+ this software in a product, an acknowledgment in the product
+ documentation would be appreciated but is not required.
+
+ 2. Altered source versions must be plainly marked as such, and
+ must not be misrepresented as being the original software.
+
+ 3. This notice may not be removed or altered from any source
+ distribution.
--- python-apsw-3.3.13-r1.orig/debian/rules
+++ python-apsw-3.3.13-r1/debian/rules
@@ -0,0 +1,74 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+PYVERS = $(shell pyversions -r debian/control)
+
+build: build-stamp
+
+build-stamp: $(PYVERS:%=build-ext-%-stamp) $(PYVERS:%=dbg-build-ext-%-stamp)
+ touch $@
+
+build-ext-%-stamp:
+ dh_testdir
+ $* setup.py build -g
+ touch $@
+
+dbg-build-ext-%-stamp:
+ dh_testdir
+ $*-dbg setup.py build -g
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build*stamp dbg-build*stamp
+ rm -rf build
+ find . -name '*.pyc' | xargs rm -f
+ dh_clean
+
+install: build install-prereq $(PYVERS:%=install-ext-%) $(PYVERS:%=dbg-install-ext-%)
+
+install-prereq:
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+install-ext-%:
+ $* setup.py install --root=debian/python-apsw
+ find debian/python-apsw -name '*.pyc' | xargs rm -f
+
+dbg-install-ext-%:
+ $*-dbg setup.py install --root=debian/python-apsw-dbg
+ find debian/python-*-dbg ! -type d ! -name '*.so' | xargs rm -f
+ find debian/python-*-dbg -depth -empty -exec rmdir {} \;
+
+# Build architecture-independent files here.
+binary-indep:
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir -a
+ dh_testroot -a
+ dh_installdocs -A -a apsw.html debian/NEWS.Debian
+
+# dh_installexamples -A -a
+
+ dh_pycentral -a
+ dh_installchangelogs -a
+ dh_strip -ppython-apsw --dbg-package=python-apsw-dbg
+ rm -rf debian/python-apsw-dbg/usr/share/doc/python-apsw-dbg
+ ln -s python-apsw debian/python-apsw-dbg/usr/share/doc/python-apsw-dbg
+ dh_compress -a
+ dh_fixperms -a
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary-indep binary-arch binary install configure
--- python-apsw-3.3.13-r1.orig/debian/python2.5-apsw.doc-base
+++ python-apsw-3.3.13-r1/debian/python2.5-apsw.doc-base
@@ -0,0 +1,9 @@
+Document: python2.5-apsw
+Title: APSW (Another Python SQLite Wrapper) Manual
+Author: Roger Binns
+Abstract: Manual for APSW (Another Python SQLite Wrapper)
+Section: Apps/Programming
+
+Format: HTML
+Index: /usr/share/doc/python2.5-apsw/apsw.html
+Files: /usr/share/doc/python2.5-apsw/apsw.html
--- python-apsw-3.3.13-r1.orig/debian/python2.4-apsw.doc-base
+++ python-apsw-3.3.13-r1/debian/python2.4-apsw.doc-base
@@ -0,0 +1,9 @@
+Document: python2.4-apsw
+Title: APSW (Another Python SQLite Wrapper) Manual
+Author: Roger Binns
+Abstract: Manual for APSW (Another Python SQLite Wrapper)
+Section: Apps/Programming
+
+Format: HTML
+Index: /usr/share/doc/python2.4-apsw/apsw.html
+Files: /usr/share/doc/python2.4-apsw/apsw.html
--- python-apsw-3.3.13-r1.orig/debian/compat
+++ python-apsw-3.3.13-r1/debian/compat
@@ -0,0 +1 @@
+5
--- python-apsw-3.3.13-r1.orig/debian/NEWS.Debian
+++ python-apsw-3.3.13-r1/debian/NEWS.Debian
@@ -0,0 +1,15 @@
+python-apsw (3.3.13-r1-2) unstable; urgency=low
+
+ * Notable changes since python-apsw 3.3.5r1:
+
+ You must now explicitly call close() on Connection objects. If you do
+ not call close then a detailed error message will be printed when
+ Connection's destructor runs and cleanup will not happen of that
+ connection.
+
+ All strings returned by APSW are now in Unicode. Previously strings
+ that consisted only of ASCII characters were returned as the string
+ type and other strings were returned as the unicode type.
+
+ -- Joel Rosdahl Sun, 03 Jun 2007 23:14:07 +0200
+
--- python-apsw-3.3.13-r1.orig/debian/pycompat
+++ python-apsw-3.3.13-r1/debian/pycompat
@@ -0,0 +1 @@
+2