forked from pool/python-pyvmomi
- specfile: * update copyright year * don't use python_module for Requires - updated to release v6.5.0.2017.5-1 + Fix SoapAdapter serializer to support serializing unicode chars + Remove custom getattr in _HTTPSConnection + Add user-agent header when connecting to vsphere - moved to single spec logic to build py2 and py3 package - fix build: add python-fixtures to build dependencies - Update to version 6.5 * Spec bump to support vSphere 6.5. * Include EAM bindings to support vSphere EAM service. * Fixed server thumbprint verification. * Fixed sslcontext creation in sample code. - Update to version 6.0.0.2016.4 * Python3 related bug fixes. * Include task.py utility class. - Changes from version 6.0.0 * Spec bump to support vSphere 6.0 server objects and types vSphere 6.0 U1 spec is used * New ssl context parameter in Connect.py and SoapAdapter.py to support passing various ssl options while connecting to vSphere. * Drop python 2.6 support. * Critical bug fixes. - Remove patch: pyvmomi-git20141104-new.diff (fixed upstream) - Fix Source-Url - add requires for python-six and python-requests - version 5.5.0.2014.1.1: initial build - apply asorted fixes from todays git tree OBS-URL: https://build.opensuse.org/request/show/582250 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyvmomi?expand=0&rev=7
88 lines
2.6 KiB
RPMSpec
88 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-pyvmomi
|
|
#
|
|
# Copyright (c) 2018 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/
|
|
#
|
|
|
|
|
|
# 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
|
|
|
|
Name: python-pyvmomi
|
|
Version: 6.5.0.2017.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}%{?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}
|
|
Requires: python-requests >= 2.3.0
|
|
Requires: python-six >= 1.7.3
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%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}%{?version_suffix}
|
|
# 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_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%if %{with test}
|
|
%check
|
|
#export PYTHONPATH=%%{buildroot}%%{python_sitelib}
|
|
#cd %%{buildroot}%%{python_sitelib}
|
|
%python_expand setup.py test
|
|
%endif
|
|
|
|
%files %python_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
|