%define oname django-authority Name: python-%{oname} Version: 0.4 Release: %mkrel 2 Summary: A Django app for generic per-object permissions and custom permission checks Group: Development/Python License: BSD URL: http://bitbucket.org/jezdez/%{oname}/ Source: http://bitbucket.org/jezdez/%{oname}/downloads/%{oname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: python-devel python-setuptools Requires: python-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 %{oname}-%{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 * Sun Jan 13 2013 umeabot <umeabot> 0.4-2.mga3 + Revision: 378666 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Jan 27 2011 ahmad <ahmad> 0.4-1.mga1 + Revision: 42343 - imported package python-django-authority