Switch from python-central to dh_python2.
authorMichael Vogt <michael.vogt@ubuntu.com>
Fri, 17 Feb 2012 10:12:01 +0000 (11:12 +0100)
committerDidier Raboud <odyx@debian.org>
Mon, 27 Feb 2012 08:21:07 +0000 (09:21 +0100)
(This was initially done in the 4.0-0ubuntu12 upload but is now done slightly
 differently.)

Note that 2.6.6-6~ is needed (instead of 2.6.6-3~) because of
  "- create symlinks for files installed into /usr/share/pyshared/ if there
     are no other public modules available"

Closes: #606354
Signed-off-by: Didier Raboud <odyx@debian.org>
debian/control
debian/lsb-release.dirs [deleted file]
debian/lsb-release.install
debian/pycompat [deleted file]
debian/rules

index daa32c2ffdbf5d8f7c769a2a54a419c6ee850b16..7408594657806d77b14a74932e17e6fc4d8fcff3 100644 (file)
@@ -6,9 +6,8 @@ Uploaders: Didier Raboud <odyx@debian.org>
 Build-Depends: debhelper (>> 7.0.50~),
  po-debconf (>= 0.5.0),
  dpkg-dev (>= 1.10),
- python-support, python-all-dev
+ python-all-dev (>= 2.6.6-6~)
 Standards-Version: 3.9.1
-XS-Python-Version: all
 Homepage: http://www.linux-foundation.org/en/LSB
 
 Package: lsb-core
@@ -51,7 +50,6 @@ Depends: lsb-release,
  lsb-base,
  time
 Provides: lsb-core-noarch, ${provides}
-XB-Python-Version: ${python:Versions}
 Description: Linux Standard Base 3.2 core support package
  The Linux Standard Base (http://www.linuxbase.org/) is a standard
  core system that third-party applications written for Linux can
@@ -306,7 +304,6 @@ Depends: ${python:Depends},
  ${misc:Depends}
 Recommends: apt
 Suggests: lsb
-XB-Python-Version: ${python:Versions}
 Description: Linux Standard Base version reporting utility
  The Linux Standard Base (http://www.linuxbase.org/) is a standard
  core system that third-party applications written for Linux can
diff --git a/debian/lsb-release.dirs b/debian/lsb-release.dirs
deleted file mode 100644 (file)
index 8f49a81..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-usr/bin
-usr/share/bug
-usr/share/python-support/lsb-release
index b28783d333366896a9396dcd565499d6a0d07ec4..7cb506fe969f0221bd579bbb004d03105ffc46ea 100644 (file)
@@ -1,2 +1,2 @@
 lsb_release /usr/bin
-lsb_release.py /usr/share/python-support/lsb-release
+lsb_release.py /usr/share/pyshared/
diff --git a/debian/pycompat b/debian/pycompat
deleted file mode 100644 (file)
index 0cfbf08..0000000
+++ /dev/null
@@ -1 +0,0 @@
-2
index 47ea9ec05a10ad17a9bb3194d723fa53883cc1b5..599f64e8ffd293182f97d3792790e733831d6b39 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 %:
-       dh $@
+       dh --with python2 $@
 
 # These are used for cross-compiling and for saving the configure script
 # from having to guess our platform (since we know it already)
@@ -42,6 +42,10 @@ override_dh_clean:
        dh_clean
        rm -f *.py[co]
 
+override_dh_python2:
+       dh_python2
+       dh_python2 /usr/lib/lsb
+
 override_dh_gencontrol:
        @echo >> debian/lsb-core.substvars "glibc=${LIBC}"
 #      @[ ${DEB_HOST_GNU_TYPE} != 'arm-linux-gnueabi' ] && echo >> debian/lsb-cxx.substvars "depends=libstdc++5" || true