2015-01-16 15:00:27 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyvmomi
|
|
|
|
#
|
2015-05-17 12:09:34 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-01-16 15:00:27 +00:00
|
|
|
# Copyright (c) 2014 LISA GmbH, Bingen, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2015-05-17 12:09:34 +00:00
|
|
|
#
|
2015-01-16 15:00:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
Name: python-pyvmomi
|
|
|
|
Version: 5.5.0.2014.1.1
|
|
|
|
Release: 0
|
|
|
|
Summary: VMware vSphere Python SDK
|
2015-05-17 12:09:34 +00:00
|
|
|
License: Apache-2.0
|
2015-01-16 15:00:27 +00:00
|
|
|
Group: Development/Languages/Python
|
2015-05-17 12:09:34 +00:00
|
|
|
Url: https://github.com/vmware/pyvmomi
|
2015-01-16 15:00:27 +00:00
|
|
|
Source: https://pypi.python.org/packages/source/p/pyvmomi/pyvmomi-%{version}.tar.gz
|
2015-05-17 12:09:34 +00:00
|
|
|
Patch: pyvmomi-git20141104-new.diff
|
|
|
|
Requires: python-requests >= 2.3.0
|
|
|
|
Requires: python-six >= 1.7.3
|
2015-01-16 15:00:27 +00:00
|
|
|
BuildRequires: python-devel
|
2015-05-17 12:09:34 +00:00
|
|
|
BuildRequires: python-requests >= 2.3.0
|
2015-01-16 15:00:27 +00:00
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python-six >= 1.7.3
|
|
|
|
BuildRequires: python-testtools >= 0.9.34
|
2015-05-17 12:09:34 +00:00
|
|
|
BuildRequires: python-vcrpy
|
2015-01-16 15:00:27 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%else
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
pyVmomi is the Python SDK for the VMware vSphere API that allows you to manage
|
|
|
|
ESX, ESXi, and vCenter.
|
|
|
|
|
|
|
|
Getting Started ================ To get started, check out the samples project
|
|
|
|
at:
|
|
|
|
|
|
|
|
* http://vmware.github.io/pyvmomi-community-samples/
|
|
|
|
|
|
|
|
* community discussion on IRC freenode.net channels `#pyvmomi and #pyvmomi-dev
|
|
|
|
* <http://webchat.freenode.net/?channels=#pyvmomi,#pyvmomi-dev>`_
|
|
|
|
|
|
|
|
* community email is on `nabble <http://pyvmomi.2338814.n4.nabble.com>`_
|
|
|
|
|
|
|
|
For general language neutral documentation of vSphere Management API see:
|
|
|
|
|
|
|
|
* `vSphere WS SDK API Docs
|
|
|
|
* <http://pubs.vmware.com/vsphere-55/topic/com.vmware.wssdk.apiref.doc/right-pane.html>`_
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pyvmomi-%{version}
|
|
|
|
%patch -p1
|
|
|
|
# we don't want to install any of these
|
|
|
|
sed -i '/ data_files/,+1d' setup.py
|
|
|
|
# fix line breaks in text files
|
|
|
|
sed -i 's/\r//' *.txt
|
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
|
|
|
%check
|
|
|
|
python setup.py test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE.txt NOTICE.txt README.rst
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|