File python-recaptcha.spec of Package python-recaptcha
# norootforbuild
BuildRequires: python-devel python-setuptools
Name: python-recaptcha
License: MIT
Group: Development/Libraries/Python
Version: 1.0.1
Release: 1
Autoreqprov: on
Summary: A plugin for reCAPTCHA and reCAPTCHA Mailhide
URL: http://recaptcha.net/
Source: recaptcha-client-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: python-crypto
%py_requires
%description
Provides a CAPTCHA for Python using the reCAPTCHA service. Does not require any imaging libraries because the CAPTCHA is served directly from reCAPTCHA. Also allows you to securely obfuscate emails with Mailhide. This functionality requires pycrypto. This library requires two types of API keys. If you'd like to use the CAPTCHA, you'll need a key from http://recaptcha.net/api/getkey. For Mailhide, you'll need a key from http://mailhide.recaptcha.net/apikey.
Authors:
--------
Ben Maurer
%prep
%setup -q -n recaptcha-client-%{version}
%build
export CFLAGS="%{optflags}"
%{__python} setup.py build
%install
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
%clean
%{__rm} -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%changelog