--- python-sqlite-1.0.1.orig/debian/changelog
+++ python-sqlite-1.0.1/debian/changelog
@@ -1,3 +1,84 @@
+python-sqlite (1.0.1-7) unstable; urgency=low
+
+ * Rebuild to add Python 2.5 support.
+ * Build python-sqlite-dbg package based on Ubuntu patch.
+
+ -- Joel Rosdahl <joel@debian.org> Thu, 21 Jun 2007 22:32:42 +0200
+
+python-sqlite (1.0.1-6) unstable; urgency=low
+
+ * Removed DH_COMPAT variable from debian/rules to fix Lintian warning.
+ * Added missing build dependency on python-central >= 0.5.
+ * Added debian/pycompat file.
+ * Bumped build dependencies on debhelper, python-all-dev and
+ python-central.
+
+ -- Joel Rosdahl <joel@debian.org> Sun, 22 Apr 2007 22:03:05 +0200
+
+python-sqlite (1.0.1-5) unstable; urgency=low
+
+ * Adapt to new Python policy. Closes: bug#373357.
+ * Updated Standards-Version to 3.7.2.
+
+ -- Joel Rosdahl <joel@debian.org> Mon, 19 Jun 2006 18:11:12 +0000
+
+python-sqlite (1.0.1-4) unstable; urgency=low
+
+ * Include license for port/strsep.c in debian/copyright.
+
+ -- Joel Rosdahl <joel@debian.org> Wed, 14 Sep 2005 09:24:29 +0200
+
+python-sqlite (1.0.1-3) unstable; urgency=low
+
+ * Drop support for Python 2.1 and 2.2.
+ * Clarify description and mention python-pysqlite1.1, python-pysqlite2
+ and python-apsw.
+ * Added README.Debian with information about different Python SQLite
+ modules.
+ * Updated Standards-Version to 3.6.2.
+ * Updated copyright file with new URL and better formatted license text.
+
+ -- Joel Rosdahl <joel@debian.org> Fri, 9 Sep 2005 17:56:37 +0200
+
+python-sqlite (1.0.1-2) unstable; urgency=low
+
+ * Build package for Python 2.4 too.
+ * Really include manual.txt in all packages this time.
+
+ -- Joel Rosdahl <joel@debian.org> Sun, 16 Jan 2005 22:08:35 +0100
+
+python-sqlite (1.0.1-1) unstable; urgency=low
+
+ * New upstream release.
+ * Include examples and manual.txt in all packages. Closes: bug#275533.
+ * Debhelper compatibility level 4.
+
+ -- Joel Rosdahl <joel@debian.org> Sun, 2 Jan 2005 17:08:47 +0100
+
+python-sqlite (1.0-2) unstable; urgency=low
+
+ * Include some examples. Closes: bug#275533.
+
+ -- Joel Rosdahl <joel@debian.org> Wed, 13 Oct 2004 20:25:14 +0200
+
+python-sqlite (1.0-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Joel Rosdahl <joel@debian.org> Tue, 5 Oct 2004 22:50:58 +0200
+
+python-sqlite (0.5.1-3) unstable; urgency=low
+
+ * Build-Depend on python. Closes: bug#265037.
+
+ -- Joel Rosdahl <joel@debian.org> Wed, 11 Aug 2004 16:05:20 +0200
+
+python-sqlite (0.5.1-2) unstable; urgency=low
+
+ * Generate prerm and postinstall scripts.
+
+ -- Joel Rosdahl <joel@debian.org> Sat, 7 Aug 2004 22:37:52 +0200
+
python-sqlite (0.5.1-1) unstable; urgency=low
* New upstream release (closes: bug#232620).
--- python-sqlite-1.0.1.orig/debian/control
+++ python-sqlite-1.0.1/debian/control
@@ -2,54 +2,37 @@
Section: python
Priority: optional
Maintainer: Joel Rosdahl <joel@debian.org>
-Build-Depends: debhelper (>> 3.0.0), libsqlite0-dev (>= 2.5.6), python2.1-dev, python2.2-dev, python2.3-dev
-Standards-Version: 3.6.1
+Build-Depends: debhelper (>= 5.0.38), libsqlite0-dev (>= 2.5.6), python-all-dev (>= 2.3.5-11), python-all-dbg, python-central (>= 0.5.6)
+XS-Python-Standards-Version: 0.4
+XS-Python-Version: all
+Standards-Version: 3.7.2
-Package: python2.1-sqlite
-Architecture: any
-Depends: ${shlibs:Depends}, python2.1
-Recommends: python-egenix-mxdatetime
-Description: Python interface to SQLite
- pysqlite is an interface to the SQLite database server for
- Python. It aims to be fully compliant with Python database
- API version 2.0 while also exploiting the unique features of
- SQLite.
- .
- This Debian package is built for Python 2.1.
-
-Package: python2.2-sqlite
+Package: python-sqlite
Architecture: any
-Depends: ${shlibs:Depends}, python2.2
-Recommends: python-egenix-mxdatetime
-Description: Python interface to SQLite
+Depends: ${shlibs:Depends}, ${python:Depends}
+Provides: ${python:Provides}
+Conflicts: python2.3-sqlite, python2.4-sqlite, python-pysqlite1.1, python2.3-pysqlite1.1, python2.4-pysqlite1.1
+Replaces: python2.3-sqlite, python2.4-sqlite
+Suggests: python-sqlite-dbg
+XB-Python-Version: ${python:Versions}
+Description: python interface to SQLite 2
pysqlite is an interface to the SQLite database server for
Python. It aims to be fully compliant with Python database
API version 2.0 while also exploiting the unique features of
SQLite.
.
- This Debian package is built for Python 2.2.
+ pysqlite 1.0.x is built against SQLite 2. For an interface to SQLite
+ 3, see the package python-pysqlite1.1, python-pysqlite2 or
+ python-apsw.
-Package: python2.3-sqlite
+Package: python-sqlite-dbg
Architecture: any
-Depends: ${shlibs:Depends}, python2.3
-Recommends: python-egenix-mxdatetime
-Description: Python interface to SQLite
- pysqlite is an interface to the SQLite database server for
- Python. It aims to be fully compliant with Python database
- API version 2.0 while also exploiting the unique features of
- SQLite.
- .
- This Debian package is built for Python 2.3.
-
-Package: python-sqlite
-Architecture: all
-Depends: python (>= 2.3), python (<< 2.4), python2.3-sqlite
-Conflicts:
-Description: Python interface to SQLite
+Depends: python-sqlite (= ${binary:Version}), python-dbg, ${shlibs:Depends}
+XB-Python-Version: ${python:Versions}
+Description: python interface to SQLite 2 (debug extension)
pysqlite is an interface to the SQLite database server for
Python. It aims to be fully compliant with Python database
API version 2.0 while also exploiting the unique features of
SQLite.
.
- This Debian package is an empty dummy package that always depends on
- a package built for Debian's default Python version.
+ This package contains the extensions built for the python debug interpreter.
--- python-sqlite-1.0.1.orig/debian/copyright
+++ python-sqlite-1.0.1/debian/copyright
@@ -2,20 +2,63 @@
The upstream source was found on the following address:
- http://pysqlite.sourceforge.net/downloads/
+ http://initd.org/pub/software/pysqlite/releases/1.0/1.0.1/
Upstream authors:
Michael Owens <mike@mikesclutter.com>
- Gerhard Häring <gh@ghaering.de>
+ Gerhard Häring <gh@ghaering.de>
License:
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted, provided that
-the above copyright notice appear in all copies and that both that copyright
-notice and this permission notice appear in supporting documentation.
-
-This program is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE.
+ License for all documentation and source code except port/strsep.c:
+
+ ==================================================================
+ Permission to use, copy, modify, and distribute this software and
+ its documentation for any purpose and without fee is hereby
+ granted, provided that the above copyright notice appear in all
+ copies and that both that copyright notice and this permission
+ notice appear in supporting documentation.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ ==================================================================
+
+ License for port/strsep.c:
+
+ ==================================================================
+ Copyright (c) 1990, 1993
+ The Regents of the University of California. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+ 3. All advertising materials mentioning features or use of this
+ software must display the following acknowledgement: This
+ product includes software developed by the University of
+ California, Berkeley and its contributors.
+ 4. Neither the name of the University nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS
+ IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ ==================================================================
--- python-sqlite-1.0.1.orig/debian/rules
+++ python-sqlite-1.0.1/debian/rules
@@ -1,70 +1,67 @@
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+#export DH_VERBOSE = 1
-# This is the debhelper compatibility version to use.
-export DH_COMPAT=3
+PYVERS = $(shell pyversions -r debian/control)
-PYTHON2.1 = /usr/bin/python2.1
-PYTHON2.2 = /usr/bin/python2.2
-PYTHON2.3 = /usr/bin/python2.3
+build: build-stamp
-configure: configure-stamp
-configure-stamp:
+build-stamp: $(PYVERS:%=build-ext-%-stamp) $(PYVERS:%=dbg-build-ext-%-stamp)
+ touch $@
+
+build-ext-%-stamp:
dh_testdir
- touch configure-stamp
+ $* setup.py build -g
+ touch $@
-build: configure-stamp build-stamp
-build-stamp:
+dbg-build-ext-%-stamp:
dh_testdir
- $(PYTHON2.1) setup.py build
- $(PYTHON2.2) setup.py build
- $(PYTHON2.3) setup.py build
- touch build-stamp
+ $*-dbg setup.py build -g
+ touch $@
clean:
dh_testdir
dh_testroot
- rm -f build-stamp configure-stamp
+ rm -f build*stamp dbg-build*stamp
rm -rf build
+ find . -name '*.pyc' | xargs rm -f
dh_clean
-install: build
+install: build install-prereq $(PYVERS:%=install-ext-%) $(PYVERS:%=dbg-install-ext-%)
+
+install-prereq:
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
- $(PYTHON2.1) setup.py install --root=debian/python2.1-sqlite
- $(PYTHON2.2) setup.py install --root=debian/python2.2-sqlite
- $(PYTHON2.3) setup.py install --root=debian/python2.3-sqlite
- find debian/python*-sqlite -name '*.pyc' | xargs rm -f
+install-ext-%:
+ $* setup.py install --root=debian/python-sqlite
+ find debian/python-sqlite -name '*.pyc' | xargs rm -f
+
+dbg-install-ext-%:
+ $*-dbg setup.py install --root=debian/python-sqlite-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 install
- dh_testdir -i
- dh_testroot -i
-
- dh_installdocs -i
- dh_installchangelogs -i
- dh_link -i
- dh_compress -i
- dh_fixperms -i
- dh_installdeb -i
- dh_gencontrol -i
- dh_md5sums -i
- dh_builddeb -i
+binary-indep:
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir -a
dh_testroot -a
- dh_installdocs -a
- dh_installexamples -a
+ dh_installdocs -A -a doc/rest/manual.txt
+ dh_installexamples -A -a examples/*
+ chmod -x debian/python-sqlite/usr/share/doc/python-sqlite/examples/*
+
+ dh_pycentral -a
dh_installchangelogs -a
- dh_strip -a
+ dh_strip -ppython-sqlite --dbg-package=python-sqlite-dbg
+ rm -rf debian/python-sqlite-dbg/usr/share/doc/python-sqlite-dbg
+ ln -s python-sqlite debian/python-sqlite-dbg/usr/share/doc/python-sqlite-dbg
dh_compress -a
dh_fixperms -a
dh_installdeb -a
@@ -74,4 +71,5 @@
dh_builddeb -a
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+
+.PHONY: build clean binary-indep binary-arch binary install install-prereq
--- python-sqlite-1.0.1.orig/debian/README.Debian
+++ python-sqlite-1.0.1/debian/README.Debian
@@ -0,0 +1,6 @@
+This package is built against SQLite version 2.
+
+If you want to use SQLite 3, check out the package python-pysqlite1.1,
+python-pysqlite2 or python-apsw.
+
+ -- Joel Rosdahl <joel@debian.org>, Fri Sep 9 17:42:20 2005
--- python-sqlite-1.0.1.orig/debian/compat
+++ python-sqlite-1.0.1/debian/compat
@@ -0,0 +1 @@
+5
--- python-sqlite-1.0.1.orig/debian/pycompat
+++ python-sqlite-1.0.1/debian/pycompat
@@ -0,0 +1 @@
+2