File python-keystonemiddleware.spec of Package python-keystonemiddleware

#
# spec file for package python-keystonemiddleware
#
# Copyright (c) 2018 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 keystonemiddleware
Name:           python-keystonemiddleware
Version:        4.21.0
Release:        0
Summary:        Middleware for OpenStack Identity
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            https://launchpad.net/%{sname}
Source0:        https://files.pythonhosted.org/packages/source/k/%{sname}/%{sname}-%{version}.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python-WebOb >= 1.7.1
BuildRequires:  python-WebTest >= 2.0.27
BuildRequires:  python-fixtures >= 3.0.0
BuildRequires:  python-keystoneauth1 >= 3.3.0
BuildRequires:  python-keystoneclient >= 3.8.0
BuildRequires:  python-mock >= 2.0.0
BuildRequires:  python-oslo.cache >= 1.26.0
BuildRequires:  python-oslo.config >= 5.1.0
BuildRequires:  python-oslo.context >= 2.19.2
BuildRequires:  python-oslo.i18n >= 3.15.3
BuildRequires:  python-oslo.messaging >= 5.29.0
BuildRequires:  python-oslo.serialization >= 2.18.0
BuildRequires:  python-oslo.utils >= 3.33.0
BuildRequires:  python-oslotest >= 3.2.0
BuildRequires:  python-positional
BuildRequires:  python-pycadf >= 1.1.0
BuildRequires:  python-pycrypto >= 2.6
BuildRequires:  python-python-memcached >= 1.56
BuildRequires:  python-requests >= 2.14.2
BuildRequires:  python-requests-mock >= 1.1.0
BuildRequires:  python-six >= 1.10.0
BuildRequires:  python-stevedore >= 1.20.0
BuildRequires:  python-testrepository >= 0.0.18
BuildRequires:  python-testresources >= 2.0.0
BuildRequires:  python-testtools >= 2.2.0
Requires:       python-WebOb >= 1.7.1
Requires:       python-keystoneauth1 >= 3.3.0
Requires:       python-keystoneclient >= 3.8.0
Requires:       python-oslo.cache >= 1.26.0
Requires:       python-oslo.config >= 5.1.0
Requires:       python-oslo.context >= 2.19.2
Requires:       python-oslo.i18n >= 3.15.3
Requires:       python-oslo.serialization >= 2.18.0
Requires:       python-oslo.utils >= 3.33.0
Requires:       python-positional
Requires:       python-pycadf >= 1.1.0
Requires:       python-python-memcached >= 1.56
Requires:       python-requests >= 2.14.2
Requires:       python-six >= 1.10.0
BuildArch:      noarch

%description
This package contains middleware modules designed to provide authentication
and authorization features to web services other than Keystone
The most prominent module is keystonemiddleware.auth_token. This package
does not expose any CLI or Python API features.

%package doc
Summary:        Documentation for Middleware for OpenStack Identity
Group:          Development/Languages/Python
BuildRequires:  python-Sphinx
BuildRequires:  python-openstackdocstheme >= 1.18.1

%description doc
Documentation for Middleware for OpenStack Identity.

%prep
%autosetup -p1 -n %{sname}-%{version}
%py_req_cleanup
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg

%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
export PYTHONWARNINGS="ignore"
%{__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
openSUSE Build Service is sponsored by