From 930ca23816602a0a097c5b24db39aa29dd6250f2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 10 Jan 2022 09:31:53 +0100 Subject: update to 3.4.0 raise dependency on laminas-http 2.15.1 raise dependency on laminas-json 3.3.0 raise dependency on laminas-server 2.11.0 keep compatibility using laminas-zendframework-bridge as this is only used using compat autolader --- php-laminas-json-server.spec | 41 +++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) (limited to 'php-laminas-json-server.spec') diff --git a/php-laminas-json-server.spec b/php-laminas-json-server.spec index dfb4386..4178329 100644 --- a/php-laminas-json-server.spec +++ b/php-laminas-json-server.spec @@ -1,13 +1,13 @@ # remirepo/Fedora spec file for php-laminas-json-server # -# 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 bootstrap 0 -%global gh_commit 45a55cbdcec6806c6f8cc81e40df5c9738269a0f +%global gh_commit 436b1375d3fd6ea58919881d9ec9d3652156ef24 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner laminas %global gh_project laminas-json-server @@ -23,7 +23,7 @@ %endif Name: php-%{gh_project} -Version: 3.3.0 +Version: 3.4.0 Release: 1%{?dist} Summary: %{namespace} Json-Server is a JSON-RPC server implementation @@ -41,14 +41,16 @@ BuildRequires: php-reflection BuildRequires: php-spl # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 -BuildRequires: (php-autoloader(%{gh_owner}/laminas-http) >= 2.7 with php-autoloader(%{gh_owner}/laminas-http) < 3) -BuildRequires: (php-autoloader(%{gh_owner}/laminas-json) >= 3.0 with php-autoloader(%{gh_owner}/laminas-json) < 4) -BuildRequires: (php-autoloader(%{gh_owner}/laminas-server) >= 2.7 with php-autoloader(%{gh_owner}/laminas-server) < 3) +BuildRequires: (php-autoloader(%{gh_owner}/laminas-http) >= 2.15.1 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-server) >= 2.11 with php-autoloader(%{gh_owner}/laminas-server) < 3) BuildRequires: (php-autoloader(%{gh_owner}/laminas-zendframework-bridge) >= 1.0 with php-autoloader(%{gh_owner}/laminas-zendframework-bridge) < 2) # From composer, "require-dev": { # "ext-json": "*", # "laminas/laminas-coding-standard": "~1.0.0", -# "phpunit/phpunit": "^9.3.0" +# "phpunit/phpunit": "^9.5.11", +# "psalm/plugin-phpunit": "^0.16.1", +# "vimeo/psalm": "^4.18.0" # remirepo:6 %else BuildRequires: php-laminas-http @@ -58,23 +60,22 @@ BuildRequires: php-laminas-zendframework-bridge %endif BuildRequires: php-json %global phpunit %{_bindir}/phpunit9 -BuildRequires: phpunit9 >= 9.3.0 +BuildRequires: phpunit9 >= 9.5.11 %endif # Autoloader BuildRequires: php-fedora-autoloader-devel # From composer, "require": { # "php": "^7.3 || ~8.0.0", -# "laminas/laminas-http": "^2.7", -# "laminas/laminas-json": "^2.6.1 || ^3.0", -# "laminas/laminas-server": "^2.7", -# "laminas/laminas-zendframework-bridge": "^1.0" +# "laminas/laminas-http": "^2.15.1", +# "laminas/laminas-json": "^3.3.0", +# "laminas/laminas-server": "^2.11.0", Requires: php(language) >= 7.3 # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 -Requires: (php-autoloader(%{gh_owner}/laminas-http) >= 2.7 with php-autoloader(%{gh_owner}/laminas-http) < 3) -Requires: (php-autoloader(%{gh_owner}/laminas-json) >= 3.0 with php-autoloader(%{gh_owner}/laminas-json) < 4) -Requires: (php-autoloader(%{gh_owner}/laminas-server) >= 2.7 with php-autoloader(%{gh_owner}/laminas-server) < 4) +Requires: (php-autoloader(%{gh_owner}/laminas-http) >= 2.15.1 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-server) >= 2.11 with php-autoloader(%{gh_owner}/laminas-server) < 4) Requires: (php-autoloader(%{gh_owner}/laminas-zendframework-bridge) >= 1.0 with php-autoloader(%{gh_owner}/laminas-zendframework-bridge) < 2) # remirepo:6 %else @@ -160,7 +161,7 @@ exit (class_exists("\\Zend\\%{library}\\%{subproj}\\Response") ? 0 : 1); : upstream test suite ret=0 -for cmdarg in "php %{phpunit}" php73 php74 php80; do +for cmdarg in "php %{phpunit}" php74 php80 php81; do if which $cmdarg; then set $cmdarg $1 ${2:-%{_bindir}/phpunit9} --verbose || ret=1 @@ -183,6 +184,14 @@ exit $ret %changelog +* Mon Jan 10 2022 Remi Collet - 3.4.0-1 +- update to 3.4.0 +- raise dependency on laminas-http 2.15.1 +- raise dependency on laminas-json 3.3.0 +- raise dependency on laminas-server 2.11.0 +- keep compatibility using laminas-zendframework-bridge + as this is only used using compat autolader + * Thu Apr 8 2021 Remi Collet - 3.3.0-1 - update to 3.3.0 (no change) - raise dependency on PHP 7.3 -- cgit