- Bump python requirement to 2.7 per 0.13's changelog notice that py26 is dropped. OBS-URL: https://build.opensuse.org/request/show/395953 OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-saharaclient?expand=0&rev=8
112 lines
3.7 KiB
RPMSpec
112 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package python-saharaclient
|
|
#
|
|
# 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 saharaclient
|
|
|
|
Name: python-%{component}
|
|
Version: 0.13.0
|
|
Release: 0
|
|
Summary: Openstack Data Processing (Savanna) API Client
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
Url: http://launchpad.net/python-saharaclient
|
|
Source: https://pypi.python.org/packages/source/p/python-saharaclient/python-saharaclient-%{version}.tar.gz
|
|
Source99: %name-rpmlintrc
|
|
BuildRequires: openstack-suse-macros
|
|
BuildRequires: python-devel
|
|
# Documentation build requirements:
|
|
BuildRequires: python-Sphinx
|
|
BuildRequires: python-keystoneclient
|
|
BuildRequires: python-pbr
|
|
Provides: python-savannaclient = %{version}
|
|
Obsoletes: python-savannaclient <= %{version}
|
|
Requires: python >= 2.7
|
|
Requires: python-Babel >= 1.3
|
|
Requires: python-PrettyTable >= 0.7
|
|
Requires: python-cliff >= 1.15.0
|
|
Requires: python-keystoneauth1 >= 2.1.0
|
|
Requires: python-keystoneclient >= 1.6.0
|
|
Requires: python-neutronclient >= 2.6.0
|
|
Requires: python-novaclient >= 2.29.0
|
|
Requires: python-openstackclient >= 2.1.0
|
|
Requires: python-oslo.config >= 3.7.0
|
|
Requires: python-oslo.i18n >= 2.1.0
|
|
Requires: python-oslo.log >= 1.14.0
|
|
Requires: python-oslo.serialization >= 1.10.0
|
|
Requires: python-oslo.utils >= 3.5.0
|
|
Requires: python-pbr >= 1.6
|
|
Requires: python-requests >= 2.8.1
|
|
Requires: python-six >= 1.9.0
|
|
Requires: python-swiftclient >= 2.2.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 library for OpenStack Data Processing (Savanna)
|
|
provides a Python API (the saharaclient module) and a command-line tool (sahara).
|
|
|
|
%package test
|
|
Summary: OpenStack Data Processing (Savanna) API Client - Testsuite
|
|
Group: Development/Languages/Python
|
|
Requires: %{name} = %{version}
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
Requires: python-discover
|
|
%endif
|
|
Requires: python-mock >= 1.2
|
|
Requires: python-oslotest >= 1.10.0
|
|
Requires: python-requests-mock >= 0.7.0
|
|
Requires: python-tempest-lib >= 0.14.0
|
|
Requires: python-testrepository >= 0.0.18
|
|
|
|
%description test
|
|
This package contains testsuite files for %{name}.
|
|
|
|
%prep
|
|
%setup -q
|
|
%openstack_cleanup_prep
|
|
|
|
%build
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-data=%{python_sitelib}
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
export NO_BRP_CHECK_BYTECODE_VERSION=true
|
|
%endif
|
|
|
|
### test subpackage
|
|
%openstack_test_package_install
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE README.rst
|
|
%{_bindir}/sahara
|
|
%{python_sitelib}/%{component}/
|
|
%{python_sitelib}/python_%{component}-*.egg-info
|
|
|
|
%files test
|
|
%defattr(-,root,root,-)
|
|
%{_localstatedir}/lib/%{name}-test/
|
|
|
|
%changelog
|