debian: switch to debhelper 9
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 1 Jul 2013 13:31:03 +0000 (14:31 +0100)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Thu, 4 Jul 2013 05:06:17 +0000 (08:06 +0300)
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 <simon.mcvittie@collabora.co.uk>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
debian/compat
debian/control
debian/rules

index cfbf482..ec63514 100644 (file)
@@ -1,2 +1 @@
-7
-8
+9
index 1a14acf..eeed199 100644 (file)
@@ -2,18 +2,17 @@ Source: bmap-tools
 Maintainer: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
 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
index fce6539..9c13336 100755 (executable)
@@ -1,6 +1,4 @@
 #!/usr/bin/make -f
 
 %:
-       dh $@
-
-
+       dh $@ --with=python2