2015-01-16 15:00:27 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyvmomi
|
|
|
|
#
|
2018-03-04 07:06:35 +00:00
|
|
|
# Copyright (c) 2018 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
|
|
|
|
|
|
|
|
2017-11-30 14:35:50 +00:00
|
|
|
# They have released version to hotfix issue so this "thing"
|
|
|
|
%define hotfix 1
|
|
|
|
%if %{defined hotfix}
|
|
|
|
%define version_suffix -%{hotfix}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%bcond_with test
|
|
|
|
|
2015-01-16 15:00:27 +00:00
|
|
|
Name: python-pyvmomi
|
2017-11-30 14:35:50 +00:00
|
|
|
Version: 6.5.0.2017.5
|
2015-01-16 15:00:27 +00:00
|
|
|
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
|
2017-11-30 14:35:50 +00:00
|
|
|
Source: https://pypi.io/packages/source/p/pyvmomi/pyvmomi-%{version}%{?version_suffix}.tar.gz
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module fixtures >= 1.3.0}
|
|
|
|
BuildRequires: %{python_module requests >= 2.3.0}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module six >= 1.7.3}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module testtools >= 0.9.34}
|
|
|
|
%endif
|
|
|
|
BuildRequires: %{python_module vcrpy}
|
2018-03-04 07:06:35 +00:00
|
|
|
Requires: python-requests >= 2.3.0
|
|
|
|
Requires: python-six >= 1.7.3
|
2015-01-16 15:00:27 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2017-11-30 14:35:50 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
2015-01-16 15:00:27 +00:00
|
|
|
%description
|
|
|
|
pyVmomi is the Python SDK for the VMware vSphere API that allows you to manage
|
|
|
|
ESX, ESXi, and vCenter.
|
|
|
|
|
|
|
|
%prep
|
2017-11-30 14:35:50 +00:00
|
|
|
%setup -q -n pyvmomi-%{version}%{?version_suffix}
|
2015-01-16 15:00:27 +00:00
|
|
|
# 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
|
2017-11-30 14:35:50 +00:00
|
|
|
%python_build
|
2015-01-16 15:00:27 +00:00
|
|
|
|
|
|
|
%install
|
2017-11-30 14:35:50 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2015-01-16 15:00:27 +00:00
|
|
|
|
2017-11-30 14:35:50 +00:00
|
|
|
%if %{with test}
|
2015-01-16 15:00:27 +00:00
|
|
|
%check
|
2017-11-30 14:35:50 +00:00
|
|
|
#export PYTHONPATH=%%{buildroot}%%{python_sitelib}
|
|
|
|
#cd %%{buildroot}%%{python_sitelib}
|
|
|
|
%python_expand setup.py test
|
|
|
|
%endif
|
2015-01-16 15:00:27 +00:00
|
|
|
|
2017-11-30 14:35:50 +00:00
|
|
|
%files %python_files
|
2015-01-16 15:00:27 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE.txt NOTICE.txt README.rst
|
2016-09-21 11:08:13 +00:00
|
|
|
%{python_sitelib}/pyVim
|
|
|
|
%{python_sitelib}/pyVmomi
|
2017-11-30 14:35:50 +00:00
|
|
|
%{python_sitelib}/pyvmomi-%{version}*-py%{py_ver}.egg-info
|
2015-01-16 15:00:27 +00:00
|
|
|
|
|
|
|
%changelog
|