File python-keystonemiddleware.spec of Package python-keystonemiddleware
#
# spec file for package python-keystonemiddleware
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%global sname keystonemiddleware
Name: python-keystonemiddleware
Version: 4.17.1
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
# https://review.opendev.org/#/c/707271/
Patch2: 0001-Make-tests-pass-in-2022.patch
BuildRequires: openstack-macros
BuildRequires: python-WebOb >= 1.7.1
BuildRequires: python-WebTest >= 2.0
BuildRequires: python-fixtures >= 3.0.0
BuildRequires: python-keystoneauth1 >= 3.1.0
BuildRequires: python-keystoneclient >= 3.8.0
BuildRequires: python-mock >= 2.0
BuildRequires: python-oslo.config >= 4.0.0
BuildRequires: python-oslo.context >= 2.14.0
BuildRequires: python-oslo.i18n >= 2.1.0
BuildRequires: python-oslo.messaging >= 5.24.2
BuildRequires: python-oslo.serialization >= 1.10.0
BuildRequires: python-oslo.utils >= 3.20.0
BuildRequires: python-oslotest >= 1.10.0
BuildRequires: python-positional >= 1.1.1
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
BuildRequires: python-six >= 1.9.0
BuildRequires: python-stevedore >= 1.20.0
BuildRequires: python-testrepository >= 0.0.18
BuildRequires: python-testresources >= 0.2.4
BuildRequires: python-testtools >= 1.4.0
Requires: python-WebOb >= 1.7.1
Requires: python-keystoneauth1 >= 3.1.0
Requires: python-keystoneclient >= 3.8.0
Requires: python-oslo.config >= 4.0.0
Requires: python-oslo.context >= 2.14.0
Requires: python-oslo.i18n >= 2.1.0
Requires: python-oslo.serialization >= 1.10.0
Requires: python-oslo.utils >= 3.20.0
Requires: python-positional >= 1.1.1
Requires: python-pycadf >= 1.1.0
Requires: python-python-memcached >= 1.56
Requires: python-requests >= 2.14.2
Requires: python-six >= 1.9.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.16.0
%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