Package: dbf
Version: 0.88.16-1
Followup-For: Bug #785984
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu wily ubuntu-patch

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

  * Convert to dh-python2.

Thanks for considering the patch.

Logan Rosen

-- System Information:
Debian Release: jessie/sid
  APT prefers wily-updates
  APT policy: (500, 'wily-updates'), (500, 'wily-security'), (500, 'wily'), 
(100, 'wily-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.19.0-18-generic (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru dbf-0.88.16/debian/control dbf-0.88.16/debian/control
--- dbf-0.88.16/debian/control	2010-12-27 10:48:56.000000000 -0500
+++ dbf-0.88.16/debian/control	2015-05-28 01:53:40.000000000 -0400
@@ -2,15 +2,13 @@
 Maintainer: Margarita Manterola <ma...@debian.org>
 Section: python
 Priority: optional
-Build-Depends: debhelper (>= 7), python
-Build-Depends-Indep: python-support (>= 0.90)
+Build-Depends: debhelper (>= 7), python-all (>= 2.6.6-3~), dh-python
 Standards-Version: 3.9.1
 Homepage: http://groups.google.com/group/python-dbase
 
 Package: python-dbf
 Architecture: all
 Depends: ${misc:Depends}, ${python:Depends}
-Provides: ${python:Provides}
 Suggests: python-dbf-doc
 Description: Python module for reading and writing dbf files
  A pure Python module for reading and writing dBase III, FoxPro, and Visual
diff -Nru dbf-0.88.16/debian/python-dbf.install dbf-0.88.16/debian/python-dbf.install
--- dbf-0.88.16/debian/python-dbf.install	1969-12-31 19:00:00.000000000 -0500
+++ dbf-0.88.16/debian/python-dbf.install	2015-05-28 01:51:09.000000000 -0400
@@ -0,0 +1 @@
+/usr/lib/python*
diff -Nru dbf-0.88.16/debian/python-dbf.preinst dbf-0.88.16/debian/python-dbf.preinst
--- dbf-0.88.16/debian/python-dbf.preinst	2010-12-27 06:51:03.000000000 -0500
+++ dbf-0.88.16/debian/python-dbf.preinst	1969-12-31 19:00:00.000000000 -0500
@@ -1,14 +0,0 @@
-#! /bin/sh
-
-set -e
-
-# This was added by stdeb to workaround Debian #479852. In a nutshell,
-# pycentral does not remove normally remove its symlinks on an
-# upgrade. Since we're using python-support, however, those symlinks
-# will be broken. This tells python-central to clean up any symlinks.
-if [ -e /var/lib/dpkg/info/python-dbf.list ] && which pycentral >/dev/null 2>&1
-then
-    pycentral pkgremove python-dbf
-fi
-
-#DEBHELPER#
diff -Nru dbf-0.88.16/debian/rules dbf-0.88.16/debian/rules
--- dbf-0.88.16/debian/rules	2010-12-27 10:45:50.000000000 -0500
+++ dbf-0.88.16/debian/rules	2015-05-28 01:44:44.000000000 -0400
@@ -1,44 +1,3 @@
 #!/usr/bin/make -f
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-build: build-stamp
-build-stamp:
-	dh_testdir
-	python setup.py build;
-	touch $@
-
-clean:
-	dh_testdir
-	dh_testroot
-	[ ! -d build ] || rm -rf build
-	python setup.py clean;
-	dh_clean build-stamp patch-stamp
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_installdirs
-	python setup.py install --root=debian/python-dbf;
-
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_install
-	dh_installdocs
-	dh_installchangelogs
-	dh_pysupport
-	dh_compress		-X.py -X.js
-	dh_link
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
-
-
-
+%:
+	dh $@ --with python2

Reply via email to