Name: python-tgcaptcha2 Version: 0.2.0 Release: 2%{?dist} Summary: TurboGears captcha plugin Group: Development/Languages License: MIT URL: https://fedorahosted.org/tgcaptcha2/ Source0: https://fedorahosted.org/releases/t/g/tgcaptcha2/TGCaptcha2-%{version}.tar.gz BuildArch: noarch BuildRequires: python-devel TurboGears BuildRequires: python-setuptools Requires: TurboGears Requires: espeak Requires: python-fedora-turbogears %description TGCaptcha2 is a TurboGears widget that provides an easy way to incorporate a captcha as part a form in an attempt to reduce spam or malicious activity. Features include: * (Relatively) pain-free usage and validation inside of a regular widget-based form * Flexibility to add or extend image generation algorithms and the text displayed in the image Enhanced with: * Embed a word in the image or an equation that the user has to solve * Add an audio captch %prep %setup -q -n TGCaptcha2-%{version} sed -i -e "s|from setuptools|__requires__ = ['TurboJson >= 1.3']\nfrom setuptools|" setup.py %build %{__python} setup.py build %install %{__python} setup.py install --skip-build --root %{buildroot} %files %defattr(-,root,root,-) %doc README.txt CONTRIBUTORS.txt CHANGELOG.txt COPYRIGHT.txt %{python_sitelib}/*.egg-info %{python_sitelib}/tgcaptcha2/ %changelog * Tue Mar 01 2012 Pierre-Yves Chibon - 0.2.0-2 - Clean spec * Tue Feb 14 2012 Pierre-Yves Chibon - 0.2.0-1 - Initial RPM Package.