forked from vmware/pyvmomi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-pymomi.spec
More file actions
41 lines (31 loc) · 1.04 KB
/
python-pymomi.spec
File metadata and controls
41 lines (31 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-pyvmomi
Version: 999.comodit.5.5.0
Release: 1%{dist}
Url: https://github.com/vmware/pyvmomi
Summary: VMware vSphere Python SDK
License: Apache 2
Group: Development/Languages/Python
Source: %{name}-%{version}-1.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel python-setuptools
BuildArch: noarch
%description
pyVmomi is a Python SDK for the VMware vSphere API that allows you to
manipulate ESX, ESXi, and vCenter using scripts.
%prep
%setup -q -c
%build
export CFLAGS="%{optflags}"
%{__python} setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc License.txt README.md Notice.txt MANIFEST.in
%python_sitelib/pyVmomi*
%python_sitelib/pyVim*
%python_sitelib/*.egg-info
%changelog