%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: django-threadedcomments Version: 0.5.3 Release: 2%{?dist} Summary: A simple yet flexible threaded commenting system for Django Group: Development/Languages License: BSD URL: http://pypi.python.org/pypi/django-threadedcomments Source: http://pypi.python.org/packages/source/d/django-threadedcomments/%{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 Django-threadedcomments is a Django application which allows for the simple creation of a threaded commenting system. It is flexible as well, partly due to its use of the same facilities that any other Django application would use. %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 LICENSE.txt README.txt CONTRIBUTORS.txt CHANGELOG.txt INSTALL.txt docs/api.txt docs/index.txt docs/pinax.txt docs/tutorial.txt %{python_sitelib}/* %changelog * Mon Nov 08 2010 Domingo Becker - 0.5.3-2 - new doc section excluding binary file ._pinax.txt from docs directory - new description - BuildRequires added Django. - fixed changelog version of the previous one. * Mon Sep 27 2010 Domingo Becker - 0.5.3-1 - Initial RPM release