From 7184fb4bbd3eac59da4b3ffddf867e9af04c591e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 7 Mar 2023 10:01:40 +0100 Subject: update to 2.7.0 raise dependency on php-mock-integration2 2.2.1 allow phpunit10 drop build dependency on phpspec/prophecy add build dependency on mockery/mockery --- php-mock-phpunit2.spec | 71 +++++++++++++++++++++++++++----------------------- 1 file changed, 39 insertions(+), 32 deletions(-) (limited to 'php-mock-phpunit2.spec') diff --git a/php-mock-phpunit2.spec b/php-mock-phpunit2.spec index 63a384a..b2df105 100644 --- a/php-mock-phpunit2.spec +++ b/php-mock-phpunit2.spec @@ -1,12 +1,12 @@ # remirepo/fedora spec file for php-mock-phpunit2 # -# Copyright (c) 2016-2022 Remi Collet -# License: CC-BY-SA +# Copyright (c) 2016-2023 Remi Collet +# License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%global gh_commit b9ba2db21e7e1c7deba98bc86dcfc6425fb4647d +%global gh_commit 97b3278e65863e53066f31adb85d92334c0ea07b %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner php-mock %global gh_project php-mock-phpunit @@ -14,7 +14,7 @@ %global major 2 Name: php-mock-phpunit%{major} -Version: 2.6.1 +Version: 2.7.0 Release: 1%{?dist} Summary: Mock built-in PHP functions with PHPUnit. @@ -27,25 +27,24 @@ BuildRequires: php(language) >= 7 %if %{with_tests} # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 -BuildRequires: (php-composer(php-mock/php-mock-integration) >= 2.1 with php-composer(php-mock/php-mock-integration) < 3) +BuildRequires: (php-composer(php-mock/php-mock-integration) >= 2.2.1 with php-composer(php-mock/php-mock-integration) < 3) BuildRequires: (php-composer(php-mock/php-mock) >= 2.2 with php-composer(php-mock/php-mock) < 3) # From composer.json "require-dev": { -# "phpspec/prophecy": "^1.10.3" -BuildRequires: (php-composer(phpspec/prophecy) >= 1.10.3 with php-composer(phpspec/prophecy) < 2) +# "mockery/mockery": "^1.3.6" +BuildRequires: (php-composer(mockery/mockery) >= 1.3.6 with php-composer(mockery/mockery) < 2) # remirepo:5 %else -BuildRequires: php-mock-integration2 >= 2.1 +BuildRequires: php-mock-integration2 >= 2.2.1 BuildRequires: php-mock2 >= 2.2 -BuildRequires: php-phpspec-prophecy >= 1.10.3 +BuildRequires: php-mockery >= 1.3.6 %endif -%if 0%{?fedora} >= 29 || 0%{?rhel} >= 8 BuildRequires: phpunit8 -%endif -# remirepo:6 -%if 0%{?fedora} >= 31 || 0%{?rhel} >= 8 BuildRequires: phpunit9 +# remirepo:6 +# phpunit10 waiting for review +%if 0%{?fedora} >= 38 || 0%{?rhel} >= 10 +BuildRequires: phpunit10 %else -BuildRequires: phpunit6 BuildRequires: phpunit7 %endif # For autoloader @@ -54,19 +53,19 @@ BuildRequires: php-composer(fedora/autoloader) # from composer.json, "require": { # "php": ">=7", -# "phpunit/phpunit": "^6 || ^7 || ^8 || ^9", -# "php-mock/php-mock-integration": "^2.1" +# "phpunit/phpunit": "^6 || ^7 || ^8 || ^9 || ^10", +# "php-mock/php-mock-integration": "^2.2.1" # "conflict": { # "phpunit/phpunit-mock-objects": "3.2.0" Requires: php(language) >= 7 # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 -Requires: (phpunit8 or phpunit9) -Requires: (php-composer(php-mock/php-mock-integration) >= 2.1 with php-composer(php-mock/php-mock-integration) < 3) +Recommends: (phpunit8 or phpunit9 or phpunit10) +Requires: (php-composer(php-mock/php-mock-integration) >= 2.2.1 with php-composer(php-mock/php-mock-integration) < 3) Requires: (php-composer(php-mock/php-mock) >= 2.2 with php-composer(php-mock/php-mock) < 3) # remirepo:4 %else -Requires: php-mock-integration2 >= 2.1 +Requires: php-mock-integration2 >= 2.2.1 Requires: php-mock2 >= 2.2 %endif # From phpcompatinfo report from version 2.1.0 @@ -118,22 +117,14 @@ cat << 'EOF' | tee vendor/autoload.php - 2.7.0-1 +- update to 2.7.0 +- raise dependency on php-mock-integration2 2.2.1 +- allow phpunit10 +- drop build dependency on phpspec/prophecy +- add build dependency on mockery/mockery + * Mon Sep 12 2022 Remi Collet - 2.6.1-1 - update to 2.6.1 -- add dependency on phpspec/prophecy +- add build dependency on phpspec/prophecy * Tue Mar 23 2021 Remi Collet - 2.6.0-4 - drop dependency on phpunit6 -- cgit