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

# spec file for package python-keystoneauth1
# 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

%global sname keystoneauth1

Name:           python-keystoneauth1
Version:        2.2.0
Release:        0
Summary:        OpenStack authenticating tools
License:        Apache-2.0
Group:          Development/Languages/Python
Url:  {sname}
BuildRequires:  openstack-macros
BuildRequires:  python-pbr
BuildRequires:  python-setuptools
Requires:       python-iso8601 >= 0.1.9
Requires:       python-lxml >= 2.3
Requires:       python-requests >= 2.8.1
Suggests:       python-requests-kerberos >= 0.6
Requires:       python-six >= 1.9.0
Requires:       python-stevedore >= 1.5.0
BuildArch:      noarch

Tools for authenticating to an OpenStack-based cloud. These tools include:
* Authentication plugins (password, token, and federation based)
* Discovery mechanisms to determine API version support
* A session that is used to maintain client settings across requests
  (based on the requests Python library)

%package doc
Summary:        Documentation for OpenStack authenticating tools
Group:          Development/Languages/Python
BuildRequires:  python-Sphinx
BuildRequires:  python-oslosphinx

%description doc
Documentation for OpenStack authenticating tools.

%setup -q -n %{sname}-%{version}

%{__python2} build

%{__python2} install --skip-build --root %{buildroot}

# generate html docs
%{__python2} build_sphinx
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}

%license LICENSE
%doc AUTHORS ChangeLog README.rst

%files doc
%doc doc/build/html
%license LICENSE