%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-repoze-who Version: 1.0.13 Release: 1%{?dist} Summary: An identification and authentication framework for WSGI Group: Development/Languages License: BSD URL: http://pypi.python.org/pypi/repoze.who Source0: http://pypi.python.org/packages/source/r/repoze.who/repoze.who-%{version}.tar.gz Patch0: %{name}-setup.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel python-setuptools-devel Requires: python-paste Requires: python-setuptools Requires: python-zope-interface %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. %prep %setup -q -n repoze.who-%{version} %patch0 -b .setup %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README.txt COPYRIGHT.txt LICENSE.txt %{python_sitelib}/* %changelog * Wed May 06 2009 Luke Macken - 1.0.13-1 - Update to the latest upstream release. * Tue Oct 21 2008 Luke Macken - 1.0.7-1 - Initial package