tags 617023 patch
user ubuntu-de...@lists.ubuntu.com
usertags 617023 ubuntu-patch oneiric
thanks

On Mon, Mar 07, 2011 at 12:51:11AM +0000, Matthias Klose wrote:
> The package build-depends on python-central, which should be
> removed in time for the wheezy release.  dh_python2 should be used instead.
> dh_python2 installs into the same locations as pycentral, but
> avoids the creation and removal of symlinks at package installation
> and removal time, making the upgrade process more robust and faster.

Here's a patch.

  * Convert to dh_python2.

diff -u python-pysqlite1.1-1.1.8a/debian/control 
python-pysqlite1.1-1.1.8a/debian/control
--- python-pysqlite1.1-1.1.8a/debian/control
+++ python-pysqlite1.1-1.1.8a/debian/control
@@ -2,9 +2,9 @@
 Section: python
 Priority: optional
 Maintainer: Joel Rosdahl <j...@debian.org>
-Build-Depends: debhelper (>= 5.0.38), libsqlite3-dev (>= 3.0.8), 
python-all-dev (>= 2.3.5-11), python-all-dbg, python-central (>= 0.5.6)
+Build-Depends: debhelper (>= 5.0.38), libsqlite3-dev (>= 3.0.8), 
python-all-dev (>= 2.6.6-3~), python-all-dbg
 XS-Python-Standards-Version: 0.4
-XS-Python-Version: all
+X-Python-Version: >= 2.1
 Standards-Version: 3.7.2
 
 Package: python-pysqlite1.1
@@ -14,7 +14,6 @@
 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
-XB-Python-Version: ${python:Versions}
 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
@@ -29,7 +28,6 @@
 Package: python-pysqlite1.1-dbg
 Architecture: any
 Depends: python-pysqlite1.1 (= ${binary:Version}), python-dbg, 
${shlibs:Depends}
-XB-Python-Version: ${python:Versions}
 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
diff -u python-pysqlite1.1-1.1.8a/debian/rules 
python-pysqlite1.1-1.1.8a/debian/rules
--- python-pysqlite1.1-1.1.8a/debian/rules
+++ python-pysqlite1.1-1.1.8a/debian/rules
@@ -37,11 +37,11 @@
        dh_installdirs
 
 install-ext-%:
-       $* setup.py install --root=debian/python-pysqlite1.1
+       $* setup.py install --root=debian/python-pysqlite1.1 
--install-layout=deb
        find debian/python-pysqlite1.1 -name '*.pyc' | xargs rm -f
 
 dbg-install-ext-%:
-       $*-dbg setup.py install --root=debian/python-pysqlite1.1-dbg
+       $*-dbg setup.py install --root=debian/python-pysqlite1.1-dbg 
--install-layout=deb
        find debian/python-*-dbg ! -type d ! -name '*.so' | xargs rm -f
        find debian/python-*-dbg -depth -empty -exec rmdir {} \;
 
@@ -57,7 +57,7 @@
        dh_installexamples -A -a examples/*
        chmod -x 
debian/python-pysqlite1.1/usr/share/doc/python-pysqlite1.1/examples/*
 
-       dh_pycentral -a
+       dh_python2 -a
        dh_installchangelogs -a
        dh_strip -ppython-pysqlite1.1 --dbg-package=python-pysqlite1.1-dbg
        rm -rf 
debian/python-pysqlite1.1-dbg/usr/share/doc/python-pysqlite1.1-dbg
reverted:
--- python-pysqlite1.1-1.1.8a/debian/pycompat
+++ python-pysqlite1.1-1.1.8a.orig/debian/pycompat
@@ -1 +0,0 @@
-2

-- 
Colin Watson                                       [cjwat...@ubuntu.com]



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to