File python-vmware-nsxlib.spec of Package python-vmware-nsxlib

#
# spec file for package python-vmware-nsxlib
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, 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/
#


Name:           python-vmware-nsxlib
Version:        11.0.4~dev7
Release:        0
Summary:        VMware NSX python library
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            http://launchpad.net/vmware-nsxlib
Source0:        vmware-nsxlib-stable-pike.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python-mock >= 2.0
BuildRequires:  python-neutron-lib >= 1.9.0
BuildRequires:  python-os-testr >= 0.8.0
BuildRequires:  python-oslo.log >= 3.22.0
BuildRequires:  python-oslotest >= 1.10.0
BuildRequires:  python-pbr >= 2.0.0
BuildRequires:  python-pyOpenSSL >= 0.14
BuildRequires:  python-requests-mock >= 1.1
BuildRequires:  python-testrepository >= 0.0.18
BuildRequires:  python-testresources >= 0.2.4
BuildRequires:  python-testscenarios >= 0.4
BuildRequires:  python-testtools >= 1.4.0
Requires:       python-enum34
Requires:       python-eventlet >= 0.18.2
Requires:       python-netaddr >= 0.7.13
Requires:       python-neutron-lib >= 1.9.0
Requires:       python-oslo.i18n >= 2.1.0
Requires:       python-oslo.log >= 3.22.0
Requires:       python-oslo.serialization >= 1.10.0
Requires:       python-oslo.service >= 1.10.0
Requires:       python-oslo.utils >= 3.20.0
Requires:       python-pyOpenSSL >= 0.14
Requires:       python-six >= 1.9.0
Requires:       python-tenacity >= 3.2.1
BuildArch:      noarch

%description
vmware-nsxlib is a python library that interfaces with VMWare NSX

%package -n python-vmware-nsxlib-doc
Summary:        Documentation for vmware-nsxlib
Group:          Documentation/HTML
BuildRequires:  fdupes
BuildRequires:  python-Sphinx
BuildRequires:  python-openstackdocstheme >= 1.16.0
BuildRequires:  python-oslosphinx >= 4.7.0

%description -n python-vmware-nsxlib-doc
vmware-nsxlib is a python library that interfaces with VMWare NSX
This package contains the documentation

%prep
%autosetup -p1 -n vmware-nsxlib-11.0.4.dev7
%py_req_cleanup
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg

%build
%{py2_build}
# generate html docs
%{__python2} setup.py build_sphinx
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%fdupes doc/build/html/

%install
%{py2_install}
# remove duplicates
%fdupes %{buildroot}%{python_sitelib}

%check
ostestr

%files
%defattr(-,root,root,-)
%license LICENSE
%{python_sitelib}/vmware_nsxlib
%{python_sitelib}/*.egg-info

%files -n python-vmware-nsxlib-doc
%license LICENSE
%doc README.rst doc/build/html

%changelog
openSUSE Build Service is sponsored by