%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: django-filter Version: 0.5.0 Release: 2%{?dist} Summary: A Django application for allowing users to filter queryset dynamically Group: Development/Languages License: BSD URL: http://pypi.python.org/pypi/%{name} Source: http://pypi.python.org/packages/source/d/%{name}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel python-setuptools-devel Requires: Django %description Django-filter provides a simple way to filter down a queryset based on parameters a user provides. %prep %setup -q -n %{name}-%{version} %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.txt README.txt COPYRIGHT docs/ %{python_sitelib}/* %changelog * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Thu Aug 20 2009 Diego Búrigo Zacarão <diegobz@gmail.com> 0.5.0-1 - Initial RPM release