]> git.pld-linux.org Git - packages/python-recaptcha.git/blame - python-recaptcha.spec
- up to 1.0.3
[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
1458c754 5Version: 1.0.3
a1055c9c 6Release: 1
e8da9d26 7License: MIT
8Group: Libraries/Python
91f5e76c 9Source0: http://pypi.python.org/packages/source/r/recaptcha-client/%{fname}-%{version}.tar.gz
1458c754 10# Source0-md5: 5aaa88d703f1003ecc63a0ced00baad6
e8da9d26 11URL: http://recaptcha.net
91f5e76c 12BuildRequires: python >= 1:2.5
e8da9d26 13BuildRequires: python-setuptools
91f5e76c 14BuildRequires: rpm-pythonprov
e8da9d26 15BuildRequires: rpmbuild(macros) >= 1.219
16%pyrequires_eq python-modules
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 \
e8da9d26 48 --root=$RPM_BUILD_ROOT \
49 --optimize=2
50
51# structure of this module is an incredible fuckup. anyone knows how to fix this?
91f5e76c 52cp recaptcha/__init__.pyc $RPM_BUILD_ROOT%{py_sitescriptdir}/recaptcha
e8da9d26 53
54%py_postclean
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%files
60%defattr(644,root,root,755)
91f5e76c
JB
61%{py_sitescriptdir}/recaptcha
62%{py_sitescriptdir}/recaptcha_client-%{version}-py*.egg-info
This page took 0.163069 seconds and 4 git commands to generate.