!2 Add python-keystonemiddleware package and spec file for building
From: @zhangy1317 Reviewed-by: @joec88 Signed-off-by: @joec88
This commit is contained in:
commit
c3b2553c03
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#### 介绍
|
#### 介绍
|
||||||
OpenStack Identity (Keystone) Middleware
|
OpenStack Identity (Keystone) Middleware
|
||||||
|
This package contains middleware modules designed to provide authentication and authorization features to web services other than Keystone <https://github.com/openstack/keystone>. The most prominent module is keystonemiddleware.auth_token. This package does not expose any CLI or Python API features.
|
||||||
|
|
||||||
|
|
||||||
#### 软件架构
|
#### 软件架构
|
||||||
软件架构说明
|
软件架构说明
|
||||||
|
|||||||
BIN
keystonemiddleware-9.1.0.tar.gz
Normal file
BIN
keystonemiddleware-9.1.0.tar.gz
Normal file
Binary file not shown.
109
python-keystonemiddleware.spec
Normal file
109
python-keystonemiddleware.spec
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
||||||
|
%global with_doc 1
|
||||||
|
|
||||||
|
Name: python-keystonemiddleware
|
||||||
|
Version: 9.1.0
|
||||||
|
Release: 2
|
||||||
|
Summary: Middleware for OpenStack Identity
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: http://launchpad.net/keystonemiddleware
|
||||||
|
Source0: https://tarballs.openstack.org/keystonemiddleware/keystonemiddleware-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: git
|
||||||
|
BuildRequires: openstack-macros
|
||||||
|
|
||||||
|
%description
|
||||||
|
Middleware for the OpenStack Identity API.
|
||||||
|
|
||||||
|
%package -n python3-keystonemiddleware
|
||||||
|
Summary: Middleware for OpenStack Identity
|
||||||
|
%{?python_provide:%python_provide python3-keystonemiddleware}
|
||||||
|
|
||||||
|
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pbr
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-oslo-config
|
||||||
|
BuildRequires: python3-oslo-log
|
||||||
|
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
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%{py3_install}
|
||||||
|
rm -r %{buildroot}%{python3_sitelib}/keystonemiddleware/tests
|
||||||
|
|
||||||
|
|
||||||
|
%files -n python3-keystonemiddleware
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
%{python3_sitelib}/keystonemiddleware
|
||||||
|
%{python3_sitelib}/keystonemiddleware-*.egg-info
|
||||||
|
|
||||||
|
%if 0%{?with_doc}
|
||||||
|
%files -n python-keystonemiddleware-doc
|
||||||
|
%doc doc/build/html LICENSE
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Jan 07 2021 Python_Bot <Python_Bot@openeuler.org>
|
||||||
|
- Package Spec generated
|
||||||
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user