]> git.pld-linux.org Git - packages/python-recaptcha.git/blame - python-recaptcha.spec
- rebuild for fixed python eggs
[packages/python-recaptcha.git] / python-recaptcha.spec
CommitLineData
e8da9d26 1%define fname recaptcha-client
e8da9d26 2Summary: A client for reCAPTCHA and reCAPTCHA Mailhide
3Summary(pl.UTF-8): Klient usług reCAPTCHA i reCAPTCHA Mailhide
91f5e76c 4Name: python-recaptcha
30eb30cf 5Version: 1.0.6
64687402 6Release: 2
e8da9d26 7License: MIT
8Group: Libraries/Python
91f5e76c 9Source0: http://pypi.python.org/packages/source/r/recaptcha-client/%{fname}-%{version}.tar.gz
30eb30cf 10# Source0-md5: 74228180f7e1fb76c4d7089160b0d919
64687402 11URL: http://www.google.com/recaptcha
91f5e76c 12BuildRequires: python >= 1:2.5
e8da9d26 13BuildRequires: python-setuptools
91f5e76c 14BuildRequires: rpm-pythonprov
e8da9d26 15BuildRequires: rpmbuild(macros) >= 1.219
64687402 16Requires: python-modules
e8da9d26 17BuildArch: noarch
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21Provides a CAPTCHA for Python using the reCAPTCHA service. Does not
22require any imaging libraries because the CAPTCHA is served directly
23from reCAPTCHA. Also allows you to securely obfuscate emails with
24Mailhide. This functionality requires pycrypto. This library requires
25two types of API keys. If you'd like to use the CAPTCHA, you'll need
91f5e76c
JB
26a key from <http://recaptcha.net/api/getkey>. For Mailhide, you'll
27need a key from <http://mailhide.recaptcha.net/apikey>.
e8da9d26 28
29%description -l pl.UTF-8
91f5e76c
JB
30Ten moduł obsługuje CAPTCHA (kod do wpisania z obrazka) w Pythonie w
31oparciu o usługę reCAPTCHA. Nie wymaga żadnaj biblioteki graficznej,
32gdyż CAPTCHA serwowana jest bezpośrednio z reCAPTCHA. Pozwala również
33bezpiecznie ukryć adresy email za pomocą Mailhide. Ta funkcjonalność
34wymaga pycrypto. Do działania klienta niezbędne są dwa klucze. Aby
35używać CAPTCHA, należy pobrać klucz ze strony
36<http://recaptcha.net/api/getkey>. Dla Mailhide należy pobrać klucz ze
37strony <http://mailhide.recaptcha.net/apikey>.
e8da9d26 38
39%prep
40%setup -qn %{fname}-%{version}
41
42%build
91f5e76c 43%{__python} setup.py build
e8da9d26 44
45%install
46rm -rf $RPM_BUILD_ROOT
91f5e76c 47%{__python} setup.py install \
64687402
ER
48 --skip-build \
49 --optimize=2 \
50 --root=$RPM_BUILD_ROOT
e8da9d26 51
52%py_postclean
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%files
58%defattr(644,root,root,755)
91f5e76c
JB
59%{py_sitescriptdir}/recaptcha
60%{py_sitescriptdir}/recaptcha_client-%{version}-py*.egg-info
This page took 0.087416 seconds and 4 git commands to generate.