%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: django-robots Version: 0.6.1 Release: 5%{?dist} Summary: Django app for managing robots.txt Group: Development/Languages License: BSD URL: http://bitbucket.org/jezdez/django-robots/ Source0: http://bitbucket.org/jezdez/%{name}/downloads/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-setuptools-devel gettext Requires: Django %description This is a basic Django application to manage robots.txt files following the robots exclusion protocol, complementing the Django Sitemap contrib app. %prep %setup -q -n %{name} %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT #%find_lang %{name} # Language files; not under /usr/share, need to be handled manually (cd $RPM_BUILD_ROOT && find . -name 'django.mo') | sed -e 's|^.||' | sed -e \ 's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \ >> %{name}.lang %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %doc README.rst INSTALL.txt LICENSE.txt docs/ %{python_sitelib}/robots/ %{python_sitelib}/django_robots-%{version}-py2.6.egg-info %changelog * Thu Feb 18 2010 Luca Botti 0.6.1-5 - fixed source0 URL (again) * Thu Feb 18 2010 Luca Botti 0.6.1-4 - removed version variable mistake - clean up of source0 URL * Mon Feb 15 2010 Luca Botti 0.6.1-3 - fixed requirements - source url - language files (taken from python-sphinx and Django) * Tue Sep 29 2009 Luca Botti 0.6.1-2 - Prepared for submit to Fedora - fixed SPEC file * Fri Aug 21 2009 Luca Botti 0.6.1-2 - Prepared for submit to Fedora * Sat Aug 15 2009 Tim Niemueller 0.6.1-1 - Initial RPM release