tags 617031 patch user ubuntu-de...@lists.ubuntu.com usertags 617031 ubuntu-patch oneiric thanks
On Mon, Mar 07, 2011 at 12:51:19AM +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. I couldn't find any suggestion of a minimum Python version in the source, so I just omitted X-Python-Version; feel free to add this if you know better. * Convert to dh_python2. diff -u python-sqlite-1.0.1/debian/control python-sqlite-1.0.1/debian/control --- python-sqlite-1.0.1/debian/control +++ python-sqlite-1.0.1/debian/control @@ -2,9 +2,8 @@ Section: python Priority: optional Maintainer: Joel Rosdahl <j...@debian.org> -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) +Build-Depends: debhelper (>= 5.0.38), libsqlite0-dev (>= 2.5.6), python-all-dev (>= 2.6.6-3~), python-all-dbg XS-Python-Standards-Version: 0.4 -XS-Python-Version: all Standards-Version: 3.7.2 Package: python-sqlite @@ -14,7 +13,6 @@ 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 @@ -28,7 +26,6 @@ Package: python-sqlite-dbg Architecture: any 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 diff -u python-sqlite-1.0.1/debian/rules python-sqlite-1.0.1/debian/rules --- python-sqlite-1.0.1/debian/rules +++ python-sqlite-1.0.1/debian/rules @@ -37,11 +37,11 @@ dh_installdirs install-ext-%: - $* setup.py install --root=debian/python-sqlite + $* setup.py install --root=debian/python-sqlite --install-layout=deb find debian/python-sqlite -name '*.pyc' | xargs rm -f dbg-install-ext-%: - $*-dbg setup.py install --root=debian/python-sqlite-dbg + $*-dbg setup.py install --root=debian/python-sqlite-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-sqlite/usr/share/doc/python-sqlite/examples/* - dh_pycentral -a + dh_python2 -a dh_installchangelogs -a dh_strip -ppython-sqlite --dbg-package=python-sqlite-dbg rm -rf debian/python-sqlite-dbg/usr/share/doc/python-sqlite-dbg reverted: --- python-sqlite-1.0.1/debian/pycompat +++ python-sqlite-1.0.1.orig/debian/pycompat @@ -1 +0,0 @@ -2 Thanks, -- 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