Control: tags -1 + pathch

Fixing this for cluster-glue is relatively simple because, although
there is a build-dependency on python-central, it isn't actually used
for anything. The package just seems to contain a single Python file
that is used as a script.

Attached is a patch that switches to dh_python2 and actually compiles
the Python file on installation.

I've also dropped the build-dependency on python-dev because it should
only be needed for Python extension modules.

Thanks,

-- 
-- arthur - [email protected] - http://people.debian.org/~adejong --
diff -Nauwir cluster-glue-1.0.10+hg2722.orig/debian/changelog cluster-glue-1.0.10+hg2722/debian/changelog
--- cluster-glue-1.0.10+hg2722.orig/debian/changelog	2012-10-09 12:50:24.000000000 +0200
+++ cluster-glue-1.0.10+hg2722/debian/changelog	2013-07-05 14:21:59.000000000 +0200
@@ -1,3 +1,10 @@
+cluster-glue (1.0.10+hg2722-1.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload
+  * Switch from python-central to dh_python2
+
+ -- Arthur de Jong <[email protected]>  Fri, 05 Jul 2013 13:02:44 +0200
+
 cluster-glue (1.0.10+hg2722-1) unstable; urgency=low
 
   * New upstream version
diff -Nauwir cluster-glue-1.0.10+hg2722.orig/debian/control cluster-glue-1.0.10+hg2722/debian/control
--- cluster-glue-1.0.10+hg2722.orig/debian/control	2012-10-09 13:01:52.000000000 +0200
+++ cluster-glue-1.0.10+hg2722/debian/control	2013-07-05 14:24:00.000000000 +0200
@@ -3,12 +3,11 @@
 Priority: optional
 Maintainer: Debian HA Maintainers <[email protected]>
 Uploaders: Martin Loschwitz <[email protected]>, Anibal Monsalve Salazar <[email protected]>, Simon Horman <[email protected]>, Frederik Schüler <[email protected]>
-Build-Depends: debhelper (>= 7), libsnmp-dev, libglib2.0-dev, perl, net-tools, iputils-ping, python, psmisc, libnet1-dev, iproute, libtool, libcurl4-openssl-dev | libcurl3-openssl-dev, libxml2-dev, bison, flex, uuid-dev, lynx, libbz2-dev, zlib1g-dev, uuid-dev, libsensors4-dev | libsensors-dev, libltdl3-dev, swig, openssh-client, libgnutls-dev, python-central (>= 0.5), python-dev, libpam0g-dev, libncurses5-dev, psmisc, libopenhpi-dev, libopenipmi-dev, autoconf, automake, libtool, xsltproc, docbook-xsl, chrpath, docbook-xml, libdbus-glib-1-dev, libdbus-1-dev, help2man, libaio-dev, hardening-wrapper
+Build-Depends: debhelper (>= 7), libsnmp-dev, libglib2.0-dev, perl, net-tools, iputils-ping, python (>=2.6.6-3~), psmisc, libnet1-dev, iproute, libtool, libcurl4-openssl-dev | libcurl3-openssl-dev, libxml2-dev, bison, flex, uuid-dev, lynx, libbz2-dev, zlib1g-dev, uuid-dev, libsensors4-dev | libsensors-dev, libltdl3-dev, swig, openssh-client, libgnutls-dev, libpam0g-dev, libncurses5-dev, psmisc, libopenhpi-dev, libopenipmi-dev, autoconf, automake, libtool, xsltproc, docbook-xsl, chrpath, docbook-xml, libdbus-glib-1-dev, libdbus-1-dev, help2man, libaio-dev, hardening-wrapper
 Standards-Version: 3.9.3
 Homepage: http://hg.linux-ha.org/glue/
 Vcs-Hg: http://hg.debian.org/hg/debian-ha/cluster-glue
 Vcs-Browser: http://hg.debian.org/hg/debian-ha/cluster-glue
-XS-Python-Version: current
 
 Package: libcluster-glue
 Architecture: all
@@ -140,7 +139,7 @@
 
 Package: cluster-glue
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, python, libtimedate-perl, liblrm2 (= ${binary:Version}), libpils2 (= ${binary:Version}), libplumb2 (= ${binary:Version}), libplumbgpl2 (= ${binary:Version}), libstonith1 (= ${binary:Version})
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, ${python:Depends}, libtimedate-perl, liblrm2 (= ${binary:Version}), libpils2 (= ${binary:Version}), libplumb2 (= ${binary:Version}), libplumbgpl2 (= ${binary:Version}), libstonith1 (= ${binary:Version})
 Replaces: heartbeat (<= 2.99.2+sles11r9-5), heartbeat-common (<= 2.99.2+sles11r9-5), libheartbeat2 (<= 2.99.2+sles11r9-5)
 Conflicts: heartbeat (<= 2.99.2+sles11r9-5), heartbeat-common (<= 2.99.2+sles11r9-5), libheartbeat2 (<= 2.99.2+sles11r9-5)
 Description: Reusable cluster components for Linux HA
diff -Nauwir cluster-glue-1.0.10+hg2722.orig/debian/rules cluster-glue-1.0.10+hg2722/debian/rules
--- cluster-glue-1.0.10+hg2722.orig/debian/rules	2012-10-09 12:55:51.000000000 +0200
+++ cluster-glue-1.0.10+hg2722/debian/rules	2013-07-05 14:21:18.000000000 +0200
@@ -80,6 +80,8 @@
 	dh_installman
 	dh_lintian
 	dh_installinit --name=logd -pcluster-glue -u 'defaults 20 32'
+	dh_python2
+	dh_python2 /usr/lib/stonith/plugins/stonith2
 	dh_strip
 	dh_compress
 	dh_fixperms

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to