File python-keystoneauth1.spec of Package python-keystoneauth1
#
# spec file for package python-keystoneauth1
#
# Copyright (c) 2017 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 keystoneauth1
Name: python-keystoneauth1
Version: 2.18.0
Release: 0
Summary: OpenStack authenticating tools
License: Apache-2.0
Group: Development/Languages/Python
Url: https://launchpad.net/keystoneauth
Source0: https://pypi.io/packages/source/k/%{sname}/%{sname}-%{version}.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-PyYAML >= 3.10.0
BuildRequires: python-betamax >= 0.7.0
BuildRequires: python-fixtures >= 3.0.0
BuildRequires: python-iso8601 >= 0.1.11
BuildRequires: python-lxml >= 2.3
BuildRequires: python-mock >= 2.0
BuildRequires: python-oauthlib >= 0.6
BuildRequires: python-oslo.config >= 3.14.0
BuildRequires: python-oslo.utils >= 3.18.0
BuildRequires: python-oslotest >= 1.10.0
BuildRequires: python-pbr >= 1.8
BuildRequires: python-pep8 >= 1.5.7
BuildRequires: python-positional >= 1.1.1
BuildRequires: python-pycrypto >= 2.6
BuildRequires: python-reno >= 1.8.0
BuildRequires: python-requests-kerberos >= 0.6
BuildRequires: python-requests-mock >= 1.1
BuildRequires: python-testrepository >= 0.0.18
BuildRequires: python-testresources >= 0.2.4
BuildRequires: python-testtools >= 1.4.0
Requires: python-PyYAML >= 3.10.0
Requires: python-iso8601 >= 0.1.11
Requires: python-lxml >= 2.3
Requires: python-oauthlib >= 0.6
Requires: python-positional >= 1.1.1
Requires: python-requests >= 2.10.0
Requires: python-requests-kerberos >= 0.6
Requires: python-six >= 1.9.0
Requires: python-stevedore >= 1.17.1
BuildArch: noarch
%description
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 >= 4.7.0
%description doc
Documentation for OpenStack authenticating tools.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}
%install
%{py2_install}
# generate html docs
%{__python2} setup.py build_sphinx
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%check
%{__python2} setup.py testr
%files
%license LICENSE
%doc ChangeLog README.rst
%{python2_sitelib}/%{sname}
%{python2_sitelib}/*.egg-info
%files doc
%doc doc/build/html
%license LICENSE
%changelog