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

# spec file for package python
# Copyright (c) 2020 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

Name:           python3-vmware-nsx
Version:        15.0.1~dev107
Release:        0
Summary:        VMware-NSX family of Neutron plugins
License:        Apache-2.0
Group:          Development/Languages/Python
Source0:        vmware-nsx-master.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python3-pbr
Requires:       python3-PrettyTable
Requires:       python3-SQLAlchemy
Requires:       python3-decorator
Requires:       python3-eventlet
Requires:       python3-httplib2
Requires:       python3-mock
Requires:       python3-netaddr
Requires:       python3-openstackclient
Requires:       python3-osc-lib
Requires:       python3-oslo.concurrency
Requires:       python3-oslo.config
Requires:       python3-oslo.db
Requires:       python3-oslo.i18n
Requires:       python3-oslo.log
Requires:       python3-oslo.serialization
Requires:       python3-oslo.utils
Requires:       python3-six
Requires:       python3-stevedore
Requires:       python3-tenacity
Requires:       python3-vmware-nsxlib
BuildArch:      noarch

VMWare NSX plugins for the OpenStack Neutron component

%package -n python-vmware-nsx-doc
Summary:        Documentation for vmware-nsx
Group:          Documentation/HTML
BuildRequires:  fdupes
BuildRequires:  python3-Sphinx
BuildRequires:  python3-openstackdocstheme

%description -n python-vmware-nsx-doc
VMWare NSX plugins for the OpenStack Neutron component
This package contains the documentation

%autosetup -p1 -n vmware-nsx-15.0.1.dev107

# generate html docs
PBR_VERSION=15.0.1.dev107 %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/


%license LICENSE

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