[ovs-dev] [PATCH v3] debian: add openvswitch-python package
Sajjad Lateef
slateef at nicira.com
Mon Sep 20 15:12:47 PDT 2010
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 a5a6e05..dc18961 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 edecffd..fde640e 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,8 @@ Maintainer: Open vSwitch developers <dev at openvswitch.org>
Uploaders: Ben Pfaff <pfaffben at debian.org>, Simon Horman <horms at debian.org>
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 0cac634..6a7370e 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 0000000..055838c
--- /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 0000000..35d35e7
--- /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 49d562a..8e7ad1e 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
--
1.5.6.5
--
Sajjad Lateef
slateef at nicira.com
More information about the dev
mailing list