b4703c9
%{?python_enable_dependency_generator}
b4703c9
b4703c9
%global srcname vconnector
b4703c9
%global sum     vSphere Connector Module for Python
b4703c9
b4703c9
Name:           python-%{srcname}
30fc18a
Version:        0.6.0
30fc18a
Release:        1%{?dist}
b4703c9
Summary:        %{sum}
b4703c9
b4703c9
# setup.py mentions BSD license
b4703c9
License:        BSD
b4703c9
URL:            https://github.com/dnaeon/py-%{srcname}
b4703c9
Source0:        %{pypi_source}#/%{srcname}-%{version}.tar.gz
b4703c9
b4703c9
BuildArch:      noarch
b4703c9
BuildRequires:  python%{python3_pkgversion}-devel
b4703c9
BuildRequires:  python%{python3_pkgversion}-setuptools
b4703c9
BuildRequires:  python%{python3_pkgversion}-docopt
b4703c9
BuildRequires:  python%{python3_pkgversion}-tabulate
b4703c9
BuildRequires:  python%{python3_pkgversion}-pyvmomi
b4703c9
BuildRequires:  help2man
b4703c9
b4703c9
%global _description \
f52ffca
vConnector is a wrapper module around pyVmomi vSphere bindings,\
f52ffca
which provides methods¸ for connecting and retrieving of objects\
f52ffca
from a vSphere server.\
b4703c9
\
b4703c9
The purpose of vConnector is to provide the basic primitives for\
b4703c9
building complex applications. vConnector can also be used for\
b4703c9
managing the user/pass/host credentials for your vSphere\
b4703c9
environment using an SQLite database, which in turn can be shared\
b4703c9
between multiple applications requiring access to your vSphere\
b4703c9
environment through a common interface.
b4703c9
b4703c9
%description
b4703c9
%{_description}
b4703c9
b4703c9
%package     -n python%{python3_pkgversion}-%{srcname}
b4703c9
Summary:        %{sum}
b4703c9
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
b4703c9
# no magic dependencies in epel
b4703c9
%if %{undefined __pythondist_requires}
b4703c9
Requires:       python%{python3_pkgversion}-pyvmomi
b4703c9
Requires:       python%{python3_pkgversion}-tabulate
b4703c9
Requires:       python%{python3_pkgversion}-docopt
b4703c9
%endif
b4703c9
b4703c9
%description -n python%{python3_pkgversion}-%{srcname}
b4703c9
%{_description}
b4703c9
b4703c9
b4703c9
%prep
b4703c9
%autosetup -n%{srcname}-%{version}
b4703c9
# fix shebang, https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython
b4703c9
sed -i 1s:python\$:%{__python3}: src/%{srcname}-cli
b4703c9
b4703c9
%build
b4703c9
%py3_build
b4703c9
b4703c9
%install
b4703c9
%py3_install
b4703c9
# W: no-manual-page-for-binary
b4703c9
mkdir -p %{buildroot}%{_mandir}/man1
b4703c9
help2man src/%{srcname}-cli >%{buildroot}%{_mandir}/man1/%{srcname}-cli.1
b4703c9
b4703c9
%check
b4703c9
# run cli to see if any error on stderr
b4703c9
src/%{srcname}-cli -v
b4703c9
b4703c9
b4703c9
%files -n python%{python3_pkgversion}-%{srcname}
b4703c9
%license LICENSE
b4703c9
%doc README.rst
b4703c9
%{python3_sitelib}/%{srcname}/
b4703c9
%{python3_sitelib}/%{srcname}-%{version}-py3.?.egg-info/
b4703c9
%{_bindir}/%{srcname}-cli
b4703c9
%{_mandir}/man1/%{srcname}-cli.1*
b4703c9
b4703c9
b4703c9
%changelog
30fc18a
* Sun Nov 17 2019 Raphael Groner <projects.rg@smart.ms> - 0.6.0-1
30fc18a
- new version
30fc18a
c77bfd8
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.3-6
c77bfd8
- Rebuilt for Python 3.8.0rc1 (#1748018)
c77bfd8
4ebfb40
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.3-5
4ebfb40
- Rebuilt for Python 3.8
4ebfb40
f52ffca
* Thu Aug 01 2019 Raphael Groner <projects.rg@smart.ms> - 0.5.3-4
f52ffca
- drop brand
f52ffca
c1f9fd3
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-3
c1f9fd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c1f9fd3
733dd0d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-2
733dd0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
733dd0d
b4703c9
* Sun Dec 16 2018 Raphael Groner <projects.rg@smart.ms> - 0.5.3-1
b4703c9
- initial