File python-vmware-nsx.spec of Package python-vmware-nsx
#
# spec file for package python
#
# Copyright (c) 2020 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/
#
Name: python3-vmware-nsx
Version: 15.1.1~dev32
Release: 0
Summary: VMware-NSX family of Neutron plugins
License: Apache-2.0
Group: Development/Languages/Python
URL: https://launchpad.net/vmware-nsx
Source0: vmware-nsx-stable-train.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
%description
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
%prep
%autosetup -p1 -n vmware-nsx-15.1.1.dev32
%py_req_cleanup
%build
%{py3_build}
# generate html docs
PBR_VERSION=15.1.1.dev32 %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/
%install
%{py3_install}
%files
%license LICENSE
%{python3_sitelib}/vmware_nsx
%{python3_sitelib}/*.egg-info
%{_bindir}/neutron-check-nsx-config
%{_bindir}/nsxadmin
%{_bindir}/nsx-migration
%files -n python-vmware-nsx-doc
%license LICENSE
%doc README.rst doc/build/html
%changelog