2012-10-31 10:14:47 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-glanceclient
|
|
|
|
#
|
2016-02-29 13:47:58 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-10-31 10:14:47 +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.
|
|
|
|
|
2012-11-08 13:43:10 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-10-31 10:14:47 +00:00
|
|
|
|
2013-01-11 14:22:53 +00:00
|
|
|
%define component glanceclient
|
|
|
|
|
2012-10-31 10:14:47 +00:00
|
|
|
Name: python-glanceclient
|
2016-02-29 13:47:58 +00:00
|
|
|
Version: 1.2.0
|
2012-10-31 10:14:47 +00:00
|
|
|
Release: 0
|
2013-01-11 14:22:53 +00:00
|
|
|
Summary: Openstack Image (Glance) API Client
|
2013-04-21 17:56:23 +00:00
|
|
|
License: Apache-2.0
|
2012-10-31 10:14:47 +00:00
|
|
|
Group: Development/Languages/Python
|
2013-04-21 17:56:23 +00:00
|
|
|
Url: http://launchpad.net/python-glanceclient
|
2014-09-27 15:52:11 +00:00
|
|
|
Source: https://pypi.python.org/packages/source/p/python-glanceclient/python-glanceclient-%{version}.tar.gz
|
2013-01-11 14:22:53 +00:00
|
|
|
Source2: openstack-glance.sh
|
2015-06-23 08:47:44 +00:00
|
|
|
Source99: %{name}-rpmlintrc
|
2013-04-21 17:56:23 +00:00
|
|
|
BuildRequires: openstack-suse-macros
|
2013-01-11 14:22:53 +00:00
|
|
|
BuildRequires: python-base
|
2013-04-21 17:56:23 +00:00
|
|
|
# Documentation build requirements:
|
2013-10-07 09:41:13 +00:00
|
|
|
BuildRequires: python-PrettyTable
|
2013-04-21 17:56:23 +00:00
|
|
|
BuildRequires: python-Sphinx
|
|
|
|
BuildRequires: python-iso8601
|
|
|
|
BuildRequires: python-keystoneclient
|
2014-09-27 15:52:11 +00:00
|
|
|
BuildRequires: python-oslosphinx
|
2013-10-07 09:41:13 +00:00
|
|
|
BuildRequires: python-pbr
|
2013-04-21 17:56:23 +00:00
|
|
|
BuildRequires: python-warlock
|
2012-10-31 10:14:47 +00:00
|
|
|
Requires: python >= 2.6.8
|
2014-09-27 15:52:11 +00:00
|
|
|
Requires: python-Babel >= 1.3
|
2014-03-25 14:22:18 +00:00
|
|
|
Requires: python-argparse
|
2012-10-31 10:14:47 +00:00
|
|
|
# /usr/bin/glance uses pkg_resources, thus:
|
2014-09-27 15:52:11 +00:00
|
|
|
Requires: python-PrettyTable >= 0.7
|
2015-09-07 11:22:33 +00:00
|
|
|
Requires: python-keystoneclient >= 1.6.0
|
2015-06-23 08:47:44 +00:00
|
|
|
Requires: python-oslo.i18n >= 1.5.0
|
2016-02-29 13:47:58 +00:00
|
|
|
Requires: python-oslo.utils >= 2.4.0
|
2015-09-16 15:42:56 +00:00
|
|
|
Requires: python-pbr >= 1.6
|
2015-09-07 11:22:33 +00:00
|
|
|
Requires: python-requests >= 2.5.2
|
2015-06-23 08:47:44 +00:00
|
|
|
Requires: python-six >= 1.9.0
|
2013-10-07 09:41:13 +00:00
|
|
|
Requires: python-warlock >= 1.0.1
|
2014-03-25 14:22:18 +00:00
|
|
|
|
2012-10-31 10:14:47 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?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 Glance which uses the OpenStack Image API. There's
|
2013-01-11 14:22:53 +00:00
|
|
|
a Python API (the glanceclient module), and a command-line tool (glance).
|
2012-10-31 10:14:47 +00:00
|
|
|
|
|
|
|
%package test
|
2013-01-11 14:22:53 +00:00
|
|
|
Summary: Openstack Image (Glance) API Client - Testsuite
|
2012-10-31 10:14:47 +00:00
|
|
|
Group: System/Management
|
|
|
|
Requires: %{name} = %{version}
|
2015-09-16 15:42:56 +00:00
|
|
|
Requires: python-fixtures >= 1.3.1
|
2015-09-07 11:22:33 +00:00
|
|
|
Requires: python-mock >= 1.2
|
2015-09-16 15:42:56 +00:00
|
|
|
Requires: python-requests-mock >= 0.6.0
|
2016-02-29 13:47:58 +00:00
|
|
|
Requires: python-tempest-lib >= 0.10.0
|
2014-09-27 15:52:11 +00:00
|
|
|
Requires: python-testrepository >= 0.0.18
|
2015-09-16 15:42:56 +00:00
|
|
|
Requires: python-testscenarios >= 0.4
|
2015-09-07 11:22:33 +00:00
|
|
|
Requires: python-testtools >= 1.4.0
|
2012-10-31 10:14:47 +00:00
|
|
|
|
|
|
|
%description test
|
2013-01-11 14:22:53 +00:00
|
|
|
This package contains testsuite files for %{name}.
|
2012-10-31 10:14:47 +00:00
|
|
|
|
|
|
|
%prep
|
2014-03-25 14:22:18 +00:00
|
|
|
%setup -q
|
2013-01-11 14:22:53 +00:00
|
|
|
%openstack_cleanup_prep
|
|
|
|
# Our package versioning scheme is different (but we provide the correct thing) thus:
|
2013-10-07 09:41:13 +00:00
|
|
|
sed -i "s|python-keystoneclient>=0.1.2,<1|python-keystoneclient|" requirements.txt
|
2012-10-31 10:14:47 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
2013-04-21 17:56:23 +00:00
|
|
|
python setup.py build_sphinx
|
2012-10-31 10:14:47 +00:00
|
|
|
|
|
|
|
%install
|
2013-01-11 14:22:53 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-data=%{python_sitelib}
|
|
|
|
|
|
|
|
### bash-completion
|
|
|
|
install -p -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/bash_completion.d/openstack-glance.sh
|
2012-10-31 10:14:47 +00:00
|
|
|
|
2013-01-11 14:22:53 +00:00
|
|
|
### test subpackage
|
|
|
|
%openstack_test_package_install
|
2012-10-31 10:14:47 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2013-04-21 17:56:23 +00:00
|
|
|
%doc LICENSE README.rst doc/build/html
|
2013-01-11 14:22:53 +00:00
|
|
|
%{_sysconfdir}/bash_completion.d/openstack-glance.sh
|
2012-10-31 10:14:47 +00:00
|
|
|
%{_bindir}/glance
|
2013-01-11 14:22:53 +00:00
|
|
|
%{python_sitelib}/%{component}/
|
|
|
|
%{python_sitelib}/python_%{component}-*.egg-info
|
2012-10-31 10:14:47 +00:00
|
|
|
|
|
|
|
%files test
|
|
|
|
%defattr(-,root,root,-)
|
2013-01-11 14:22:53 +00:00
|
|
|
%{_localstatedir}/lib/%{name}-test/
|
2012-10-31 10:14:47 +00:00
|
|
|
|
|
|
|
%changelog
|