File python-repoze-who.spec of Package python-repoze-who
#norootforbuild
#
%define real_name repoze.who
%define mod_name repoze-who
#
#
Name: python-%{mod_name}
Group: Development/Libraries/Python
Version: 1.0.18
Release: 0
License: BSD-derived (http://www.repoze.org/LICENSE.txt)
Summary: repoze.who is an identification and authentication framework for WSGI.
Autoreqprov: on
Source: %{real_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-setuptools
Requires: python-Paste
Requires: python-zope-interface
Requires: python-setuptools
Url: http://www.repoze.org
%{py_requires}
%define py_vers %(%{__python} -c 'import sys; print int(10*float(sys.version[:3]))')
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")}
%endif
%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 -n %{real_name}-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc CHANGES.txt COPYRIGHT.txt docs LICENSE.txt PKG-INFO README.txt TODO.txt
%changelog
* Sun Nov 23 2009 - Ciaran Farrell <cfarrell1980@gmail.com> - 1.0.18
- Initial build for tg21