# sitelib for noarch packages, sitearch for others (remove the unneeded one) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: django-debug-toolbar Version: 0.8.1 Release: 1%{?dist} Summary: Django debug information about the current request/response Group: Development/Languages License: BSD URL: http://robhudson.github.com/django-debug-toolbar/ Source0: 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 %description The Django Debug Toolbar is a configurable set of panels that display various debug information about the current request/response and when clicked, display more details about the panel's content. Currently, the following panels have been written and are working: - Django version - Request timer - A list of settings in settings.py - Common HTTP headers - GET/POST/cookie/session variable display - Templates and context used, and their template paths - SQL queries including time to execute and links to EXPLAIN each query - List of signals, their args and receivers - Logging output via Python's built-in logging module %prep %setup -q %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.rst %{python_sitelib}/* %exclude %{python_sitelib}/debug_toolbar/models.py %changelog * Thu Oct 1 2009 Allisson Azevedo 0.8.1-1 - Update to 0.8.1. * Thu Oct 1 2009 Allisson Azevedo 0.8.0-1 - Initial RPM release