File python-openstacksdk.spec of Package python-openstacksdk.mitaka

#
# 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/
#


%define version_unconverted 0.8.1

Name:           python-openstacksdk
Version:        0.8.1
Release:        0
Summary:        An SDK for building applications to work with OpenStack
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            http://www.openstack.org/
Source:         https://pypi.python.org/packages/source/o/openstacksdk/openstacksdk-%{version}.tar.gz
BuildRequires:  python-devel
BuildRequires:  python-fixtures
BuildRequires:  python-iso8601
BuildRequires:  python-keystoneauth1
BuildRequires:  python-mock
BuildRequires:  python-nose
BuildRequires:  python-os-client-config
BuildRequires:  python-os-testr
BuildRequires:  python-oslo.utils
BuildRequires:  python-pbr >= 1.8
BuildRequires:  python-python-subunit
BuildRequires:  python-requests-mock
BuildRequires:  python-setuptools
BuildRequires:  python-testrepository
BuildRequires:  python-testscenarios
BuildRequires:  python-testtools
Requires:       python-iso8601 >= 0.1.9
Requires:       python-keystoneauth1 >= 1.1.0
Requires:       python-requests >= 2.8.1
Requires:       python-six >= 1.9.0
Requires:       python-stevedore >= 1.5.0
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
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 SDK is under active development, and in the interests of providing
a high-quality interface, the APIs provided in this release may differ
from those provided in future release.

%prep
%setup -q -n openstacksdk-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

## %check
## python setup.py testr

%files
%defattr(-,root,root,-)
%doc LICENSE ChangeLog README.rst AUTHORS
%{python_sitelib}/*

%changelog