%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define alphaver a1 %define devrev r117 Name: python-tgext-authorization Version: 0.9 Release: 0.1.%{alphaver}dev.%{devrev}%{?dist} Summary: Authorization for TurboGears 2 applications Group: Development/Languages License: BSD URL: http://www.turbogears.org Source0: http://svn.turbogears.org/site_resources/tg2_index/current/tgext.authorization-%{version}%{alphaver}dev-%{devrev}.zip 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 tgext.authorization-%{version}%{alphaver}dev-%{devrev} %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}/* %changelog * Tue Oct 21 2008 Luke Macken 0.9-0.1.a1dev.r11 - Initial package