17
0
Files
python-cinderclient/python-cinderclient.spec
Thomas Bechtold 567f12620a - update to 1.6.0:
* Remove replication v2 calls
  * Update minimum tox version to 1.8
  * snapshot-list now supports filtering by tenant
  * Fix return type in consistencygroups docstring
  * Updated from global requirements
  * Use instanceof instead of type
  * Don't print HTTP codes for non-HTTP errors
  * Add replication v2.1 (cheesecake) calls
  * Add release notes for return-request-id-to-caller
  * Remove pypy from tox environment list
  * Extra 'u' in output of cinder cli commands
  * Add extra_specs_list test
  * Add request_ids attribute to resource objects
  * Fix return type in backup docstring
  * Fix omission of request_ids returned to user
  * Eliminate unnecessary character
  * Avoid logging sensitive info in http requests
  * Add request_ids attribute to resource objects
  * Add request_ids attribute to resource objects
  * Provide consistency for Wrapper classes
  * Allow "cinder backup-delete" to delete multiple backups in one request
  * Updated from global requirements
  * Fix some flake8 violations
  * Bootable filter for listening volumes from CLI
  * Remove debug statement
  * is_public=N/A in output of cinder type-update
  * Return wrapper classes with request_ids attribute
  * Pass insecure option to HTTPClient
  * Add Wrapper classes for list, dict, tuple

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-cinderclient?expand=0&rev=30
2016-03-03 15:39:39 +00:00

116 lines
3.6 KiB
RPMSpec

#
# spec file for package python-cinderclient
#
# Copyright (c) 2016 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/
#
%define component cinderclient
Name: python-%{component}
Version: 1.6.0
Release: 0
Summary: Openstack Block Storage (Cinder) API Client
License: Apache-2.0
Group: Development/Languages/Python
Url: http://launchpad.net/python-cinderclient
Source: https://pypi.python.org/packages/source/p/python-cinderclient/python-cinderclient-%{version}.tar.gz
Source99: %name-rpmlintrc
BuildRequires: openstack-suse-macros
BuildRequires: python-devel
BuildRequires: python-pbr
# Documentation build requirements:
BuildRequires: python-PrettyTable
BuildRequires: python-Sphinx
BuildRequires: python-oslosphinx
BuildRequires: python-reno
BuildRequires: python-requests
Requires: python >= 2.6.8
Requires: python-Babel >= 1.3
Requires: python-PrettyTable >= 0.7
Requires: python-keystoneclient >= 1.6.0
Requires: python-oslo.utils >= 3.5.0
Requires: python-pbr >= 1.6
Requires: python-requests >= 2.8.1
Requires: python-simplejson >= 2.2.0
Requires: python-six >= 1.9.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
This is a client for the OpenStack Volume API. There's a Python API (the
cinderclient module), and a command-line script (cinder). Each implements 100%
of the OpenStack Volume API.
%package doc
Summary: Openstack Block Storage (Cinder) API Client - Documentation
Group: Documentation/HTML
Requires: %{name} = %{version}
%description doc
This package contains documentation files for %{name}.
%package test
Summary: Openstack Block Storage (Cinder) API Client - Testsuite
Group: Development/Languages/Python
Requires: %{name} = %{version}
Requires: python-fixtures >= 1.3.1
Requires: python-mock >= 1.2
Requires: python-python-subunit >= 0.0.18
Requires: python-requests-mock >= 0.7.0
Requires: python-tempest-lib >= 0.14.0
Requires: python-testrepository >= 0.0.18
Requires: python-testtools >= 1.4.0
%description test
This package contains testsuite files for %{name}.
%prep
%setup -q
%openstack_cleanup_prep
echo %{version} > cinderclient/versioninfo
%build
python setup.py build
python setup.py build_sphinx
%install
python setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}
rm doc/build/html/.buildinfo
### bash-completion
install -p -D -m 644 tools/cinder.bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/openstack-cinder.sh
### test subpackage
%openstack_test_package_install
%files
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{_sysconfdir}/bash_completion.d/openstack-cinder.sh
%{_bindir}/cinder
%{python_sitelib}/%{component}/
%{python_sitelib}/python_%{component}-*.egg-info
%files doc
%defattr(-,root,root,-)
%doc LICENSE doc/build/html
%files test
%defattr(-,root,root,-)
%{_localstatedir}/lib/%{name}-test/
%changelog