Imported Debian patch 2.4.0-1 debian/2.4.0-1
authorJoel Rosdahl <joel@debian.org>
Mon, 3 Dec 2007 18:36:47 +0000 (19:36 +0100)
committerJoel Rosdahl <joel@debian.org>
Mon, 11 Jan 2010 20:41:50 +0000 (21:41 +0100)
debian/changelog
debian/control
debian/python-pysqlite2.doc-base [new file with mode: 0644]
debian/python2.4-pysqlite2.doc-base [deleted file]
debian/python2.5-pysqlite2.doc-base [deleted file]
debian/rules

index 6644762..698a854 100644 (file)
@@ -1,3 +1,23 @@
+python-pysqlite2 (2.4.0-1) unstable; urgency=low
+
+  * New upstream release.
+  * Added doc-base registration file again. It was lost in
+    2.3.2-2. Closes: #451676.
+
+ -- Joel Rosdahl <joel@debian.org>  Mon, 03 Dec 2007 19:36:47 +0100
+
+python-pysqlite2 (2.3.4-2) unstable; urgency=low
+
+  * Build python-pysqlite2-dbg package based on Ubuntu patch.
+
+ -- Joel Rosdahl <joel@debian.org>  Thu, 21 Jun 2007 22:54:43 +0200
+
+python-pysqlite2 (2.3.4-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Joel Rosdahl <joel@debian.org>  Wed, 20 Jun 2007 21:15:20 +0200
+
 python-pysqlite2 (2.3.3-2) unstable; urgency=low
 
   * Removed DH_COMPAT variable from debian/rules to fix Lintian warning.
index bc48d16..e9abc04 100644 (file)
@@ -2,7 +2,7 @@ Source: python-pysqlite2
 Section: python
 Priority: optional
 Maintainer: Joel Rosdahl <joel@debian.org>
-Build-Depends: debhelper (>= 5.0.38), python-all-dev (>= 2.3.5-11), python-central (>= 0.5.6), libsqlite3-dev (>= 3.3.8)
+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.8)
 XS-Python-Version: all
 Standards-Version: 3.7.2
 
@@ -12,6 +12,7 @@ Depends: ${shlibs:Depends}, ${python:Depends}
 Provides: ${python:Provides}
 Conflicts: python2.3-pysqlite2, python2.4-pysqlite2
 Replaces: python2.3-pysqlite2, python2.4-pysqlite2
+Suggests: python-pysqlite2-dbg
 XB-Python-Version: ${python:Versions}
 Description: python interface to SQLite 3
  pysqlite is a DB-API 2.0-compliant database interface for SQLite.
@@ -43,3 +44,17 @@ Description: python interface to SQLite 3
  It's often a good alternative to MySQL, the Microsoft JET engine
  or the MSDE, without having any of their license and deployment
  issues.
+
+Package: python-pysqlite2-dbg
+Priority: extra
+Architecture: any
+Depends: python-pysqlite2 (= ${binary:Version}), python-dbg, ${shlibs:Depends}
+XB-Python-Version: ${python:Versions}
+Description: python interface to SQLite 3 (debug extension)
+ pysqlite is a DB-API 2.0-compliant database interface for SQLite.
+ .
+ This package is built against SQLite 3. For an interface to SQLite 2,
+ see the package python-sqlite. An alternative Python SQLite 3 module
+ is packaged as python-apsw.
+ .
+ This package contains the extension built for the Python debug interpreter.
diff --git a/debian/python-pysqlite2.doc-base b/debian/python-pysqlite2.doc-base
new file mode 100644 (file)
index 0000000..f72cad6
--- /dev/null
@@ -0,0 +1,14 @@
+Document: python-pysqlite2
+Title: PySQLite 2 Manual
+Author: Gerhard Haring
+Abstract: Manual for PySQLite 2
+Section: Apps/Programming
+
+Format: text
+Files: /usr/share/doc/python-pysqlite2/usage-guide.txt.gz
+
+Format: HTML
+Index: /usr/share/doc/python-pysqlite2/usage-guide.html
+Files:
+ /usr/share/doc/python-pysqlite2/*.html
+ /usr/share/doc/python-pysqlite2/*.css
diff --git a/debian/python2.4-pysqlite2.doc-base b/debian/python2.4-pysqlite2.doc-base
deleted file mode 100644 (file)
index 287ca6f..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-Document: python2.4-pysqlite2
-Title: PySQLite 2 Manual
-Author: Gerhard Haring
-Abstract: Manual for PySQLite 2
-Section: Apps/Programming
-
-Format: text
-Files: /usr/share/doc/python2.4-pysqlite2/usage-guide.txt.gz
-
-Format: HTML
-Index: /usr/share/doc/python2.4-pysqlite2/usage-guide.html
-Files:
- /usr/share/doc/python2.4-pysqlite2/*.html
- /usr/share/doc/python2.4-pysqlite2/*.css
diff --git a/debian/python2.5-pysqlite2.doc-base b/debian/python2.5-pysqlite2.doc-base
deleted file mode 100644 (file)
index d0185e1..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-Document: python2.5-pysqlite2
-Title: PySQLite 2 Manual
-Author: Gerhard Haring
-Abstract: Manual for PySQLite 2
-Section: Apps/Programming
-
-Format: text
-Files: /usr/share/doc/python2.5-pysqlite2/usage-guide.txt.gz
-
-Format: HTML
-Index: /usr/share/doc/python2.5-pysqlite2/usage-guide.html
-Files:
- /usr/share/doc/python2.5-pysqlite2/*.html
- /usr/share/doc/python2.5-pysqlite2/*.css
index 8dace84..51ece5e 100755 (executable)
@@ -7,7 +7,7 @@ PYVERS = $(shell pyversions -r)
 
 build: build-stamp
 
-build-stamp: $(PYVERS:%=build-ext-%-stamp)
+build-stamp: $(PYVERS:%=build-ext-%-stamp) $(PYVERS:%=dbg-build-ext-%-stamp)
        touch $@
 
 build-ext-%-stamp:
@@ -15,15 +15,20 @@ build-ext-%-stamp:
        $* 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
+       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-%)
+install: build install-prereq $(PYVERS:%=install-ext-%) $(PYVERS:%=dbg-install-ext-%)
 
 install-prereq:
        dh_testdir
@@ -38,6 +43,11 @@ install-ext-%:
        rm -rf debian/python-pysqlite2/usr/lib/python*/site-packages/pysqlite2/test
        find debian/python-pysqlite2 -name '*.pyc' | xargs rm -f
 
+dbg-install-ext-%:
+       $*-dbg setup.py install --root=debian/python-pysqlite2-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:
 
@@ -47,11 +57,11 @@ binary-arch: build install
        dh_testroot -a
        dh_installdocs -A -a doc/usage-guide.* doc/*.css
 
-       dh_installexamples -A -a doc/code/*
-
        dh_pycentral -a
        dh_installchangelogs -a
-       dh_strip -a
+       dh_strip -ppython-pysqlite2 --dbg-package=python-pysqlite2-dbg
+       rm -rf debian/python-pysqlite2-dbg/usr/share/doc/python-pysqlite2-dbg
+       ln -s python-pysqlite2 debian/python-pysqlite2-dbg/usr/share/doc/python-pysqlite2-dbg
        dh_compress -a
        dh_fixperms -a
        dh_installdeb -a