# # spec file for package python-pyvmomi # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # 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/ # Name: python-pyvmomi Version: 6.5 Release: 0 Summary: VMware vSphere Python SDK License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/vmware/pyvmomi Source: https://pypi.io/packages/source/p/pyvmomi/pyvmomi-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-requests >= 2.3.0 BuildRequires: python-setuptools BuildRequires: python-six >= 1.7.3 BuildRequires: python-testtools >= 0.9.34 BuildRequires: python-vcrpy Requires: python-requests >= 2.3.0 Requires: python-six >= 1.7.3 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description pyVmomi is the Python SDK for the VMware vSphere API that allows you to manage ESX, ESXi, and vCenter. %prep %setup -q -n pyvmomi-%{version} # 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}/pyVim %{python_sitelib}/pyVmomi %{python_sitelib}/pyvmomi-%{version}-py%{py_ver}.egg-info %changelog