diff options
author | Remi Collet <remi@remirepo.net> | 2022-11-18 14:56:08 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2022-11-18 14:56:08 +0100 |
commit | 2b406068abb0ba29da54e244a2436b5e24c3a3e5 (patch) | |
tree | 457dd3c042fbd10dd22607b6bf3ccda90450fcd2 /php-laminas-recaptcha.spec | |
parent | 2e4e3080ca6e32417e7929f3b8bd2b432e23531c (diff) |
update to 3.5.0
raise dependency on PHP 8.0
drop dependency on laminas-json
Diffstat (limited to 'php-laminas-recaptcha.spec')
-rw-r--r-- | php-laminas-recaptcha.spec | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/php-laminas-recaptcha.spec b/php-laminas-recaptcha.spec index 552aa72..2ee4bf0 100644 --- a/php-laminas-recaptcha.spec +++ b/php-laminas-recaptcha.spec @@ -1,12 +1,12 @@ # remirepo/Fedora spec file for php-laminas-recaptcha # -# Copyright (c) 2015-2021 Remi Collet +# Copyright (c) 2015-2022 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%global gh_commit f3bdb2fcaf859b9f725f397dc1bc38b4a7696a71 +%global gh_commit 64c72f1f941c15df07b4ab0985b2f7cc1d492ba9 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner laminas %global gh_project laminas-recaptcha @@ -17,7 +17,7 @@ %global with_tests 0%{!?_without_tests:1} Name: php-%{gh_project} -Version: 3.4.0 +Version: 3.5.0 Release: 1%{?dist} Summary: %{namespace} Framework %{library} component @@ -29,57 +29,54 @@ Source1: makesrc.sh BuildArch: noarch # Tests %if %{with_tests} -BuildRequires: php(language) >= 7.3 +BuildRequires: php(language) >= 8.0 BuildRequires: php-json # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 BuildRequires: (php-autoloader(%{gh_owner}/laminas-http) >= 2.15 with php-autoloader(%{gh_owner}/laminas-http) < 3) -BuildRequires: (php-autoloader(%{gh_owner}/laminas-json) >= 3.3 with php-autoloader(%{gh_owner}/laminas-json) < 4) -BuildRequires: (php-autoloader(%{gh_owner}/laminas-stdlib) >= 3.6 with php-autoloader(%{gh_owner}/laminas-stdlib) < 4) +BuildRequires: (php-autoloader(%{gh_owner}/laminas-stdlib) >= 3.10.1 with php-autoloader(%{gh_owner}/laminas-stdlib) < 4) BuildRequires: (php-autoloader(%{gh_owner}/laminas-zendframework-bridge) >= 1.1 with php-autoloader(%{gh_owner}/laminas-zendframework-bridge) < 2) # From composer.json, "require-dev": { -# "laminas/laminas-coding-standard": "~2.3.0", +# "laminas/laminas-coding-standard": "~2.4.0", # "laminas/laminas-config": "^3.7", # "laminas/laminas-validator": "^2.15", -# "phpunit/phpunit": "^9.5.4" +# "phpunit/phpunit": "^9.5.26", +# "psalm/plugin-phpunit": "^0.18.0", +# "vimeo/psalm": "^4.29.0" BuildRequires: (php-autoloader(%{gh_owner}/laminas-config) >= 3.7 with php-autoloader(%{gh_owner}/laminas-config) < 4) BuildRequires: (php-autoloader(%{gh_owner}/laminas-validator) >= 2.15 with php-autoloader(%{gh_owner}/laminas-validator) < 3) # remirepo:8 %else BuildRequires: php-laminas-http -BuildRequires: php-laminas-json BuildRequires: php-laminas-stdlib BuildRequires: php-laminas-zendframework-bridge BuildRequires: php-laminas-config3 BuildRequires: php-laminas-validator %endif %global phpunit %{_bindir}/phpunit9 -BuildRequires: phpunit9 >= 9.5.4 +BuildRequires: phpunit9 >= 9.5.26 %endif # Autoloader BuildRequires: php-fedora-autoloader-devel # From composer, "require": { -# "php": "^7.3 || ~8.0.0 || ~8.1.0", +# "php": "~8.0.0 || ~8.1.0 || ~8.2.0", # "ext-json": "*", # "laminas/laminas-http": "^2.15", -# "laminas/laminas-json": "^3.3", -# "laminas/laminas-stdlib": "^3.6" -Requires: php(language) >= 7.3 +# "laminas/laminas-stdlib": "^3.10.1" +Requires: php(language) >= 8.0 Requires: php-json # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 Requires: (php-autoloader(%{gh_owner}/laminas-http) >= 2.15 with php-autoloader(%{gh_owner}/laminas-http) < 3) -Requires: (php-autoloader(%{gh_owner}/laminas-json) >= 3.3 with php-autoloader(%{gh_owner}/laminas-json) < 4) -Requires: (php-autoloader(%{gh_owner}/laminas-stdlib) >= 3.6 with php-autoloader(%{gh_owner}/laminas-stdlib) < 4) +Requires: (php-autoloader(%{gh_owner}/laminas-stdlib) >= 3.10.1 with php-autoloader(%{gh_owner}/laminas-stdlib) < 4) Requires: (php-autoloader(%{gh_owner}/laminas-zendframework-bridge) >= 1.1 with php-autoloader(%{gh_owner}/laminas-zendframework-bridge) < 2) # From composer, "suggest": { # "laminas/laminas-validator": "~2.0, if using ReCaptcha's Mailhide API" Suggests: php-autoloader(%{gh_owner}/laminas-validator) -# remirepo:6 +# remirepo:5 %else Requires: php-laminas-http -Requires: php-laminas-json Requires: php-laminas-stdlib Requires: php-laminas-zendframework-bridge %endif @@ -115,7 +112,6 @@ phpab --template fedora --output src/autoload.php src cat << 'EOF' | tee -a src/autoload.php \Fedora\Autoloader\Dependencies::required([ '%{php_home}/%{namespace}/Http/autoload.php', - '%{php_home}/%{namespace}/Json/autoload.php', '%{php_home}/%{namespace}/Stdlib/autoload.php', ]); \Fedora\Autoloader\Dependencies::optional([ @@ -164,7 +160,7 @@ exit (class_exists("\\ZendService\\%{library}\\ReCaptcha") ? 0 : 1); : upstream test suite ret=0 -for cmdarg in "php %{phpunit}" php74 php80 php81; do +for cmdarg in "php %{phpunit}" php80 php81 php82; do if which $cmdarg; then set $cmdarg $1 ${2:-%{_bindir}/phpunit9} --exclude online --verbose || ret=1 @@ -188,6 +184,11 @@ exit $ret %changelog +* Fri Nov 18 2022 Remi Collet <remi@remirepo.net> - 3.5.0-1 +- update to 3.5.0 +- raise dependency on PHP 8.0 +- drop dependency on laminas-json + * Mon Nov 29 2021 Remi Collet <remi@remirepo.net> - 3.4.0-1 - update to 3.4.0 - keep compatibility using laminas-zendframework-bridge |