-%define fname recaptcha-client
Summary: A client for reCAPTCHA and reCAPTCHA Mailhide
Summary(pl.UTF-8): Klient usług reCAPTCHA i reCAPTCHA Mailhide
Name: python-recaptcha
-Version: 1.0.6
-Release: 5
+Version: 2.0.1
+Release: 1
License: MIT
Group: Libraries/Python
-Source0: http://pypi.python.org/packages/source/r/recaptcha-client/%{fname}-%{version}.tar.gz
-# Source0-md5: 74228180f7e1fb76c4d7089160b0d919
+Source0: https://github.com/redhat-infosec/python-recaptcha/releases/download/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 2fe1e40784a5177f9b2b69de0f3d86fe
URL: http://www.google.com/recaptcha
BuildRequires: python >= 1:2.5
BuildRequires: python-setuptools
strony <http://mailhide.recaptcha.net/apikey>.
%prep
-%setup -qn %{fname}-%{version}
+%setup -q
%build
%py_build
rm -rf $RPM_BUILD_ROOT
%py_install
-# structure of this module is an incredible fuckup. anyone knows how to fix this?
-cp -p recaptcha/__init__.py $RPM_BUILD_ROOT%{py_sitescriptdir}/recaptcha
-
%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}/recaptcha
%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}/recaptcha
%py_postclean
%dir %{py_sitescriptdir}/recaptcha/client
%{py_sitescriptdir}/recaptcha/client/*.py[co]
%{py_sitescriptdir}/recaptcha_client-%{version}-py*.egg-info
-%{py_sitescriptdir}/recaptcha_client-%{version}-py*-nspkg.pth