]>
Commit | Line | Data |
---|---|---|
e8da9d26 | 1 | Summary: A client for reCAPTCHA and reCAPTCHA Mailhide |
2 | Summary(pl.UTF-8): Klient usług reCAPTCHA i reCAPTCHA Mailhide | |
91f5e76c | 3 | Name: python-recaptcha |
a21dd4dd AM |
4 | Version: 2.0.1 |
5 | Release: 1 | |
e8da9d26 | 6 | License: MIT |
7 | Group: Libraries/Python | |
a21dd4dd AM |
8 | Source0: https://github.com/redhat-infosec/python-recaptcha/releases/download/v%{version}/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 2fe1e40784a5177f9b2b69de0f3d86fe | |
64687402 | 10 | URL: http://www.google.com/recaptcha |
91f5e76c | 11 | BuildRequires: python >= 1:2.5 |
e8da9d26 | 12 | BuildRequires: python-setuptools |
91f5e76c | 13 | BuildRequires: rpm-pythonprov |
f2041f09 | 14 | BuildRequires: rpmbuild(macros) >= 1.710 |
64687402 | 15 | Requires: python-modules |
e8da9d26 | 16 | BuildArch: noarch |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Provides a CAPTCHA for Python using the reCAPTCHA service. Does not | |
21 | require any imaging libraries because the CAPTCHA is served directly | |
64d613da AM |
22 | from reCAPTCHA. If you'd like to use the CAPTCHA, you'll need a key |
23 | from <https://www.google.com/recaptcha/admin/create>. | |
e8da9d26 | 24 | |
25 | %description -l pl.UTF-8 | |
91f5e76c JB |
26 | Ten moduł obsługuje CAPTCHA (kod do wpisania z obrazka) w Pythonie w |
27 | oparciu o usługę reCAPTCHA. Nie wymaga żadnaj biblioteki graficznej, | |
64d613da AM |
28 | gdyż CAPTCHA serwowana jest bezpośrednio z reCAPTCHA. Aby używać |
29 | CAPTCHA, należy pobrać klucz ze strony | |
30 | <https://www.google.com/recaptcha/admin/create>. | |
e8da9d26 | 31 | |
32 | %prep | |
a21dd4dd | 33 | %setup -q |
e8da9d26 | 34 | |
35 | %build | |
20ddf315 | 36 | %py_build |
e8da9d26 | 37 | |
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
20ddf315 | 40 | %py_install |
e8da9d26 | 41 | |
8063f944 JR |
42 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}/recaptcha |
43 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}/recaptcha | |
e8da9d26 | 44 | %py_postclean |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
1fcb0e8a | 51 | %dir %{py_sitescriptdir}/recaptcha |
fcee8ed5 | 52 | %{py_sitescriptdir}/recaptcha/__init__.py[co] |
1fcb0e8a ER |
53 | %dir %{py_sitescriptdir}/recaptcha/client |
54 | %{py_sitescriptdir}/recaptcha/client/*.py[co] | |
91f5e76c | 55 | %{py_sitescriptdir}/recaptcha_client-%{version}-py*.egg-info |