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

On Mon, Mar 07, 2011 at 12:50:45AM +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-clientform-0.2.10/debian/rules 
python-clientform-0.2.10/debian/rules
--- python-clientform-0.2.10/debian/rules
+++ python-clientform-0.2.10/debian/rules
@@ -35,8 +35,6 @@
        dh_testroot
        dh_clean -k
        dh_installdirs
-       # Workaround dh_python/dh_pycentral breakage
-       echo python:Provides=$(foreach pv,$(shell pyversions 
-s),$(pv)-clientform)|sed 's/ /, /g' >> debian/python-clientform.substvars
        $(MAKE) -f debian/rules $(PYVERS:%=install-python%)
 
 install-python%:
@@ -57,8 +55,7 @@
        dh_strip
        dh_compress
        dh_fixperms
-       dh_pycentral
-       dh_python
+       dh_python2
        dh_makeshlibs
        dh_installdeb
        dh_shlibdeps
reverted:
--- python-clientform-0.2.10/debian/pycompat
+++ python-clientform-0.2.10.orig/debian/pycompat
@@ -1 +0,0 @@
-2
diff -u python-clientform-0.2.10/debian/control 
python-clientform-0.2.10/debian/control
--- python-clientform-0.2.10/debian/control
+++ python-clientform-0.2.10/debian/control
@@ -3,11 +3,10 @@
 Priority: extra
 Maintainer: Debian/Ubuntu Zope Team 
<pkg-zope-develop...@lists.alioth.debian.org>
 Uploaders: Brian Sutherland <ji...@web.de>, Fabio Tranchitella 
<kob...@debian.org>, Jérémy Bobbio <lu...@debian.org> , Matthias Klose 
<d...@ubuntu.com>
-Build-Depends-Indep: python-central (>= 0.5)
-Build-Depends: debhelper (>= 5.0.37.2), python-setuptools (>= 0.6a9), 
python-all-dev (>= 2.3.5-7)
+Build-Depends: debhelper (>= 5.0.37.2), python-setuptools (>= 0.6a9), 
python-all-dev (>= 2.6.6-3~)
 Standards-Version: 3.8.3
 Homepage: http://wwwsearch.sourceforge.net/ClientForm/
-XS-Python-Version: all
+X-Python-Version: >= 2.0
 
 Package: python-clientform
 Architecture: all
@@ -15,7 +14,6 @@
 Provides: ${python:Provides}
 Conflicts: python2.3-clientform (<< 0.2.2), python2.4-clientform (<< 0.2.2)
 Replaces: python2.3-clientform (<< 0.2.2), python2.4-clientform (<< 0.2.2)
-XB-Python-Version: ${python:Versions}
 Description: module for handling HTML forms on the client side
  ClientForm is a Python module for handling HTML forms on the client side,
  useful for parsing HTML forms, filling them in and returning the completed

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