2013-01-11 14:22:42 +00:00
|
|
|
#
|
2016-09-05 08:27:50 +00:00
|
|
|
# spec file for package python-cinderclient
|
2013-01-11 14:22:42 +00:00
|
|
|
#
|
2025-11-09 12:50:56 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
2013-01-11 14:22:42 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2019-04-08 12:59:25 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-01-11 14:22:42 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2025-11-09 12:50:56 +00:00
|
|
|
%global pythons %{primary_python}
|
2016-09-05 08:27:50 +00:00
|
|
|
Name: python-cinderclient
|
2025-11-09 12:50:56 +00:00
|
|
|
Version: 9.8.0
|
2013-01-11 14:22:42 +00:00
|
|
|
Release: 0
|
2016-08-01 18:46:57 +00:00
|
|
|
Summary: Python API and CLI for OpenStack Cinder
|
2013-04-21 17:56:15 +00:00
|
|
|
License: Apache-2.0
|
2013-01-11 14:22:42 +00:00
|
|
|
Group: Development/Languages/Python
|
2021-05-02 17:17:23 +00:00
|
|
|
URL: https://docs.openstack.org/python-cinderclient
|
2025-11-09 12:50:56 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/python-cinderclient/python_cinderclient-%{version}.tar.gz
|
|
|
|
|
BuildRequires: %{python_module PrettyTable >= 0.7.2}
|
|
|
|
|
BuildRequires: %{python_module ddt}
|
|
|
|
|
BuildRequires: %{python_module fixtures}
|
|
|
|
|
BuildRequires: %{python_module keystoneauth1 >= 5.9.0}
|
|
|
|
|
BuildRequires: %{python_module oslo.serialization}
|
|
|
|
|
BuildRequires: %{python_module oslo.utils >= 4.8.0}
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module requests >= 2.25.1}
|
|
|
|
|
BuildRequires: %{python_module requests-mock}
|
|
|
|
|
BuildRequires: %{python_module stestr}
|
|
|
|
|
BuildRequires: %{python_module testtools}
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
2016-08-01 18:46:57 +00:00
|
|
|
BuildRequires: openstack-macros
|
2025-11-09 12:50:56 +00:00
|
|
|
Requires: python-Babel
|
|
|
|
|
Requires: python-PrettyTable >= 0.7.2
|
|
|
|
|
Requires: python-keystoneauth1 >= 5.9.0
|
|
|
|
|
Requires: python-oslo.i18n >= 5.0.1
|
|
|
|
|
Requires: python-oslo.utils >= 4.8.0
|
|
|
|
|
Requires: python-requests >= 2.25.1
|
2013-01-11 14:22:42 +00:00
|
|
|
BuildArch: noarch
|
2025-11-09 12:50:56 +00:00
|
|
|
%python_subpackages
|
2013-01-11 14:22:42 +00:00
|
|
|
|
|
|
|
|
%description
|
2016-08-01 18:46:57 +00:00
|
|
|
This is a client for the OpenStack Cinder API (Block Storage. There's a
|
|
|
|
|
Python API (the cinderclient module), and a command-line script (cinder).
|
|
|
|
|
Each implements 100% of the OpenStack Cinder API.
|
2013-01-11 14:22:42 +00:00
|
|
|
|
2018-01-16 22:01:08 +00:00
|
|
|
%package -n python-cinderclient-doc
|
2017-02-13 11:14:13 +00:00
|
|
|
Summary: Documentation for OpenStack Cinder API Client
|
2017-12-20 09:36:17 +00:00
|
|
|
Group: Documentation/HTML
|
2019-10-09 12:57:21 +00:00
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
|
BuildRequires: python3-openstackdocstheme
|
|
|
|
|
BuildRequires: python3-reno
|
2013-01-11 14:22:42 +00:00
|
|
|
|
2018-01-16 22:01:08 +00:00
|
|
|
%description -n python-cinderclient-doc
|
2016-08-01 18:46:57 +00:00
|
|
|
This is a client for the OpenStack Cinder API (Block Storage. There's a
|
|
|
|
|
Python API (the cinderclient module), and a command-line script (cinder).
|
|
|
|
|
Each implements 100% of the OpenStack Cinder API.
|
|
|
|
|
This package contains auto-generated documentation.
|
2013-01-11 14:22:42 +00:00
|
|
|
|
|
|
|
|
%prep
|
2025-11-09 12:50:56 +00:00
|
|
|
%autosetup -p1 -n python_cinderclient-%{version}
|
2013-01-11 14:22:42 +00:00
|
|
|
|
|
|
|
|
%build
|
2025-11-09 12:50:56 +00:00
|
|
|
%pyproject_wheel
|
2013-01-11 14:22:42 +00:00
|
|
|
|
2020-10-09 19:12:59 +00:00
|
|
|
export PYTHONPATH=.
|
2025-11-09 12:50:56 +00:00
|
|
|
PBR_VERSION=%{version} %sphinx_build -b html doc/source doc/build/html
|
|
|
|
|
PBR_VERSION=%{version} %sphinx_build -b man doc/source doc/build/man
|
2016-08-01 18:46:57 +00:00
|
|
|
# remove the sphinx-build leftovers
|
|
|
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
2013-01-11 14:22:42 +00:00
|
|
|
|
2016-08-01 18:46:57 +00:00
|
|
|
%install
|
2025-11-09 12:50:56 +00:00
|
|
|
%pyproject_install
|
|
|
|
|
|
2016-08-01 18:46:57 +00:00
|
|
|
# man page
|
|
|
|
|
install -p -D -m 644 doc/build/man/cinder.1 %{buildroot}%{_mandir}/man1/cinder.1
|
|
|
|
|
# bash completion
|
|
|
|
|
install -p -D -m 644 tools/cinder.bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/cinder.bash_completion
|
2013-01-11 14:22:42 +00:00
|
|
|
|
2016-08-01 18:46:57 +00:00
|
|
|
%check
|
2017-08-07 08:25:19 +00:00
|
|
|
rm cinderclient/tests/unit/test_shell.py
|
2023-03-07 06:57:48 +00:00
|
|
|
%{openstack_stestr_run}
|
2013-01-11 14:22:42 +00:00
|
|
|
|
2025-11-09 12:50:56 +00:00
|
|
|
%files %{python_files}
|
2016-08-01 18:46:57 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst ChangeLog
|
2025-11-09 12:50:56 +00:00
|
|
|
%{python_sitelib}/cinderclient
|
|
|
|
|
%{python_sitelib}/python_cinderclient-%{version}.dist-info
|
2020-03-11 17:09:23 +00:00
|
|
|
%{_bindir}/cinder
|
|
|
|
|
%{_mandir}/man1/cinder.1*
|
|
|
|
|
%{_sysconfdir}/bash_completion.d/cinder.bash_completion
|
2013-01-11 14:22:42 +00:00
|
|
|
|
2018-01-16 22:01:08 +00:00
|
|
|
%files -n python-cinderclient-doc
|
2016-08-01 18:46:57 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc doc/build/html
|
2013-01-11 14:22:42 +00:00
|
|
|
|
|
|
|
|
%changelog
|