python-repoze.who/python-repoze-who.spec

77 lines
2.2 KiB
RPMSpec
Raw Normal View History

2021-07-10 12:22:30 +08:00
%{?python_enable_dependency_generator}
%global modname repoze.who
Name: python-repoze-who
Version: 2.4
Release: 1
Summary: An identification and authentication framework for WSGI
License: BSD
URL: https://pypi.python.org/pypi/%{modname}
Source0: https://pypi.python.org/packages/source/r/%{modname}/%{modname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-nose
BuildRequires: python3-coverage
BuildRequires: python3-zope-interface
BuildRequires: python3-webob
%global _description\
repoze.who is an identification and authentication framework for arbitrary WSGI\
applications. It acts as WSGI middleware.\
\
repoze.who is inspired by Zope 2's Pluggable Authentication Service (PAS) (but\
repoze.who is not dependent on Zope in any way; it is useful for any WSGI\
application). It provides no facility for authorization (ensuring whether a\
user can or cannot perform the operation implied by the request). This is\
considered to be the domain of the WSGI application.\
%description %_description
%package -n python3-repoze-who
Summary: An identification and authentication framework for WSGI
%description -n python3-repoze-who
repoze.who is an identification and authentication framework for arbitrary WSGI
applications. It acts as WSGI middleware.
repoze.who is inspired by Zope 2's Pluggable Authentication Service (PAS) (but
repoze.who is not dependent on Zope in any way; it is useful for any WSGI
application). It provides no facility for authorization (ensuring whether a
user can or cannot perform the operation implied by the request). This is
considered to be the domain of the WSGI application.
%prep
%setup -q -n %{modname}-%{version}
# Remove bundled egg-info in case it exists
rm -rf %{modname}.egg-info
%build
%py3_build
%install
%py3_install
%check
PYTHONPATH=$(pwd) %{__python3} setup.py test
%files -n python3-repoze-who
%doc README.rst CHANGES.rst CONTRIBUTORS.txt
%license COPYRIGHT.txt LICENSE.txt
%{python3_sitelib}/repoze/who/
%{python3_sitelib}/%{modname}-*
%changelog
2022-06-08 06:54:21 +00:00
* Sat Jul 10 2021 xiehongyu <xiehongyu@kylinos.cn> - 2.4-1
2021-07-10 12:22:30 +08:00
- Initial package