forked from pool/python-saharaclient
update to version 0.18.0
* Remove discover from test-requirements * plugin's api update support * Replace tempest_lib with tempest.lib * Update reno for stable/mitaka * avoid additional requirement for building docs * Remove unused functional tests * Add openstackclient dependency back * Remove integration tests from saharaclient * Designate integration * Add pagination ability to Python-saharaclient * Migrate functional tests to openstack-client * Remove unused pngmath Sphinx extension * Use osc_lib instead of cliff * Add sorting ability to Python-saharaclient * Remove incorrectly used "# flake8: noqa" * include storm.pyleus in job types * Change plugin version 'version' parameter to 'plugin-version' * print statment has become a function in py3 * Updated from global requirements * Use osc-lib instead of openstackclient * support event logs for CLI - update _service and switch to upstream spec template OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-saharaclient?expand=0&rev=10
This commit is contained in:
+54
-65
@@ -16,96 +16,85 @@
|
||||
#
|
||||
|
||||
|
||||
%define component saharaclient
|
||||
|
||||
Name: python-%{component}
|
||||
Version: 0.13.0
|
||||
%global sname saharaclient
|
||||
Name: python-saharaclient
|
||||
Version: 0.18.0
|
||||
Release: 0
|
||||
Summary: Openstack Data Processing (Savanna) API Client
|
||||
Summary: Client library for OpenStack Sahara API
|
||||
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
|
||||
Url: https://launchpad.net/%{name}
|
||||
Source0: https://pypi.io/packages/source/p/%{name}/%{name}-%{version}.tar.gz
|
||||
BuildRequires: openstack-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
|
||||
BuildRequires: python-keystoneclient >= 2.0.0
|
||||
BuildRequires: python-mock >= 2.0
|
||||
BuildRequires: python-os-testr >= 0.7.0
|
||||
BuildRequires: python-osc-lib >= 0.4.0
|
||||
BuildRequires: python-oslo.i18n >= 2.1.0
|
||||
BuildRequires: python-oslo.log >= 1.14.0
|
||||
BuildRequires: python-oslo.serialization >= 1.10.0
|
||||
BuildRequires: python-oslo.utils >= 3.16.0
|
||||
BuildRequires: python-oslotest >= 1.10.0
|
||||
BuildRequires: python-pbr >= 1.6
|
||||
BuildRequires: python-requests >= 2.10.0
|
||||
BuildRequires: python-requests-mock >= 1.0
|
||||
BuildRequires: python-setuptools >= 16.0
|
||||
BuildRequires: python-testrepository >= 0.0.18
|
||||
Requires: python-Babel >= 2.3.4
|
||||
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-keystoneauth1 >= 2.10.0
|
||||
Requires: python-keystoneclient >= 2.0.0
|
||||
Requires: python-openstackclient >= 2.1.0
|
||||
Requires: python-oslo.config >= 3.7.0
|
||||
Requires: python-osc-lib >= 0.4.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-oslo.utils >= 3.16.0
|
||||
Requires: python-requests >= 2.10.0
|
||||
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).
|
||||
Python client library for interacting with OpenStack Sahara API.
|
||||
|
||||
%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
|
||||
%package doc
|
||||
Summary: Documentation for Client library for OpenStack Sahara API
|
||||
Group: Documentation
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-oslosphinx >= 2.5.0
|
||||
|
||||
%description test
|
||||
This package contains testsuite files for %{name}.
|
||||
%description doc
|
||||
Python client library for interacting with OpenStack Sahara API.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%openstack_cleanup_prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
# FIXME: can be removed when https://review.openstack.org/#/c/363681/ is merged
|
||||
sed -i -e 's/^\s\{4\}git_cmd\(.*\)/ "\/usr\/bin\/true"\1/' doc/source/conf.py
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%py2_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
|
||||
%py2_install
|
||||
|
||||
### test subpackage
|
||||
%openstack_test_package_install
|
||||
# Build HTML docs and man page
|
||||
%{__python2} setup.py build_sphinx
|
||||
# remove the sphinx-build leftovers
|
||||
rm -rf doc/build/html/.{doctrees,buildinfo}
|
||||
|
||||
%check
|
||||
%{__python2} setup.py testr
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README.rst
|
||||
%license LICENSE
|
||||
%doc ChangeLog README.rst
|
||||
%{_bindir}/sahara
|
||||
%{python_sitelib}/%{component}/
|
||||
%{python_sitelib}/python_%{component}-*.egg-info
|
||||
%{python2_sitelib}/saharaclient
|
||||
%{python2_sitelib}/*.egg-info
|
||||
|
||||
%files test
|
||||
%defattr(-,root,root,-)
|
||||
%{_localstatedir}/lib/%{name}-test/
|
||||
%files doc
|
||||
%doc doc/build/html
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user