forked from pool/python-pyvmomi
Accepting request 546709 from home:bmanojlovic:branches:devel:languages:python
- 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 OBS-URL: https://build.opensuse.org/request/show/546709 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyvmomi?expand=0&rev=6
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 29 15:01:48 UTC 2017 - boris@steki.net
|
||||
|
||||
- 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
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 15 11:57:13 UTC 2017 - hpj@urpla.net
|
||||
|
||||
|
@@ -17,53 +17,71 @@
|
||||
#
|
||||
|
||||
|
||||
# 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
|
||||
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}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-fixtures >= 1.3.0
|
||||
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
|
||||
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_module requests >= 2.3.0}
|
||||
Requires: %{python_module 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}
|
||||
%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 setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
#export PYTHONPATH=%{buildroot}%{python_sitelib}
|
||||
#cd %{buildroot}%{python_sitelib}
|
||||
python setup.py test
|
||||
#export PYTHONPATH=%%{buildroot}%%{python_sitelib}
|
||||
#cd %%{buildroot}%%{python_sitelib}
|
||||
%python_expand setup.py test
|
||||
%endif
|
||||
|
||||
%files
|
||||
%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
|
||||
%{python_sitelib}/pyvmomi-%{version}*-py%{py_ver}.egg-info
|
||||
|
||||
%changelog
|
||||
|
3
pyvmomi-6.5.0.2017.5-1.tar.gz
Normal file
3
pyvmomi-6.5.0.2017.5-1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c28292594281901e894c39a0c06b4126a9c019b3d804c47fb116472299dbb42d
|
||||
size 252077
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fa6a31c747a7d7042a2ad90e7895cab824ba036dcf26ff2f84374e150eac6dfa
|
||||
size 250996
|
Reference in New Issue
Block a user