summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer.json16
-rw-r--r--php-google-recaptcha.spec52
2 files changed, 37 insertions, 31 deletions
diff --git a/composer.json b/composer.json
index ab6b4f1..7f199fc 100644
--- a/composer.json
+++ b/composer.json
@@ -10,12 +10,12 @@
"source": "https://github.com/google/recaptcha"
},
"require": {
- "php": ">=5.5"
+ "php": ">=8"
},
"require-dev": {
- "phpunit/phpunit": "^4.8.36|^5.7.27|^6.59|^7.5.11",
- "friendsofphp/php-cs-fixer": "^2.2.20|^2.15",
- "php-coveralls/php-coveralls": "^2.1"
+ "phpunit/phpunit": "^10",
+ "friendsofphp/php-cs-fixer": "^3.14",
+ "php-coveralls/php-coveralls": "^2.5"
},
"autoload": {
"psr-4": {
@@ -24,13 +24,13 @@
},
"extra": {
"branch-alias": {
- "dev-master": "1.2.x-dev"
+ "dev-master": "1.3.x-dev"
}
},
"scripts": {
- "lint": "vendor/bin/php-cs-fixer -vvv fix --using-cache=no --dry-run .",
- "lint-fix": "vendor/bin/php-cs-fixer -vvv fix --using-cache=no .",
- "test": "vendor/bin/phpunit --colors=always",
+ "lint": "PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer -vvv fix --using-cache=no --dry-run .",
+ "lint-fix": "PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer -vvv fix --using-cache=no .",
+ "test": "XDEBUG_MODE=coverage vendor/bin/phpunit",
"serve-examples": "@php -S localhost:8080 -t examples"
},
"config": {
diff --git a/php-google-recaptcha.spec b/php-google-recaptcha.spec
index adbde8b..8cecbf2 100644
--- a/php-google-recaptcha.spec
+++ b/php-google-recaptcha.spec
@@ -1,12 +1,12 @@
# remirepo/fedora spec file for php-google-recaptcha
#
-# Copyright (c) 2017-2020 Remi Collet
-# License: CC-BY-SA
-# http://creativecommons.org/licenses/by-sa/4.0/
+# SPDX-FileCopyrightText: Copyright 2017-2025 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
-%global gh_commit 614f25a9038be4f3f2da7cbfd778dc5b357d2419
+%global gh_commit 56522c261d2e8c58ba416c90f81a4cd9f2ed89b9
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner google
%global gh_project recaptcha
@@ -14,40 +14,36 @@
%global psr0 ReCaptcha
Name: php-%{gh_owner}-%{gh_project}
-Version: 1.2.4
+Version: 1.3.1
Release: 1%{?dist}
Summary: reCAPTCHA PHP client library
-License: BSD
+License: BSD-3-Clause
URL: https://github.com/%{gh_owner}/%{gh_project}
-Source0: %{url}/archive/%{gh_commit}/%{name}-%{version}-%{?gh_short}.tar.gz
+# git snapshot to retrieve test suite
+Source0: %{name}-%{version}-%{?gh_short}.tgz
+Source1: makesrc.sh
BuildArch: noarch
%if %{with_tests}
-BuildRequires: php(language) >= 5.5
+BuildRequires: php(language) >= 8
BuildRequires: php-curl
-BuildRequires: php-date
BuildRequires: php-json
-BuildRequires: php-pcre
-BuildRequires: php-spl
# For tests, from composer.json "require-dev": {
-# "phpunit/phpunit": "^4.8.36|^5.7.27|^6.59|^7.5.11",
-# "friendsofphp/php-cs-fixer": "^2.2.20|^2.15",
-BuildRequires: phpunit7 >= 7.5.11
-%global phpunit %{_bindir}/phpunit7
+# "phpunit/phpunit": "^10",
+# "friendsofphp/php-cs-fixer": "^3.14",
+# "php-coveralls/php-coveralls": "^2.5"
+BuildRequires: phpunit10
%endif
# For autoloader
BuildRequires: php-composer(fedora/autoloader)
# From composer.json, "require": {
-# "php": ">=5.5"
-Requires: php(language) >= 5.5
+# "php": ">=8"
+Requires: php(language) >= 8
# From phpcompatinfo report for 1.2.1
Requires: php-curl
-Requires: php-date
Requires: php-json
-Requires: php-pcre
-Requires: php-spl
# For generated autoloader
Requires: php-composer(fedora/autoloader)
@@ -94,10 +90,13 @@ cp -pr src/%{psr0} %{buildroot}%{_datadir}/php/%{psr0}
BOOTSTRAP=%{buildroot}%{_datadir}/php/%{psr0}/autoload.php
ret=0
-for cmdarg in "php %phpunit" php72 php73 php74; do
+for cmdarg in php php81 php82 php83 php84; do
if which $cmdarg; then
set $cmdarg
- $1 ${2:-%{_bindir}/phpunit7} --bootstrap=$BOOTSTRAP --verbose || ret=0
+ $1 ${2:-%{_bindir}/phpunit10} \
+ -d date.timezone=UTC \
+ --bootstrap=$BOOTSTRAP \
+ --no-coverage || ret=1
fi
done
exit $ret
@@ -107,7 +106,6 @@ exit $ret
%files
-%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc composer.json
%doc *.md
@@ -115,6 +113,14 @@ exit $ret
%changelog
+* Fri Jun 27 2025 Remi Collet <remi@remirepo.net> - 1.3.1-1
+- update to 1.3.1
+- re-license spec file to CECILL-2.1
+
+* Mon Feb 20 2023 Remi Collet <remi@remirepo.net> - 1.3.0-1
+- update to 1.3.0
+- raise dependency on PHP 8
+
* Wed Apr 1 2020 Remi Collet <remi@remirepo.net> - 1.2.4-1
- update to 1.2.4