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

On Mon, Mar 07, 2011 at 12:49:21AM +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 newt-0.52.11/debian/control newt-0.52.11/debian/control
--- newt-0.52.11/debian/control
+++ newt-0.52.11/debian/control
@@ -5,8 +5,7 @@
 Standards-Version: 3.9.1
 Homepage: https://fedorahosted.org/newt/
 Vcs-Git: git://git.fedorahosted.org/git/newt
-XS-Python-Version: all
-Build-Depends: dbs, sgmltools-lite, libslang2-dev  (>=2.0.4-2), libpopt-dev, 
debhelper (>=5.0.37.2), gettext, libfribidi-dev, tcl8.5-dev, python-all-dev (>= 
2.3.5-7), python-central (>= 0.5), autoconf, python-all-dbg
+Build-Depends: dbs, sgmltools-lite, libslang2-dev  (>=2.0.4-2), libpopt-dev, 
debhelper (>=5.0.37.2), gettext, libfribidi-dev, tcl8.5-dev, python-all-dev (>= 
2.6.6-3~), autoconf, python-all-dbg
 
 Package: libnewt-dev
 Architecture: any
@@ -45,7 +44,6 @@
 Architecture: any
 Section: python
 Priority: optional
-XB-Python-Version: ${python:Versions}
 Provides: ${python:Provides}
 Depends: libnewt0.52 (=${binary:Version}) , ${python:Depends}, 
${misc:Depends}, ${shlibs:Depends}
 Description: A NEWT module for Python
diff -u newt-0.52.11/debian/rules newt-0.52.11/debian/rules
--- newt-0.52.11/debian/rules
+++ newt-0.52.11/debian/rules
@@ -211,7 +211,7 @@
        dh_installdirs -p $@ 
        dh_install -p $@ --sourcedir=$(BUILD_TREE)
        dh_strip -p $@ --dbg-package python-newt-dbg
-       DH_PYCENTRAL=include-links dh_pycentral -p $@
+       dh_python2 -p $@
        dh_installdocs -p $@ $(BUILD_TREE)/newt.spec
        # Currently disabled, as debian-test has been removed.
        # chmod +x 
debian/whiptail/usr/lib/debian-test/tests/whiptail/test-newt.sh/test-newt.sh
@@ -236,7 +236,7 @@
        done
        dh_installdirs -p $@ 
        dh_install -p $@ --sourcedir=$(BUILD_TREE)
-       DH_PYCENTRAL=include-links dh_pycentral -p $@
+       dh_python2 -p $@
        mkdir -p debian/python-newt-dbg/usr/share/doc
        ln -sf python-newt debian/python-newt-dbg/usr/share/doc/python-newt-dbg
        dh_compress -p $@

-- 
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