%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: django-flash Version: 1.6.2 Release: 2%{?dist} Summary: A Django extension to provide support for Rails-like flash Group: Development/Languages License: BSD URL: http://djangoflash.destaquenet.com/ 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: Django python-devel python-setuptools-devel Requires: Django %description A simple Django extension that provides support for Rails-like flash messages. The flash is a temporary storage mechanism that looks like a Python dictionary, so you can store values associated with keys and later retrieve them. It has one special property: by default, values stored into the flash during the processing of a request will be available during the processing of the immediately following request. Once that second request has been processed, those values are removed automatically from the storage. %prep %setup -q %build python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install --skip-build --root $RPM_BUILD_ROOT chmod 0755 $RPM_BUILD_ROOT%{python_sitelib}/djangoflash/tests/testproj/manage.py %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS LICENSE README %{python_sitelib}/* %changelog * Tue Oct 06 2009 Sebastian Dziallas - 1.6.2-2 - remove unneeeded BRs * Tue Oct 06 2009 Sebastian Dziallas - 1.6.2-1 - initial packaging