summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-11-17 17:25:01 -0500
committerMicah Anderson <micah@riseup.net>2013-11-17 17:25:01 -0500
commit79d16d72cd530acbee682ebee44d5b1d2010c661 (patch)
treed04b84f51e5023cc7382ec91674e2967ffb533c7 /debian
initial import of debian package to build with autobuilderupstream
Diffstat (limited to 'debian')
-rw-r--r--debian/README.Debian7
-rw-r--r--debian/changelog83
-rw-r--r--debian/compat1
-rw-r--r--debian/control42
-rw-r--r--debian/copyright64
-rw-r--r--debian/patches/dont-search-for-libraries-in-usr-lib.patch16
-rw-r--r--debian/patches/fix-space-before-keywords.patch16
-rw-r--r--debian/patches/fix-spelling.patch25
-rw-r--r--debian/patches/series3
-rw-r--r--debian/python-pysqlite1.1-dbg.lintian-overrides1
-rw-r--r--debian/python-pysqlite1.1.lintian-overrides1
-rwxr-xr-xdebian/rules19
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch2
14 files changed, 281 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..e298b9f
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,7 @@
+This package is built against SQLite version 3 but uses the same API
+as pysqlite 1.0.x (for SQLite 2, packaged as python-sqlite).
+
+Newer interfaces to SQLite 3 can be found in the package
+python-pysqlite2 and python-apsw.
+
+ -- Joel Rosdahl <joel@debian.org>, Fri Sep 9 17:50:47 2005
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..bf1cbcf
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,83 @@
+python-pysqlite1.1 (1.1.8a-7) unstable; urgency=low
+
+ * Don't use defunct googlecode.debian.net redirector anymore
+ * Don't explicitly search for libraries in /usr/lib (closes: #723508)
+ * Bump Standards-Version to 3.9.4
+ * Use build hardening flags
+ * Use debhelper sequencer
+
+ -- Joel Rosdahl <joel@debian.org> Sun, 22 Sep 2013 20:59:55 +0200
+
+python-pysqlite1.1 (1.1.8a-6) unstable; urgency=low
+
+ * Ignore space before non-modifying commands for auto-transactions
+
+ -- Joel Rosdahl <joel@debian.org> Mon, 19 Dec 2011 21:58:39 +0100
+
+python-pysqlite1.1 (1.1.8a-5) unstable; urgency=low
+
+ * Change priority to extra (closes: bug#641322)
+ * Let python-pysqlite1.1-dbg conflict with python-sqlite-dbg (closes:
+ bug#641323)
+
+ -- Joel Rosdahl <joel@debian.org> Sun, 18 Dec 2011 19:38:37 +0100
+
+python-pysqlite1.1 (1.1.8a-4) unstable; urgency=low
+
+ * Convert from dh_pycentral to dh_python2 (closes: #617023)
+ * Use debhelper compat level 8
+ * Bump Standards-Version to 3.9.2
+ * Pass --install-layout=deb to "setup.py install"
+ * Use source format 3.0 (quilt)
+ * Add build-arch and build-indep targets to debian/rules
+ * Add watch file
+ * Correct upstream source URL
+ * Use "Section: debug" and "Priority: extra" for the debug package
+ * Some spelling fixes in the sqlite module
+
+ -- Joel Rosdahl <joel@debian.org> Wed, 29 Jun 2011 22:31:59 +0200
+
+python-pysqlite1.1 (1.1.8a-3) unstable; urgency=low
+
+ * Rebuild to add Python 2.5 support.
+ * Build python-pysqlite1.1-dbg package.
+
+ -- Joel Rosdahl <joel@debian.org> Thu, 21 Jun 2007 22:41:27 +0200
+
+python-pysqlite1.1 (1.1.8a-2) unstable; urgency=low
+
+ * Removed DH_COMPAT variable from debian/rules to fix Lintian error.
+
+ -- Joel Rosdahl <joel@debian.org> Sun, 22 Apr 2007 21:55:57 +0200
+
+python-pysqlite1.1 (1.1.8a-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Joel Rosdahl <joel@debian.org> Fri, 3 Nov 2006 23:34:48 +0100
+
+python-pysqlite1.1 (1.1.7-2) unstable; urgency=low
+
+ * Adapt to new Python policy. Closes: bug#373347.
+ * Updated Standards-Version to 3.7.2.
+
+ -- Joel Rosdahl <joel@debian.org> Mon, 19 Jun 2006 18:11:33 +0000
+
+python-pysqlite1.1 (1.1.7-1) unstable; urgency=low
+
+ * New upstream release. Hopefully fixes bug#361507.
+ * Added build dependency on libsqlite3-dev >= 3.0.8.
+
+ -- Joel Rosdahl <joel@debian.org> Sat, 8 Apr 2006 22:18:11 +0200
+
+python-pysqlite1.1 (1.1.6-2) unstable; urgency=low
+
+ * Corrected build dependency on libsqlite3-dev. Closes: bug#331373.
+
+ -- Joel Rosdahl <joel@debian.org> Mon, 3 Oct 2005 10:44:53 +0200
+
+python-pysqlite1.1 (1.1.6-1) unstable; urgency=low
+
+ * New package. Closes: bug#304067, bug#327128.
+
+ -- Joel Rosdahl <joel@debian.org> Wed, 14 Sep 2005 10:19:22 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..51b8a87
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,42 @@
+Source: python-pysqlite1.1
+Section: python
+Priority: extra
+Maintainer: Joel Rosdahl <joel@debian.org>
+Build-Depends: debhelper (>= 8), libsqlite3-dev (>= 3.0.8), python-all-dev (>= 2.6.6-3~), python-all-dbg
+Standards-Version: 3.9.4
+
+Package: python-pysqlite1.1
+Architecture: any
+Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}
+Provides: ${python:Provides}
+Conflicts: python2.3-pysqlite1.1, python2.4-pysqlite1.1, python-sqlite, python2.3-sqlite, python2.4-sqlite
+Replaces: python2.3-pysqlite1.1, python2.4-pysqlite1.1
+Suggests: python-pysqlite1.1-dbg
+Description: python interface to SQLite 3
+ 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.
+ .
+ pysqlite 1.1.x is built against SQLite 3 but uses the same API as
+ pysqlite 1.0.x (for SQLite 2, packaged as python-sqlite). Newer
+ interfaces to SQLite 3 can be found in the package python-pysqlite2
+ and python-apsw.
+
+Package: python-pysqlite1.1-dbg
+Section: debug
+Architecture: any
+Depends: python-pysqlite1.1 (= ${binary:Version}), python-dbg, ${shlibs:Depends}, ${misc:Depends}
+Conflicts: python-sqlite-dbg
+Description: python interface to SQLite 3 (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.
+ .
+ pysqlite 1.1.x is built against SQLite 3 but uses the same API as
+ pysqlite 1.0.x (for SQLite 2, packaged as python-sqlite). Newer
+ interfaces to SQLite 3 can be found in the package python-pysqlite2
+ and python-apsw.
+ .
+ This package contains the extension built for the Python debug interpreter.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..092f735
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,64 @@
+This Debian package was created by Joel Rosdahl <joel@debian.org>.
+
+The upstream source was found on the following address:
+
+ http://code.google.com/p/pysqlite/downloads/list
+
+Upstream authors:
+
+ Michael Owens <mike@mikesclutter.com>
+ Gerhard Häring <gh@ghaering.de>
+
+License:
+
+ 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.
+ ==================================================================
diff --git a/debian/patches/dont-search-for-libraries-in-usr-lib.patch b/debian/patches/dont-search-for-libraries-in-usr-lib.patch
new file mode 100644
index 0000000..47a22b8
--- /dev/null
+++ b/debian/patches/dont-search-for-libraries-in-usr-lib.patch
@@ -0,0 +1,16 @@
+Description: Don't search for libraries in /usr/lib.
+Author: Joel Rosdahl <joel@debian.org>
+
+Index: python-pysqlite1.1/setup.py
+===================================================================
+--- python-pysqlite1.1.orig/setup.py 2006-09-02 00:47:26.000000000 +0200
++++ python-pysqlite1.1/setup.py 2013-09-22 19:27:52.626779595 +0200
+@@ -12,7 +12,7 @@
+
+ if sys.platform in ("linux-i386", "linux2"): # most Linux
+ include_dirs = ['/usr/include/sqlite']
+- library_dirs = ['/usr/lib/']
++ library_dirs = []
+ libraries = [sqlite]
+ runtime_library_dirs = []
+ extra_objects = []
diff --git a/debian/patches/fix-space-before-keywords.patch b/debian/patches/fix-space-before-keywords.patch
new file mode 100644
index 0000000..0d44170
--- /dev/null
+++ b/debian/patches/fix-space-before-keywords.patch
@@ -0,0 +1,16 @@
+Description: Allow whitespace before keywords
+Author: Марк Коренберг <socketpair@gmail.com>
+
+Index: python-sqlite/sqlite/main.py
+===================================================================
+--- python-sqlite.orig/sqlite/main.py 2004-10-21 12:13:25.000000000 +0200
++++ python-sqlite/sqlite/main.py 2011-12-19 21:47:47.472609323 +0100
+@@ -233,7 +233,7 @@
+ if self.con.autocommit:
+ pass
+ else:
+- if not(self.con.inTransaction or SQL[:6].upper() in ("SELECT","VACUUM","DETACH")):
++ if not(self.con.inTransaction or SQL.lstrip()[:6].upper() in ("SELECT","VACUUM","DETACH")):
+ self.con._begin()
+ self.con.inTransaction = 1
+
diff --git a/debian/patches/fix-spelling.patch b/debian/patches/fix-spelling.patch
new file mode 100644
index 0000000..6bd9796
--- /dev/null
+++ b/debian/patches/fix-spelling.patch
@@ -0,0 +1,25 @@
+Description: Fix spelling.
+Author: Joel Rosdahl <joel@debian.org>
+
+Index: python-pysqlite1.1/_sqlite.c
+===================================================================
+--- python-pysqlite1.1.orig/_sqlite.c 2006-09-02 00:47:26.000000000 +0200
++++ python-pysqlite1.1/_sqlite.c 2011-06-29 21:58:20.473656828 +0200
+@@ -702,7 +702,7 @@
+
+ static char _con_set_command_logfile_doc[] =
+ "set_command_logfile(logfile)\n\
+-Registers a writeable file-like object as logfile where all SQL commands\n\
++Registers a writable file-like object as logfile where all SQL commands\n\
+ that get executed are written to.";
+
+ static PyObject* _con_set_command_logfile(pysqlc* self, PyObject *args, PyObject* kwargs)
+@@ -816,7 +816,7 @@
+ function.\n\
+ \n\
+ The signature of the callback function is (arg, values, colnames{, types}).\n\
+- types is ommitted unless use_types is true. If you use 'use_types', you\n\
++ types is omitted unless use_types is true. If you use 'use_types', you\n\
+ MUST have issued 'pragma show_datatypes=ON' before.";
+
+ static PyObject* _con_sqlite_exec(pysqlc* self, PyObject *args, PyObject* kwargs)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1978b14
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+fix-space-before-keywords.patch
+fix-spelling.patch
+dont-search-for-libraries-in-usr-lib.patch
diff --git a/debian/python-pysqlite1.1-dbg.lintian-overrides b/debian/python-pysqlite1.1-dbg.lintian-overrides
new file mode 100644
index 0000000..1598b78
--- /dev/null
+++ b/debian/python-pysqlite1.1-dbg.lintian-overrides
@@ -0,0 +1 @@
+python-pysqlite1.1-dbg: hardening-no-fortify-functions usr/lib/python2.7/dist-packages/_sqlite_d.so
diff --git a/debian/python-pysqlite1.1.lintian-overrides b/debian/python-pysqlite1.1.lintian-overrides
new file mode 100644
index 0000000..8e3b2f1
--- /dev/null
+++ b/debian/python-pysqlite1.1.lintian-overrides
@@ -0,0 +1 @@
+python-pysqlite1.1: hardening-no-fortify-functions usr/lib/python2.7/dist-packages/_sqlite.so
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..632c729
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
+export BASECFLAGS := $(CFLAGS) $(CPPFLAGS)
+
+%:
+ dh $@ --with python2
+
+override_dh_install:
+ dh_install -X"*_d.so" "debian/tmp/*" -p python-pysqlite1.1
+ dh_install "debian/tmp/usr/lib/python*/*-packages/*_d.so" -p python-pysqlite1.1-dbg
+ dh_install
+
+override_dh_strip:
+ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
+ dh_strip --dbg-package=python-pysqlite1.1-dbg
+endif
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..a19ac29
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://code.google.com/p/pysqlite/downloads/list?can=1 .*/pysqlite-(1\.1.*)\.tar\.gz