%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: django-authority Version: 0.3 Release: 2%{?dist} Summary: A Django app for generic per-object permissions and custom permission checks Group: Development/Languages License: BSD URL: http://bitbucket.org/jezdez/django-authority/ Source: http://bitbucket.org/jezdez/django-authority/downloads/django-authority-0.3.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel python-setuptools-devel Requires: Django %description This is a Django app for generic per-object permissions, custom permission checks and permission requests. It also includes view decorators and template tags for ease of use. %prep %setup -q -n %{name}-%{version} find . -name \*._* -exec rm {} + find . -name \*.buildinfo* -exec rm {} + %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 AUTHORS LICENSE README docs/build/html/ %{python_sitelib}/* %changelog * Fri Aug 14 2009 Diego Búrigo Zacarão 0.3-2 - Clean up MAC OS hidden files - Added only HTML built doc files from docs dir - Added some missed doc files like AUTHORS - Clean up .builinfo files * Thu Aug 13 2009 Diego Búrigo Zacarão 0.3-1 - Initial RPM