diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..114230e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-pyvmomi (5.5.0-1) unstable; urgency=low + + * Initial release. (Closes: #738325) + + -- Thomas Goirand Sun, 09 Feb 2014 14:56:33 +0800 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..caa43b2 --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: python-pyvmomi +Section: python +Priority: optional +Maintainer: PKG OpenStack +Uploaders: Julien Danjou , + Thomas Goirand , + Mehdi Abaakouk +Build-Depends: debhelper (>= 9), python-setuptools, python-all (>= 2.6.6-3~) +Standards-Version: 3.9.5 +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/python-pyvmomi.git +Vcs-Git: git://anonscm.debian.org/openstack/python-pyvmomi.git +Homepage: https://github.com/vmware/pyvmomi + +Package: python-pyvmomi +Architecture: all +Pre-Depends: dpkg (>= 1.15.6~) +Depends: ${python:Depends}, ${misc:Depends} +Description: VMware vSphere Python SDK - Python 2.x + pyVmomi is a Python SDK for the VMware vSphere API that allows you to + manipulate ESX, ESXi, and vCenter using scripts. + . + This package contains the Python 2.x module. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..e7d7588 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,28 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: pyvmomi +Source: https://github.com/vmware/pyvmomi + +Files: debian/* +Copyright: (c) 2013, Thomas Goirand +License: Apache-2 + +Files: * +Copyright: (c) 2013, VMware, Inc. +License: Apache-2 + +License: Apache-2 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian-based systems the full text of the Apache version 2.0 license + can be found in /usr/share/common-licenses/Apache-2.0. + diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..ccf8702 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,8 @@ +[DEFAULT] +upstream-branch = master +debian-branch = debian/unstable +upstream-tag = %(version)s +compression = xz + +[git-buildpackage] +export-dir = ../build-area/ diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ddde0c7 --- /dev/null +++ b/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f + +PYTHONS:=$(shell pyversions -vr) + +UPSTREAM_GIT = git://github.com/vmware/pyvmomi.git +-include /usr/share/openstack-pkg-tools/pkgos.make + +%: + dh $@ --buildsystem=python_distutils --with python2 + +override_dh_install: + set -e && for pyvers in $(PYTHONS); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/python-pyvmomi; \ + rm $(CURDIR)/debian/python-pyvmomi/usr/lib/python$$pyvers/dist-packages/pyvmomi-5.5.0.egg-info/.gitignore ; \ + done + +ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) +override_dh_auto_test: + set -e && for pyvers in $(PYTHONS); do \ + python$$pyvers setup.py test ; \ + done +endif diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 0000000..cb61fa5 --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore = "^[^/]*[.]egg-info/" diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..15dd80e --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts="uversionmangle=s/^v//" \ +https://github.com/vmware/pyvmomi/tags .*/(\d[\d\.]+)\.tar\.gz