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
|
|
|
#
|
2022-05-24 20:53:41 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2016-09-05 08:27:50 +00:00
|
|
|
Name: python-cinderclient
|
2021-10-26 21:50:17 +00:00
|
|
|
Version: 8.1.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
|
2021-10-26 21:50:17 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/python-cinderclient/python-cinderclient-8.1.0.tar.gz
|
2016-08-01 18:46:57 +00:00
|
|
|
BuildRequires: openstack-macros
|
2021-05-02 17:17:23 +00:00
|
|
|
BuildRequires: python3-PrettyTable >= 0.7.2
|
2018-09-01 08:53:45 +00:00
|
|
|
BuildRequires: python3-ddt
|
|
|
|
|
BuildRequires: python3-fixtures
|
2021-05-02 17:17:23 +00:00
|
|
|
BuildRequires: python3-keystoneauth1 >= 4.3.1
|
2018-09-01 08:53:45 +00:00
|
|
|
BuildRequires: python3-oslo.serialization
|
2021-05-02 17:17:23 +00:00
|
|
|
BuildRequires: python3-oslo.utils >= 4.8.0
|
|
|
|
|
BuildRequires: python3-pbr >= 5.5.0
|
|
|
|
|
BuildRequires: python3-requests >= 2.25.1
|
2018-09-01 08:53:45 +00:00
|
|
|
BuildRequires: python3-requests-mock
|
2019-04-08 12:59:25 +00:00
|
|
|
BuildRequires: python3-stestr
|
2018-09-01 08:53:45 +00:00
|
|
|
BuildRequires: python3-testtools
|
2013-01-11 14:22:42 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
2020-03-11 17:09:23 +00:00
|
|
|
%package -n python3-cinderclient
|
|
|
|
|
Summary: Python API and CLI for OpenStack Cinder
|
2020-10-09 19:12:59 +00:00
|
|
|
Requires: python3-Babel
|
2021-05-02 17:17:23 +00:00
|
|
|
Requires: python3-PrettyTable >= 0.7.2
|
|
|
|
|
Requires: python3-keystoneauth1 >= 4.3.1
|
|
|
|
|
Requires: python3-oslo.i18n >= 5.0.1
|
|
|
|
|
Requires: python3-oslo.utils >= 4.8.0
|
|
|
|
|
Requires: python3-requests >= 2.25.1
|
2020-03-11 17:09:23 +00:00
|
|
|
Requires: python3-simplejson >= 3.5.1
|
2020-03-23 12:24:56 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
Obsoletes: python2-cinderclient < 6.0.0
|
|
|
|
|
%endif
|
2020-03-11 17:09:23 +00:00
|
|
|
|
|
|
|
|
%description -n python3-cinderclient
|
|
|
|
|
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 the Python 3.x module.
|
|
|
|
|
|
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
|
2021-10-26 21:50:17 +00:00
|
|
|
%autosetup -p1 -n python-cinderclient-8.1.0
|
2017-02-13 11:14:13 +00:00
|
|
|
%py_req_cleanup
|
2013-01-11 14:22:42 +00:00
|
|
|
|
|
|
|
|
%build
|
2020-03-11 17:09:23 +00:00
|
|
|
%{py3_build}
|
2013-01-11 14:22:42 +00:00
|
|
|
|
2020-10-09 19:12:59 +00:00
|
|
|
export PYTHONPATH=.
|
2021-10-26 21:50:17 +00:00
|
|
|
PBR_VERSION=8.1.0 %sphinx_build -b html doc/source doc/build/html
|
|
|
|
|
PBR_VERSION=8.1.0 %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
|
2020-03-11 17:09:23 +00:00
|
|
|
%{py3_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
|
2020-03-11 17:09:23 +00:00
|
|
|
python3 -m stestr.cli run
|
2013-01-11 14:22:42 +00:00
|
|
|
|
2020-03-11 17:09:23 +00:00
|
|
|
%files -n python3-cinderclient
|
2016-08-01 18:46:57 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst ChangeLog
|
2020-03-11 17:09:23 +00:00
|
|
|
%{python3_sitelib}/cinderclient
|
|
|
|
|
%{python3_sitelib}/*.egg-info
|
|
|
|
|
%{_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
|