From a92795694ea09ed2d4df92ab335ea0dbe318d56e Mon Sep 17 00:00:00 2001
From: Iustin Pop <iusty@k1024.org>
Date: Sun, 13 May 2012 21:51:25 +0200
Subject: [PATCH] Switch from py_support to dh_python2
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

Phew, not as complicated as I feared…
---
 debian/control    | 10 ++++++----
 debian/pyversions |  1 -
 debian/rules      |  8 ++++++--
 3 files changed, 12 insertions(+), 7 deletions(-)
 delete mode 100644 debian/pyversions

diff --git a/debian/control b/debian/control
index 7d3815b..ac3b821 100644
--- a/debian/control
+++ b/debian/control
@@ -3,16 +3,18 @@ Section: python
 Priority: optional
 Maintainer: Iustin Pop <iustin@debian.org>
 Build-Depends: debhelper (>= 7),
- python (>= 2.6.2), python-all-dev (>= 2.6.2), python-all-dbg,
- python-support (>= 0.6), libacl1-dev, python-setuptools, python-sphinx
-Standards-Version: 3.9.1
+ python (>= 2.6.6-3~), python-all-dev (>= 2.6.6-3~), python-all-dbg,
+ libacl1-dev, python-setuptools,
+ python-sphinx (>= 1.0.7+dfsg) | python3-sphinx
+Standards-Version: 3.9.3
 Homepage: http://pylibacl.sourceforge.net/
 Vcs-Browser: http://git.k1024.org/debian-pylibacl.git
 Vcs-Git: git://git.k1024.org/debian-pylibacl.git
 
 Package: python-pylibacl
 Architecture: any
-Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends},
+ ${sphinxdoc:Depends}
 Provides: ${python:Provides}
 Suggests: python-pylibacl-dbg
 Description: module for manipulating POSIX.1e ACLs
diff --git a/debian/pyversions b/debian/pyversions
deleted file mode 100644
index 8b253bc..0000000
--- a/debian/pyversions
+++ /dev/null
@@ -1 +0,0 @@
-2.4-
diff --git a/debian/rules b/debian/rules
index af7a0c8..dc2ac07 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,7 +16,10 @@ PYVERS := $(shell pyversions -vr)
 PKGROOT=debian/python-pylibacl
 DBGROOT=debian/python-pylibacl-dbg
 
-build: $(PYVERS:%=build-python%) build-indep
+build: build-arch build-indep
+	touch $@
+
+build-arch: $(PYVERS:%=build-python%)
 	touch $@
 
 build-python%:
@@ -50,12 +53,13 @@ binary-arch: build install
 	dh_testroot
 	dh_installchangelogs
 	dh_installdocs
+	dh_sphinxdoc
 	dh_strip -ppython-pylibacl --dbg-package=python-pylibacl-dbg
 	rm -rf $(DBGROOT)/usr/share/doc/python-pylibacl-dbg
 	ln -s python-pylibacl $(DBGROOT)/usr/share/doc/python-pylibacl-dbg
 	dh_compress -X.js
 	dh_fixperms
-	dh_pysupport
+	dh_python2
 	dh_installdeb
 	dh_shlibdeps
 	dh_gencontrol
-- 
2.39.5