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