[packages/php-recaptcha] Up to 1.5.2
arekm
arekm at pld-linux.org
Sat Nov 28 17:51:53 CET 2026
commit ed43498c17f85d6fb3e250d78c3608dc4693cd34
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 27 16:22:38 2026 +0100
Up to 1.5.2
autoload.patch | 8 +++++---
php-recaptcha.spec | 11 +++++------
2 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/php-recaptcha.spec b/php-recaptcha.spec
index 43b98fe..b4cb0ea 100644
--- a/php-recaptcha.spec
+++ b/php-recaptcha.spec
@@ -1,16 +1,16 @@
%define pkgname recaptcha
-%define php_min_version 5.0.0
+%define php_min_version 8.4
Summary: reCAPTCHA is a free service to protect your website from spam and abuse
Name: php-%{pkgname}
-Version: 1.1.2
-Release: 2
+Version: 1.5.2
+Release: 1
Epoch: 1
# google/recaptcha: BSD
# recaptcha-php: MIT
License: BSD, MIT
Group: Development/Languages/PHP
Source0: https://github.com/google/recaptcha/archive/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5: 4528aeab04f7a22df4c1ec208b181b18
+# Source0-md5: 5ffc83528b1e0175f062b53234004093
Source1: http://recaptcha.googlecode.com/files/recaptcha-php-1.11.zip
# Source1-md5: 06dbb91aeb1869b3051d1b87dea0b891
Patch0: autoload.patch
@@ -47,7 +47,6 @@ rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{php_data_dir},%{_examplesdir}/%{name}-%{version}/recaptcha-php}
cp -a src/* $RPM_BUILD_ROOT%{php_data_dir}
-cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
# old package
cd recaptcha-php
@@ -59,7 +58,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README.md CONTRIBUTING.md LICENSE composer.json
+%doc README.md LICENSE composer.json
%{php_data_dir}/ReCaptcha
%{_examplesdir}/%{name}-%{version}
diff --git a/autoload.patch b/autoload.patch
index c71e817..cdfb56d 100644
--- a/autoload.patch
+++ b/autoload.patch
@@ -1,12 +1,14 @@
---- recaptcha-1.1.2/src/ReCaptcha/autoload.php~ 2016-09-15 14:03:34.000000000 +0300
-+++ recaptcha-1.1.2/src/ReCaptcha/autoload.php 2016-09-15 14:03:37.164579808 +0300
-@@ -23,15 +23,7 @@
+--- recaptcha-1.5.2/src/ReCaptcha/autoload.php.orig
++++ recaptcha-1.5.2/src/ReCaptcha/autoload.php
+@@ -52,17 +52,7 @@
* we look here first, so that we don't waste time searching for
* test classes in the common case.
*/
- $path = dirname(__FILE__).'/'.$class.'.php';
- if (is_readable($path)) {
- require_once $path;
+-
+- return;
- }
-
- /* If we didn't find what we're looking for already, maybe it's
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-recaptcha.git/commitdiff/ed43498c17f85d6fb3e250d78c3608dc4693cd34
More information about the pld-cvs-commit
mailing list