#$Id$ %if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif Summary: Utilities for implementing Modified Preorder Tree Traversal Name: django-mptt Version: 0.4.2 Release: 2%{?dist} License: BSD Group: Development/Libraries URL: http://code.google.com/p/django-mptt/ Source: http://pypi.python.org/packages/source/d/django-mptt/django-mptt-0.4.2.zip BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: python2-devel python-setuptools %description Utilities for implementing Modified Preorder Tree Traversal (MPTT) with your Django Model classes and working with trees of Model instances. %prep %setup -q -n %{name}-%{version} %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}" %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc INSTALL LICENSE MANIFEST.in PKG-INFO README %{python_sitelib}/django_mptt-%{version}-py2.*.egg-info %{python_sitelib}/mptt %changelog * Mon Nov 29 2010 Dave Riches - 0.4.2-2 - removed redundant comments from spec * Sun Nov 28 2010 Clint Savage - 0.4.2-1 - Updated the package to 0.4.2 and removed a couple unneeded lines from the spec * Thu Oct 21 2010 Dave Riches - 0.4.1-1 - Packaged for Fedora