Package: python-gearman,python-gearman.libgearman
Followup-For: Bug #620469

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

attached is the patch to fix this issue I'm using for the NMU.

coldtobi

- -- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk9TTPIACgkQvyUNygvkuQJbSgCgzKPsWphgepj91KiBX100yBMy
TSwAoIf6BA5Zu7bOnle+gDYnSJT6ZLPl
=5jvS
-----END PGP SIGNATURE-----
--- gearman-interface-0.13.2.orig/debian/control	2010-08-20 00:40:12.000000000 +0200
+++ gearman-interface-0.13.2/debian/control	2012-03-04 10:03:53.929919466 +0100
@@ -1,7 +1,7 @@
 Source: gearman-interface
 Priority: extra
 Maintainer: Clint Byrum <cl...@ubuntu.com>
-Build-Depends: python-setuptools (>= 0.6b3), python, python3 (>= 3.1.2-6~), python3-all-dev, python-all-dev, debhelper (>= 7.0.50~), python-support (>= 0.8.4), libgearman-dev (>= 0.13), swig, uuid-dev
+Build-Depends: python-setuptools (>= 0.6b3), python, python3 (>= 3.1.2-6~), python3-all-dev, python-all-dev, debhelper (>= 7.0.50~), python-support (>= 0.8.4), libgearman-dev (>= 0.27-3), swig, uuid-dev, dh-autoreconf
 Standards-Version: 3.9.1
 Section: python
 Homepage: https://launchpad.net/gearman-interface
@@ -9,7 +9,7 @@
 
 Package: python-gearman.libgearman
 Architecture: any
-Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-gearman
 Provides: ${python:Provides}
 Description: Python wrapper of libgearman
  This package contains a Python wrapper of libgearman.
--- gearman-interface-0.13.2.orig/debian/rules	2010-08-20 00:33:48.000000000 +0200
+++ gearman-interface-0.13.2/debian/rules	2012-03-04 09:41:39.000000000 +0100
@@ -14,7 +14,7 @@
 PY3VERS=$(shell py3versions -vs)
 
 %:
-	dh $@ 
+	dh $@ --with=python2 --with=python3 --with=autoreconf
 
 override_dh_build:: build-python-all build-python3-all
 
@@ -38,7 +38,8 @@
 
 override_dh_install:: build $(PYVERS:%=install-python2%) $(PY3VERS:%=install-python3%)
 install-python2%:
-	cd python && python$* setup.py install --root $(CURDIR)/debian/python-gearman.libgearman
+	cd python && python$* setup.py install --install-layout=deb --root $(CURDIR)/debian/python-gearman.libgearman
+	find $(CURDIR)/debian/python-gearman.libgearman -name '__init__.py' -delete
 
 install-python3%:
 	cd python3 && python$* setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-gearman.libgearman
@@ -52,10 +53,6 @@
 	rm -f python/libgearman.c
 	rm -f python3/libgearman.c
 
-override_dh_pysupport::
-	dh_pysupport
-	dh_python3
-
 override_dh_clean::
 	dh_clean
 	rm -f build-python*
@@ -64,6 +61,8 @@
 	rm -f python/debian
 	rm -rf python/ez_setup.pyc
 	rm -rf python/build/
+	rm -rf python3/gearman/_libgearman*so
+	rm -rf python3/gearman/__pycache__
 	rm -rf python/python_libgearman.egg-info/
 	rm -rf python3/build/
 	[ ! -f python/libgearman.c.orig ] || mv -f python/libgearman.c.orig python/libgearman.c

Reply via email to