From b677fd256e2d01a300f38f31874c3ae993ef698f Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 1 Jul 2013 14:31:03 +0100 Subject: [PATCH] debian: switch to debhelper 9 Debhelper 9 "compatibility level" is what's currently recommended. Debian 7 and Ubuntu 12.04 both have a suitable debhelper version. At the Debhelper 7 or 8 "compatibility level" we would have used the deprecated python-support helper tool, whereas Debhelper 9 does not have a default Python packaging tool: choose dh_python2, part of the Debian/Ubuntu 'python' package since before Ubuntu 12.04 and currently the recommended option. This needs a dependency on python-all (>= 2.7) so do that. In the process, switch the XS-Python-Version field from the deprecated keyword 'current' to ">= 2.7" (the recommended syntax), and remove the deprecated XB-Python-Version field. Signed-off-by: Simon McVittie Signed-off-by: Artem Bityutskiy --- debian/compat | 3 +-- debian/control | 7 +++---- debian/rules | 4 +--- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/debian/compat b/debian/compat index cfbf482..ec63514 100644 --- a/debian/compat +++ b/debian/compat @@ -1,2 +1 @@ -7 -8 +9 diff --git a/debian/control b/debian/control index 1a14acf..eeed199 100644 --- a/debian/control +++ b/debian/control @@ -2,18 +2,17 @@ Source: bmap-tools Maintainer: Artem Bityutskiy Section: utils Priority: optional -Build-Depends: debhelper (>= 7), - python-all, +Build-Depends: debhelper (>= 9), + python-all (>= 2.7), python-setuptools, Standards-Version: 3.8.4 -XS-Python-Version: current +XS-Python-Version: >= 2.7 Package: bmap-tools Architecture: all Depends: python (>=2.7), ${misc:Depends}, ${python:Depends}, -XB-Python-Version: ${python:Versions} Description: tool to flash image files to block devices using the block map bmaptool is a generic tool for creating the block map (bmap) for a file, and copying files using the block map. The idea is that large diff --git a/debian/rules b/debian/rules index fce6539..9c13336 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,4 @@ #!/usr/bin/make -f %: - dh $@ - - + dh $@ --with=python2 -- 2.7.4