From 1a70324e720bf2c2bf1a4e85f0b6c055a6c102f8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 12 Sep 2022 14:57:37 +0200 Subject: update to 2.6.1 add dependency on phpspec/prophecy --- composer.json | 3 +++ php-mock-phpunit2.spec | 25 +++++++++++++++++-------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index 406f8cb..ef911d4 100644 --- a/composer.json +++ b/composer.json @@ -22,6 +22,9 @@ "phpunit/phpunit": "^6 || ^7 || ^8 || ^9", "php-mock/php-mock-integration": "^2.1" }, + "require-dev": { + "phpspec/prophecy": "^1.10.3" + }, "archive": { "exclude": ["/tests"] } diff --git a/php-mock-phpunit2.spec b/php-mock-phpunit2.spec index 9bf82f8..63a384a 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-2021 Remi Collet +# Copyright (c) 2016-2022 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%global gh_commit 2877a0e58f12e91b64bf36ccd080a209dcbf6c30 +%global gh_commit b9ba2db21e7e1c7deba98bc86dcfc6425fb4647d %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner php-mock %global gh_project php-mock-phpunit @@ -14,8 +14,8 @@ %global major 2 Name: php-mock-phpunit%{major} -Version: 2.6.0 -Release: 4%{?dist} +Version: 2.6.1 +Release: 1%{?dist} Summary: Mock built-in PHP functions with PHPUnit. License: WTFPL @@ -27,12 +27,16 @@ 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) >= 2.2 with php-composer(php-mock/php-mock) < 3) -# remirepo:4 +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) >= 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) +# remirepo:5 %else BuildRequires: php-mock-integration2 >= 2.1 BuildRequires: php-mock2 >= 2.2 +BuildRequires: php-phpspec-prophecy >= 1.10.3 %endif %if 0%{?fedora} >= 29 || 0%{?rhel} >= 8 BuildRequires: phpunit8 @@ -114,6 +118,7 @@ cat << 'EOF' | tee vendor/autoload.php - 2.6.1-1 +- update to 2.6.1 +- add dependency on phpspec/prophecy + * Tue Mar 23 2021 Remi Collet - 2.6.0-4 - drop dependency on phpunit6 -- cgit