%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")} %define rev r26 Name: python-tg-ext-repoze-who Version: 0.1 Release: 0.1.%{rev}%{?dist} Summary: repoze.who plugins for TurboGears2 Group: Development/Languages License: MIT URL: http://pypi.python.org/pypi/tg.ext.repoze.who Source0: http://pypi.python.org/packages/source/t/tg.ext.repoze.who/tg.ext.repoze.who-%{version}-%{rev}.tar.gz Patch0: %{name}-setup.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools-devel Requires: python-repoze-who >= 1.0.1 %description Sample repoze.who middleware config and plugins for TG2. %prep %setup -q -n tg.ext.repoze.who-%{version}-%{rev} %patch0 -b .setup %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root %{buildroot} %clean rm -rf %{buildroot} %files %defattr(0644,root,root,0755) %doc README.txt #%{python_sitelib}/%{name}-%{version}-%{rev}-%{pyver}.egg-info/ %{python_sitelib}/* %changelog * Tue Oct 21 2008 Luke Macken 0.1-0.1.r26 - Initial package