- Implement metadata for backup create/update - Support skip-validation for quota update - Bump Max API version to 3.48 - Enable H306 - Avoid tox_install.sh for constraints support - Enable F811, F821 - Remove unused attribute when updating quota_class - Fix attachment_id returned by create and show volume - Bump Max version to 3.46 - Bump MAX version of client to 3.45 - Update old url for cinderclient's document - Add api_version_wraps to attachment-complete - Let keystoneauth set the microversion header - Support create volume from backup in client - Explicitly set 'builder' option - Added missing column 'Allocated' - Fix method/module redefinition errors - Revert "Bump MAX version of client to 3.45" - cleanup test-requirements - Migrate to Zuul v3 - Add cluster support in migration and manage - Support list with 'with_count' in client - Use generic user for both zuul v2 and v3 - Clean the redundant code in shell.py - Fix man page build - Add .stestr.conf configuration - Add an attachment_complete API call - doc: Remove cruft from conf.py - Correct sphinx source code syntax OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-cinderclient?expand=0&rev=36
110 lines
3.7 KiB
RPMSpec
110 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package python-cinderclient
|
|
#
|
|
# Copyright (c) 2017 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%global sname python-cinderclient
|
|
Name: python-cinderclient
|
|
Version: 3.3.0
|
|
Release: 0
|
|
Summary: Python API and CLI for OpenStack Cinder
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
Url: https://launchpad.net/%{sname}
|
|
Source0: https://files.pythonhosted.org/packages/source/p/%{sname}/%{sname}-%{version}.tar.gz
|
|
BuildRequires: openstack-macros
|
|
BuildRequires: python-PrettyTable >= 0.7.1
|
|
BuildRequires: python-ddt >= 1.0.1
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-fixtures >= 3.0.0
|
|
BuildRequires: python-keystoneauth1 >= 3.2.0
|
|
BuildRequires: python-mock >= 2.0.0
|
|
BuildRequires: python-os-testr >= 1.0.0
|
|
BuildRequires: python-oslo.serialization >= 2.18.0
|
|
BuildRequires: python-oslo.utils >= 3.31.0
|
|
BuildRequires: python-pbr >= 2.0.0
|
|
BuildRequires: python-python-subunit >= 1.0.0
|
|
BuildRequires: python-requests >= 2.14.2
|
|
BuildRequires: python-requests-mock >= 1.1.0
|
|
BuildRequires: python-testrepository >= 0.0.18
|
|
BuildRequires: python-testscenarios >= 0.4
|
|
BuildRequires: python-testtools >= 2.2.0
|
|
Requires: python-Babel >= 2.3.4
|
|
Requires: python-PrettyTable >= 0.7.1
|
|
Requires: python-keystoneauth1 >= 3.2.0
|
|
Requires: python-oslo.i18n >= 3.15.3
|
|
Requires: python-oslo.utils >= 3.31.0
|
|
Requires: python-requests >= 2.14.2
|
|
Requires: python-simplejson >= 3.5.1
|
|
Requires: python-six >= 1.10.0
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
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.
|
|
|
|
%package doc
|
|
Summary: Documentation for OpenStack Cinder API Client
|
|
Group: Documentation/HTML
|
|
BuildRequires: python-Sphinx
|
|
BuildRequires: python-openstackdocstheme >= 1.17.0
|
|
BuildRequires: python-reno >= 2.5.0
|
|
|
|
%description doc
|
|
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.
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{sname}-%{version}
|
|
%py_req_cleanup
|
|
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
|
|
|
|
%build
|
|
%{py2_build}
|
|
|
|
%{__python2} setup.py build_sphinx --builder=html,man
|
|
# remove the sphinx-build leftovers
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
|
|
%install
|
|
%{py2_install}
|
|
# 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
|
|
|
|
%check
|
|
rm cinderclient/tests/unit/test_shell.py
|
|
ostestr
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.rst ChangeLog
|
|
%{python2_sitelib}/cinderclient
|
|
%{python2_sitelib}/*.egg-info
|
|
%{_bindir}/cinder
|
|
%{_mandir}/man1/cinder.1*
|
|
%{_sysconfdir}/bash_completion.d/cinder.bash_completion
|
|
|
|
%files doc
|
|
%license LICENSE
|
|
%doc doc/build/html
|
|
|
|
%changelog
|