From 2d0d0ba99b507cab093962cb910ddc7dd4755c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 27 Aug 2013 04:57:39 +0200 Subject: Switch to dh_python2 (or dh_pysupport as fallback) on Debian and Ubuntu --- ubuntu/precise/applications/desktop-effects-tde/debian/control | 2 +- ubuntu/precise/applications/desktop-effects-tde/debian/rules | 5 ++++- ubuntu/precise/applications/fusion-icon/debian/control | 2 +- ubuntu/precise/applications/fusion-icon/debian/rules | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) (limited to 'ubuntu/precise/applications') diff --git a/ubuntu/precise/applications/desktop-effects-tde/debian/control b/ubuntu/precise/applications/desktop-effects-tde/debian/control index d2efdcdc4..9a9fe5b4c 100644 --- a/ubuntu/precise/applications/desktop-effects-tde/debian/control +++ b/ubuntu/precise/applications/desktop-effects-tde/debian/control @@ -2,7 +2,7 @@ Source: desktop-effects-tde-trinity Section: tde Priority: optional Maintainer: Timothy Pearson -Build-Depends-Indep: cdbs (>= 0.4.43), debhelper (>= 5.0.38), python-central (>= 0.5.6) +Build-Depends-Indep: cdbs (>= 0.4.43), debhelper (>= 5.0.38), python-support (>= 0.6) | python-dev (>= 2.6.6-3~) Standards-Version: 3.8.4 XS-Python-Version: all diff --git a/ubuntu/precise/applications/desktop-effects-tde/debian/rules b/ubuntu/precise/applications/desktop-effects-tde/debian/rules index d494616db..41ad63be2 100755 --- a/ubuntu/precise/applications/desktop-effects-tde/debian/rules +++ b/ubuntu/precise/applications/desktop-effects-tde/debian/rules @@ -1,5 +1,8 @@ #!/usr/bin/make -f +DEB_PYTHON_SYSTEM = $(if $(wildcard /usr/bin/dh_python2),,pysupport) +DH_PYTHON2 = $(if $(wildcard /usr/bin/dh_python2),dh_python2,dh_pysupport) + include /usr/share/cdbs/1/rules/debhelper.mk DEB_CONFIGURE_INCLUDEDIR := /opt/trinity/include/tde @@ -13,4 +16,4 @@ DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \ && echo xz || echo bzip2) binary-install/desktop-effects-tde-trinity:: - dh_pycentral -pdesktop-effects-tde-trinity + ${DH_PYTHON2} -pdesktop-effects-tde-trinity diff --git a/ubuntu/precise/applications/fusion-icon/debian/control b/ubuntu/precise/applications/fusion-icon/debian/control index 2b2a5d206..0c45f670d 100644 --- a/ubuntu/precise/applications/fusion-icon/debian/control +++ b/ubuntu/precise/applications/fusion-icon/debian/control @@ -5,7 +5,7 @@ Maintainer: Timothy Pearson Uploaders: Python Applications Packaging Team XS-Python-Version: all Build-Depends: cdbs (>= 0.4.49), debhelper (>= 5.0.37.1), pkg-config, python-all-dev -Build-Depends-Indep: python-central (>= 0.6.0), intltool +Build-Depends-Indep: python-support (>= 0.6), intltool Standards-Version: 3.8.4 Package: fusion-icon-trinity diff --git a/ubuntu/precise/applications/fusion-icon/debian/rules b/ubuntu/precise/applications/fusion-icon/debian/rules index 8c79610db..2b780a204 100755 --- a/ubuntu/precise/applications/fusion-icon/debian/rules +++ b/ubuntu/precise/applications/fusion-icon/debian/rules @@ -1,6 +1,6 @@ #!/usr/bin/make -f -DEB_PYTHON_SYSTEM=pycentral +DEB_PYTHON_SYSTEM=pysupport include /usr/share/cdbs/1/rules/debhelper.mk # include /usr/share/cdbs/1/class/python-distutils.mk @@ -17,5 +17,5 @@ binary-install/fusion-icon-trinity:: mkdir -p debian/fusion-icon-trinity/opt/trinity cp -Rp debian/fusion-icon-trinity/usr/* debian/fusion-icon-trinity/opt/trinity/ rm -rf debian/fusion-icon-trinity/usr - dh_pycentral -pfusion-icon-trinity + dh_pysupport -pfusion-icon-trinity dh_icons -- cgit v1.2.1