File python-keystoneauth1.spec of Package python-keystoneauth1

# spec file for package python-keystoneauth1
# Copyright (c) 2019 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.12.3
Release:        0
Summary:        OpenStack authenticating tools
License:        Apache-2.0
Group:          Development/Languages/Python
BuildRequires:  openstack-macros
BuildRequires:  python-PyYAML
BuildRequires:  python-betamax
BuildRequires:  python-fixtures
BuildRequires:  python-iso8601
BuildRequires:  python-lxml
BuildRequires:  python-mock
BuildRequires:  python-oauthlib
BuildRequires:  python-oslo.config
BuildRequires:  python-oslo.utils
BuildRequires:  python-oslotest
BuildRequires:  python-pbr
BuildRequires:  python-pep8
BuildRequires:  python-positional
BuildRequires:  python-pycrypto
BuildRequires:  python-reno
BuildRequires:  python-requests-kerberos
BuildRequires:  python-requests-mock
BuildRequires:  python-testrepository
BuildRequires:  python-testresources
BuildRequires:  python-testtools
Requires:       python-PyYAML
Requires:       python-iso8601
Requires:       python-lxml
Requires:       python-oauthlib
Requires:       python-positional
Requires:       python-requests
Requires:       python-requests-kerberos
Requires:       python-six
Requires:       python-stevedore
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}



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

%{__python2} testr

%license LICENSE
%doc AUTHORS ChangeLog README.rst

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