Package: urlgrabber
Version: 3.9.1-4
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch

As per http://wiki.debian.org/Python/TransitionToDHPython2, dh_pysupport
is now deprecated. Attached is a patch making the transition to dh_python2.

Thanks for considering the patch.


-- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric-updates
  APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 
'oneiric-proposed'), (500, 'oneiric')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-8-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru urlgrabber-3.9.1/debian/control urlgrabber-3.9.1/debian/control
--- urlgrabber-3.9.1/debian/control	2010-07-08 13:38:19.000000000 -0400
+++ urlgrabber-3.9.1/debian/control	2011-08-09 19:21:02.000000000 -0400
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Kevin Coyner <kcoy...@debian.org>
 Uploaders: Debian Python Modules Team <python-modules-t...@lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7.4~), python-all, python-support (>= 0.6), python-pycurl, quilt (>= 0.46-7~)
+Build-Depends: debhelper (>= 7.4~), python-all (>= 2.6.6-3~), python-pycurl, quilt (>= 0.46-7~)
 Standards-Version: 3.8.4
 Homepage: http://urlgrabber.baseurl.org/
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/urlgrabber/trunk/
diff -Nru urlgrabber-3.9.1/debian/rules urlgrabber-3.9.1/debian/rules
--- urlgrabber-3.9.1/debian/rules	2010-07-08 13:39:10.000000000 -0400
+++ urlgrabber-3.9.1/debian/rules	2011-08-09 18:58:53.000000000 -0400
@@ -9,7 +9,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 %:
-	dh --with quilt $@
+	dh $@ --with quilt,python2
 
 
 PYVERS = $(shell pyversions -r)
@@ -49,7 +49,7 @@
 	dh_prep
 	dh_installdirs
 	# Add here commands to install the package into debian/urlgrabber.
-	python setup.py install --prefix=/usr --root=$(CURDIR)/debian/python-urlgrabber
+	python setup.py install --prefix=/usr --root=$(CURDIR)/debian/python-urlgrabber --install-layout=deb
 	# remove unneeded documents installed by setup.py
 	-rm -rf $(CURDIR)/debian/python-urlgrabber/usr/share/doc/urlgrabber-3*
 
@@ -64,7 +64,7 @@
 	dh_strip
 	dh_compress
 	dh_fixperms
-	dh_pysupport
+	dh_python2
 	dh_installdeb
 	dh_shlibdeps
 	dh_gencontrol

Reply via email to