update to 9.2.0

This commit is contained in:
lmz 2021-07-20 01:02:49 +08:00
parent c3b2553c03
commit 2a8ac1c7d3
3 changed files with 81 additions and 77 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,109 +1,113 @@
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
%global with_doc 1
%global _empty_manifest_terminate_build 0
Name: python-keystonemiddleware
Version: 9.1.0
Release: 2
Version: 9.2.0
Release: 1
Summary: Middleware for OpenStack Identity
License: Apache-2.0
URL: http://launchpad.net/keystonemiddleware
URL: https://docs.openstack.org/keystonemiddleware/latest/
Source0: https://tarballs.openstack.org/keystonemiddleware/keystonemiddleware-%{version}.tar.gz
BuildArch: noarch
BuildRequires: git
BuildRequires: openstack-macros
%description
Middleware for the OpenStack Identity API.
OpenStack Identity API (Keystone) This package contains middleware modules
designed to provide authentication and authorization features to web services
%package -n python3-keystonemiddleware
Summary: Middleware for OpenStack Identity
%{?python_provide:%python_provide python3-keystonemiddleware}
Provides: python-keystonemiddleware
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-oslo-config
BuildRequires: python3-oslo-log
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-webob
BuildRequires: python3-keystoneauth1
BuildRequires: python3-keystoneclient
BuildRequires: python3-oslo-cache
Requires: python3-keystoneclient >= 1:3.20.0
Requires: python3-keystoneauth1 >= 3.12.0
Requires: python3-oslo-config
Requires: python3-oslo-context
Requires: python3-oslo-i18n >= 3.15.3
Requires: python3-oslo-log >= 3.36.0
Requires: python3-oslo-serialization >= 2.18.0
Requires: python3-oslo-utils >= 3.33.0
Requires: python3-pbr >= 2.0.0
Requires: python3-pycadf >= 1.1.0
Requires: python3-requests >= 2.14.2
Requires: python3-six >= 1.10.0
Requires: python3-oslo-cache >= 1.26.0
Requires: python3-webob >= 1.7.1
BuildRequires: python3-oslo-config
BuildRequires: python3-oslo-context
BuildRequires: python3-oslo-i18n
BuildRequires: python3-oslo-log
BuildRequires: python3-oslo-serialization
BuildRequires: python3-oslo-utils
BuildRequires: python3-pycadf
BuildRequires: python3-keystoneclient
BuildRequires: python3-requests
BuildRequires: python3-six
BuildRequires: python3-oslo-messaging
# Tests running requires
BuildRequires: python3-webtest
BuildRequires: python3-bandit
BuildRequires: python3-coverage
BuildRequires: python3-cryptography
BuildRequires: python3-fixtures
BuildRequires: python3-flake8-docstrings
BuildRequires: python3-hacking
BuildRequires: python3-oslo-messaging
BuildRequires: python3-oslotest
BuildRequires: python3-memcached
BuildRequires: python3-requests-mock
BuildRequires: python3-stestr
BuildRequires: python3-stevedore
BuildRequires: python3-testresources
BuildRequires: python3-testtools
%description -n python3-keystonemiddleware
Middleware for the OpenStack Identity API.
%if 0%{?with_doc}
%package -n python-keystonemiddleware-doc
Summary: Documentation for the Middleware for OpenStack Identity
Group: Documentation
BuildRequires: python3-sphinx
BuildRequires: python3-openstackdocstheme
BuildRequires: python3-pycadf
BuildRequires: python3-oslotest
BuildRequires: python3-oslo-messaging
BuildRequires: python3-sphinxcontrib-apidoc
BuildRequires: python3-sphinxcontrib-svg2pdfconverter
BuildRequires: python3-requests-mock
BuildRequires: python3-testresources
BuildRequires: python3-webtest
%description -n python-keystonemiddleware-doc
Documentation for the Middleware for OpenStack Identity
%endif
%package help
Summary: Middleware for OpenStack Identity
Provides: python3-keystonemiddleware-doc
%description help
OpenStack Identity API (Keystone) This package contains middleware modules
designed to provide authentication and authorization features to web services
%prep
%autosetup -n keystonemiddleware-%{upstream_version} -S git
%py_req_cleanup
rm -rf keystonemiddleware.egg-info
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
%autosetup -n keystonemiddleware-%{version} -p1
%build
%{py3_build}
%if 0%{?with_doc}
sphinx-build-3 -b html doc/source doc/build/html
rm -rf doc/build/html/.{doctrees,buildinfo}
%endif
%py3_build
%install
%{py3_install}
rm -r %{buildroot}%{python3_sitelib}/keystonemiddleware/tests
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-keystonemiddleware
%doc README.rst
%license LICENSE
%{python3_sitelib}/keystonemiddleware
%{python3_sitelib}/keystonemiddleware-*.egg-info
%files -n python3-keystonemiddleware -f filelist.lst
%if 0%{?with_doc}
%files -n python-keystonemiddleware-doc
%doc doc/build/html LICENSE
%endif
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Sat Jul 17 2021 OpenStack_SIG <openstack@openeuler.org>
- Upgrade to 9.2.0
* Thu Jan 07 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated