forked from pool/python-openstacksdk
* Updated from global requirements * Fix issue "SDKException: Connection failure that may be retried." OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-openstacksdk?expand=0&rev=10
95 lines
3.1 KiB
RPMSpec
95 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package python-openstacksdk
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%global sname openstacksdk
|
|
Name: python-openstacksdk
|
|
Version: 0.9.5
|
|
Release: 0
|
|
Summary: An SDK for building applications to work with OpenStack
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
Url: https://launchpad.net/%{sname}
|
|
Source0: https://pypi.io/packages/source/o/%{sname}/%{sname}-%{version}.tar.gz
|
|
BuildRequires: openstack-macros
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-fixtures >= 3.0.0
|
|
BuildRequires: python-mock >= 2.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-six >= 1.9.0
|
|
BuildRequires: python-stevedore >= 1.16.0
|
|
BuildRequires: python-testrepository >= 0.0.18
|
|
BuildRequires: python-testscenarios >= 0.4
|
|
BuildRequires: python-testtools >= 1.4.0
|
|
Requires: python-keystoneauth1 >= 2.10.0
|
|
Requires: python-os-client-config >= 1.13.1
|
|
Requires: python-six >= 1.9.0
|
|
Requires: python-stevedore >= 1.16.0
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
The python-openstacksdk is a collection of libraries for building
|
|
applications to work with OpenStack clouds. The project aims to
|
|
provide a consistent and complete set of interactions with OpenStack's
|
|
many services, along with complete documentation, examples, and tools.
|
|
|
|
%package doc
|
|
Summary: %{summary} - Documentation
|
|
Group: Documentation/HTML
|
|
BuildRequires: python-Sphinx
|
|
BuildRequires: python-keystoneauth1 >= 2.10.0
|
|
BuildRequires: python-openstackdocstheme >= 1.4.0
|
|
BuildRequires: python-os-client-config >= 1.13.1
|
|
Requires: %{name} = %{version}
|
|
|
|
%description doc
|
|
The python-openstacksdk is a collection of libraries for building
|
|
applications to work with OpenStack clouds. The project aims to
|
|
provide a consistent and complete set of interactions with OpenStack's
|
|
many services, along with complete documentation, examples, and tools.
|
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{sname}-%{version}
|
|
|
|
%build
|
|
%py2_build
|
|
%{__python2} setup.py build_sphinx
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
|
|
%install
|
|
%py2_install
|
|
|
|
%check
|
|
%{__python2} setup.py testr
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc ChangeLog README.rst
|
|
%{python2_sitelib}/openstack
|
|
%{python2_sitelib}/*.egg-info
|
|
|
|
%files doc
|
|
%license LICENSE
|
|
%doc doc/build/html
|
|
|
|
%changelog
|