%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: django-staticfiles Version: 0.3.2 Release: 3%{?dist} Summary: A Django app that provides helpers for serving static files Group: Development/Languages License: BSD URL: http://django-staticfiles.readthedocs.org/ 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 Django Requires: Django %description This is a Django app that provides helpers for serving static files. The main website for django-staticfiles is github.com/jezdez/django-staticfiles where you can also file tickets. %prep %setup -q rm -f docs/_build/html/.buildinfo %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 docs/ LICENSE AUTHORS README.rst %{python_sitelib}/* %changelog * Mon Nov 08 2010 Domingo Becker - 0.3.2-3 - Removed hidden .buildinfo from docs dir * Mon Nov 08 2010 Domingo Becker - 0.3.2-2 - Fixed License, URL, BuildRequires, long description, dot at summary * Mon Sep 27 2010 Domingo Becker - 0.3.2-1 - Initial RPM release