17
0
Files
python-cinderclient/python-cinderclient.spec
Dirk Mueller 4bb30324e6 - update to 1.3.1:
* Prep for 1.3.0
  * Updated from global requirements
  * Revert "Enable version discovery"
  * Fix typo in comment message
  * Add set_management_url to cinderclient.client
  * cinderclient does not honor --os-region-name or ENV[OS_REGION_NAME]
  * Add encryption-type-update to cinderclient
  * Set max volume size limit for the tenant
  * Add tests for python-cinderclient and style fix
  * The is_public filter in VolumeTypeManager.list broke the find in VolumeTypeAccessManager, which caused all commands which should have taken a volume_type name to fail. I have choosen to fix this by effectively removing the filter in the client (and the --all argument to type-list). This is OK, since Cinder implements the filtering by user anyway. The consequence of this change is that the Admin user will always see the entire list (including private types) every time they execute type-list
  * Add volume multi attach support
  * Fix functional post test_hook
  * Fix condition in CheckSizeArgForCreate parser action
  * Support host-attach of volumes
  * Bump hacking to >=0.10.0,<0.11 to fix failure of gate pep8
  * Fix functional readonly_cli tests
  * Add findall server side filtering
  * Fix functional tests and tox 2.0 errors
  * Fixed typos and repeated docstrings
  * cinderclient deprecated endpoint_type needs dest=
  * cinderclient no longer honors --endpoint-type
  * Add functional post test_hook
  * Add --os-endpoint-type to match other services
  * Find resource refactoring
  * Avoid _get_keystone_session() if auth_plugin
  * Update release notes for 1.2.0 and 1.2.1
  * Add CLI read-only functional tests
  * Change --force parameter into boolean
  * Add search_opts into the method list() for qos specs

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-cinderclient?expand=0&rev=27
2015-09-07 11:32:43 +00:00

119 lines
3.7 KiB
RPMSpec

#
# spec file for package python-cinderclient
#
# Copyright (c) 2015 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.3.1
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-requests
Requires: python >= 2.6.8
Requires: python-Babel >= 1.3
Requires: python-PrettyTable >= 0.7
Requires: python-pbr >= 0.6
Requires: python-requests >= 1.2.1
Requires: python-simplejson >= 2.2.0
Requires: python-six >= 1.7.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
Requires: python-argparse
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%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}
%if 0%{?suse_version} <= 1110
Requires: python-discover
%endif
Requires: python-fixtures >= 0.3.14
Requires: python-mock >= 1.0
Requires: python-python-subunit >= 0.0.18
Requires: python-testrepository >= 0.0.18
Requires: python-testtools >= 0.9.34
%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