File python-vmware-nsxlib.spec of Package python-vmware-nsxlib
#
# spec file for package python-vmware-nsxlib
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%global with_doc 0
Name: python-vmware-nsxlib
Version: 15.0.8~dev172
Release: 0
Summary: VMware NSX python library
License: Apache-2.0
Group: Development/Languages/Python
URL: https://docs.openstack.org/vmware-nsxlib
Source0: vmware-nsxlib-master.tar.gz
BuildRequires: fdupes
BuildRequires: openstack-macros
BuildRequires: python3-decorator
BuildRequires: python3-eventlet
BuildRequires: python3-mock
BuildRequires: python3-neutron-lib
BuildRequires: python3-oslo.log
BuildRequires: python3-oslo.service
BuildRequires: python3-oslotest
BuildRequires: python3-pyOpenSSL
BuildRequires: python3-requests-mock
BuildRequires: python3-stestr
BuildRequires: python3-tenacity
BuildRequires: python3-testrepository
BuildRequires: python3-testresources
BuildRequires: python3-testscenarios
BuildRequires: python3-testtools
BuildArch: noarch
%description
vmware-nsxlib is a python library that interfaces with VMWare NSX
%package -n python3-vmware-nsxlib
Summary: VMware NSX python library
Requires: python3-decorator
Requires: python3-eventlet
Requires: python3-netaddr
Requires: python3-neutron-lib
Requires: python3-oslo.i18n
Requires: python3-oslo.log
Requires: python3-oslo.serialization
Requires: python3-oslo.service
Requires: python3-oslo.utils
Requires: python3-pyOpenSSL
Requires: python3-six
Requires: python3-tenacity
%description -n python3-vmware-nsxlib
vmware-nsxlib is a python library that interfaces with VMWare NSX
This package contains the Python 3.x module.
%if 0%{?with_doc}
%package -n python-vmware-nsxlib-doc
Summary: Documentation for vmware-nsxlib
Group: Documentation/HTML
BuildRequires: python3-Sphinx
BuildRequires: python3-oslosphinx
%description -n python-vmware-nsxlib-doc
vmware-nsxlib is a python library that interfaces with VMWare NSX
This package contains the documentation
%endif
%prep
%autosetup -p1 -n vmware-nsxlib-15.0.8.dev172
%py_req_cleanup
%build
%{py3_build}
%if 0%{?with_doc}
# generate html docs
PBR_VERSION=15.0.8.dev172 %sphinx_build -b html doc/source doc/build/html
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%fdupes doc/build/html/
%endif
%install
%{py3_install}
# remove duplicates
%fdupes %{buildroot}%{python3_sitelib}
%check
python3 -m stestr.cli run
%files -n python3-vmware-nsxlib
%license LICENSE
%{python3_sitelib}/vmware_nsxlib
%{python3_sitelib}/*.egg-info
%if 0%{?with_doc}
%files -n python-vmware-nsxlib-doc
%license LICENSE
%doc README.rst doc/build/html
%endif
%changelog