debian: Add openvswitch-python package
authorSajjad Lateef <slateef@nicira.com>
Fri, 17 Sep 2010 21:53:42 +0000 (14:53 -0700)
committerSajjad Lateef <slateef@nicira.com>
Mon, 20 Sep 2010 22:10:25 +0000 (15:10 -0700)
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
debian/control
debian/copyright.in
debian/openvswitch-python.dirs [new file with mode: 0644]
debian/openvswitch-python.install [new file with mode: 0644]
debian/rules

index a5a6e05..dc18961 100644 (file)
@@ -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 \
index edecffd..fde640e 100644 (file)
@@ -5,7 +5,8 @@ Maintainer: Open vSwitch developers <dev@openvswitch.org>
 Uploaders: Ben Pfaff <pfaffben@debian.org>, Simon Horman <horms@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.
index 0cac634..6a7370e 100644 (file)
@@ -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 (file)
index 0000000..055838c
--- /dev/null
@@ -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 (file)
index 0000000..35d35e7
--- /dev/null
@@ -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/
index 49d562a..8e7ad1e 100755 (executable)
@@ -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