File python-troveclient.spec of Package python-troveclient
#
# spec file for package python-troveclient
#
# Copyright (c) 2023 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: python-troveclient
Version: 7.1.1
Release: 0
Epoch: 0
Summary: Client library for OpenStack DBaaS API
License: Apache-2.0
Group: Development/Languages/Python
URL: https://docs.openstack.org/python-troveclient
Source0: https://files.pythonhosted.org/packages/source/p/python-troveclient/python-troveclient-7.1.1.tar.gz
BuildRequires: openstack-macros
BuildRequires: python3-mistralclient
BuildRequires: python3-openstackclient
BuildRequires: python3-swiftclient
BuildRequires: python39-PrettyTable
BuildRequires: python39-httplib2
BuildRequires: python39-keystoneauth1
BuildRequires: python39-mock
BuildRequires: python39-oslo.utils
BuildRequires: python39-pbr
BuildRequires: python39-requests
BuildRequires: python39-requests-mock
BuildRequires: python39-simplejson
BuildRequires: python39-sphinxcontrib-apidoc
BuildRequires: python39-stestr
BuildRequires: python39-testscenarios
BuildRequires: python39-testtools
BuildArch: noarch
%description
This is a client for the Trove API. There's a Python API (the
troveclient module), and a command-line script (trove). Each
implements 100% (or less ;) ) of the Trove API.
%package -n python3-troveclient
Summary: Client library for OpenStack DBaaS API
Requires: python3-mistralclient
Requires: python3-openstackclient
Requires: python3-swiftclient
Requires: python39-Babel
Requires: python39-PrettyTable
Requires: python39-keystoneauth1
Requires: python39-osc-lib
Requires: python39-oslo.i18n
Requires: python39-oslo.utils
Requires: python39-pbr
Requires: python39-requests
Requires: python39-simplejson
Requires: python39-six
%description -n python3-troveclient
This is a client for the Trove API. There's a Python API (the
troveclient module), and a command-line script (trove). Each
implements 100% (or less ;) ) of the Trove API.
This package contains the Python 3.x module.
%package -n python-troveclient-doc
Summary: Documentation for OpenStack DBaaS API.
Group: Documentation/HTML
BuildRequires: python39-Sphinx
BuildRequires: python39-openstackdocstheme
%description -n python-troveclient-doc
Documentation for the client library for interacting with Openstack
DBaaS API.
%prep
%autosetup -p1 -n python-troveclient-7.1.1
%py_req_cleanup
%build
%{py3_build}
# Generate html docs
PBR_VERSION=7.1.1 %sphinx_build -b html doc/source doc/build/html
# Remove the Sphinx-build leftovers
rm -r doc/build/html/.{doctrees,buildinfo}
%install
%{py3_install}
%check
python3 -m stestr.cli run
%files -n python3-troveclient
%doc README.rst
%license LICENSE
%{python3_sitelib}/python_troveclient-*.egg-info
%{python3_sitelib}/troveclient
%{_bindir}/trove
%files -n python-troveclient-doc
%doc doc/build/html
%license LICENSE
%changelog