#$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: Django application to add captcha images to any Django form Name: django-simple-captcha Version: 0.2.0 Release: 4%{?dist} License: MIT Group: Development/Libraries URL: http://code.google.com/p/django-simple-captcha/ Source: http://django-simple-captcha.googlecode.com/files/django-simple-captcha-0.2.0.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: python2-devel python-setuptools %description Django Simple Captcha is an extremely simple, yet highly customizable Django application to add captcha images to any Django form %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 LICENSE MANIFEST.in PKG-INFO %{python_sitelib}/captcha %{python_sitelib}/django_simple_captcha-%{version}-py2* %{python_sitelib}/captcha/* %changelog * Wed Oct 20 2010 Dave Riches - 0.2.0-4 - fixed description * Wed Oct 20 2010 Dave Riches - 0.2.0-3 - Fixed summary * Wed Oct 20 2010 Dave Riches - 0.2.0-2 - fixed folder permissions * Wed Oct 20 2010 Dave Riches - 0.2.0-1 - Packaged version 0.2.0 * Sat Aug 21 2010 Dave Riches - 0.1.7-1 - packaged for Fedora 12/13/14