%define realname django-sorting %define name python-%{realname} %define version 0.1 %define release %mkrel 4 Name: %{name} Version: %{version} Release: %{release} Summary: A Django application for easy sorting Group: Development/Python License: BSD URL: http://pypi.python.org/pypi/django-sorting Source: %{realname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: python-devel python-setuptools Requires: python-django %description Django-sorting allows for easy sorting, and sorting links generation without modifying your views. %prep %setup -q -n %{realname}-%{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,-) %{py_puresitedir}/* %changelog * Tue Oct 22 2013 umeabot <umeabot> 0.1-4.mga4 + Revision: 543239 - Mageia 4 Mass Rebuild * Tue Oct 15 2013 pterjan <pterjan> 0.1-3.mga4 + Revision: 498402 - Rebuild to add different pythonegg provides for python 2 and 3 * Sun Jan 13 2013 umeabot <umeabot> 0.1-2.mga3 + Revision: 378719 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Jan 27 2011 ahmad <ahmad> 0.1-1.mga1 + Revision: 42411 - imported package python-django-sorting * Tue Nov 02 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.1-1mdv2011.0 + Revision: 591973 - import python-django-sorting