Blob Blame Raw

%global srcname vconnector
%global sum     vSphere Connector Module for Python

Name:           python-%{srcname}
Version:        0.6.0
Release:        1%{?dist}
Summary:        %{sum}

# mentions BSD license
License:        BSD
URL:  {srcname}
Source0:        %{pypi_source}#/%{srcname}-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python%{python3_pkgversion}-devel
BuildRequires:  python%{python3_pkgversion}-setuptools
BuildRequires:  python%{python3_pkgversion}-docopt
BuildRequires:  python%{python3_pkgversion}-tabulate
BuildRequires:  python%{python3_pkgversion}-pyvmomi
BuildRequires:  help2man

%global _description \
vConnector is a wrapper module around pyVmomi vSphere bindings,\
which provides methods¸ for connecting and retrieving of objects\
from a vSphere server.\
The purpose of vConnector is to provide the basic primitives for\
building complex applications. vConnector can also be used for\
managing the user/pass/host credentials for your vSphere\
environment using an SQLite database, which in turn can be shared\
between multiple applications requiring access to your vSphere\
environment through a common interface.


%package     -n python%{python3_pkgversion}-%{srcname}
Summary:        %{sum}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
# no magic dependencies in epel
%if %{undefined __pythondist_requires}
Requires:       python%{python3_pkgversion}-pyvmomi
Requires:       python%{python3_pkgversion}-tabulate
Requires:       python%{python3_pkgversion}-docopt

%description -n python%{python3_pkgversion}-%{srcname}

%autosetup -n%{srcname}-%{version}
# fix shebang,
sed -i 1s:python\$:%{__python3}: src/%{srcname}-cli


# W: no-manual-page-for-binary
mkdir -p %{buildroot}%{_mandir}/man1
help2man src/%{srcname}-cli >%{buildroot}%{_mandir}/man1/%{srcname}-cli.1

# run cli to see if any error on stderr
src/%{srcname}-cli -v

%files -n python%{python3_pkgversion}-%{srcname}
%license LICENSE
%doc README.rst

* Sun Nov 17 2019 Raphael Groner <> - 0.6.0-1
- new version

* Thu Oct 03 2019 Miro Hrončok <> - 0.5.3-6
- Rebuilt for Python 3.8.0rc1 (#1748018)

* Mon Aug 19 2019 Miro Hrončok <> - 0.5.3-5
- Rebuilt for Python 3.8

* Thu Aug 01 2019 Raphael Groner <> - 0.5.3-4
- drop brand

* Fri Jul 26 2019 Fedora Release Engineering <> - 0.5.3-3
- Rebuilt for

* Sat Feb 02 2019 Fedora Release Engineering <> - 0.5.3-2
- Rebuilt for

* Sun Dec 16 2018 Raphael Groner <> - 0.5.3-1
- initial