From c0c2489aabc0d19495909ac7391ea7427d9b458a Mon Sep 17 00:00:00 2001 From: Sajjad Lateef Date: Fri, 17 Sep 2010 14:53:42 -0700 Subject: [PATCH] debian: Add openvswitch-python package This installs the Python runtime bindings for Open vSwitch database into /usr/share/python-support/openvswitch-python/ovs and /usr/share/python-support/openvswitch-python/ovs/db Updated FSF address in copyright file Minor Whitespace re-formatting Removed prerm, preinst, postinst files for openvswitch-python --- debian/automake.mk | 2 ++ debian/control | 10 +++++++++- debian/copyright.in | 2 +- debian/openvswitch-python.dirs | 2 ++ debian/openvswitch-python.install | 2 ++ debian/rules | 1 + 6 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 debian/openvswitch-python.dirs create mode 100644 debian/openvswitch-python.install diff --git a/debian/automake.mk b/debian/automake.mk index a5a6e05a3..dc18961a4 100644 --- a/debian/automake.mk +++ b/debian/automake.mk @@ -29,6 +29,8 @@ EXTRA_DIST += \ debian/openvswitch-pki-server.install \ debian/openvswitch-pki-server.postinst \ debian/openvswitch-pki.postinst \ + debian/openvswitch-python.dirs \ + debian/openvswitch-python.install \ debian/openvswitch-switch.README.Debian \ debian/openvswitch-switch.dirs \ debian/openvswitch-switch.init \ diff --git a/debian/control b/debian/control index edecffda5..fde640eac 100644 --- a/debian/control +++ b/debian/control @@ -5,7 +5,8 @@ Maintainer: Open vSwitch developers Uploaders: Ben Pfaff , Simon Horman Build-Depends: debhelper (>= 5), autoconf (>= 2.64), automake1.10, libssl-dev, - pkg-config (>= 0.21), po-debconf, bzip2, openssl, python + pkg-config (>= 0.21), po-debconf, bzip2, openssl, python, + python-support (>= 0.8.4) Standards-Version: 3.9.1 Homepage: http://openvswitch.org/ @@ -94,3 +95,10 @@ Description: Debug symbols for Open vSwitch packages This package contains the debug symbols for all the other openvswitch-* packages. Install it to debug one of them or to examine a core dump produced by one of them. + +Package: openvswitch-python +Architecture: all +Depends: ${python:Depends}, openvswitch-switch (= ${binary:Version}) +Provides: ${python:Provides} +Description: Python bindings for Open vSwitch + This package contains the full Python bindings for Open vSwitch database. diff --git a/debian/copyright.in b/debian/copyright.in index 0cac63471..6a7370e39 100644 --- a/debian/copyright.in +++ b/debian/copyright.in @@ -46,7 +46,7 @@ License: You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. Copyright (c) 2005, 2007 XenSource Ltd. Copyright (c) 2010, Nicira Networks. diff --git a/debian/openvswitch-python.dirs b/debian/openvswitch-python.dirs new file mode 100644 index 000000000..055838c0b --- /dev/null +++ b/debian/openvswitch-python.dirs @@ -0,0 +1,2 @@ +usr/share/python-support/openvswitch-python/ovs/ +usr/share/python-support/openvswitch-python/ovs/db/ diff --git a/debian/openvswitch-python.install b/debian/openvswitch-python.install new file mode 100644 index 000000000..35d35e784 --- /dev/null +++ b/debian/openvswitch-python.install @@ -0,0 +1,2 @@ +python/ovs/*.py usr/share/python-support/openvswitch-python/ovs/ +python/ovs/db/*.py usr/share/python-support/openvswitch-python/ovs/db/ diff --git a/debian/rules b/debian/rules index 49d562ad7..8e7ad1e82 100755 --- a/debian/rules +++ b/debian/rules @@ -103,6 +103,7 @@ binary-common: dh_strip --dbg-package=openvswitch-dbg dh_compress dh_fixperms -X var/log/core + dh_pysupport dh_perl dh_makeshlibs dh_installdeb -- 2.43.0