From 2736eedd3733dbcdce843954cd6908b30477f5f3 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 20 Jan 2023 09:11:12 +0000 Subject: [PATCH 01/12] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- php-phpspec-prophecy-phpunit.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-phpspec-prophecy-phpunit.spec b/php-phpspec-prophecy-phpunit.spec index e9f795c..0eecdcc 100644 --- a/php-phpspec-prophecy-phpunit.spec +++ b/php-phpspec-prophecy-phpunit.spec @@ -16,7 +16,7 @@ Name: php-%{gh_owner}-%{gh_project} Version: 2.0.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Integrating the Prophecy mocking library in PHPUnit test cases License: MIT @@ -110,6 +110,9 @@ exit $ret %changelog +* Fri Jan 20 2023 Fedora Release Engineering - 2.0.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Fri Jul 22 2022 Fedora Release Engineering - 2.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 7cec9759c36f1f4a30d95e1ca4e5c5727f845d63 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 19 Apr 2023 12:11:18 +0200 Subject: [PATCH 02/12] v2.0.2 --- .gitignore | 1 + php-phpspec-prophecy-phpunit.spec | 18 ++++++++++++------ sources | 2 +- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index aa1aa80..8cda81a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /php-phpspec-prophecy-phpunit-2.0.1-2d7a9df.tgz +/php-phpspec-prophecy-phpunit-2.0.2-9f26c22.tgz diff --git a/php-phpspec-prophecy-phpunit.spec b/php-phpspec-prophecy-phpunit.spec index 0eecdcc..6bd7987 100644 --- a/php-phpspec-prophecy-phpunit.spec +++ b/php-phpspec-prophecy-phpunit.spec @@ -1,7 +1,7 @@ # remirepo/fedora spec file for php-phpspec-prophecy-phpunit # -# Copyright (c) 2020 Remi Collet -# License: CC-BY-SA +# Copyright (c) 2020-2023 Remi Collet +# License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries @@ -9,14 +9,14 @@ %bcond_without tests -%global gh_commit 2d7a9df55f257d2cba9b1d0c0963a54960657177 +%global gh_commit 9f26c224a2fa335f33e6666cc078fbf388255e87 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner phpspec %global gh_project prophecy-phpunit Name: php-%{gh_owner}-%{gh_project} -Version: 2.0.1 -Release: 6%{?dist} +Version: 2.0.2 +Release: 1%{?dist} Summary: Integrating the Prophecy mocking library in PHPUnit test cases License: MIT @@ -82,15 +82,18 @@ phpab --output vendor/autoload.php fixtures tests cat << 'EOF' | tee -a vendor/autoload.php require_once '%{buildroot}%{_datadir}/php/Prophecy/PhpUnit/autoload.php'; +require_once '%{_datadir}/php/PHPUnit9/autoload.php'; EOF : check autoloader php %{buildroot}%{_datadir}/php/Prophecy/PhpUnit/autoload.php +: Fix expecteed path +sed -e 's:src/::' -i tests/MockFailure.phpt : upstream test suite ret=0 -for cmd in php php73 php74 php80; do +for cmd in php php80 php81 php82; do if which $cmd; then $cmd -d auto_prepend_file=vendor/autoload.php \ %{_bindir}/phpunit9 || ret=1 @@ -110,6 +113,9 @@ exit $ret %changelog +* Wed Apr 19 2023 Remi Collet - 2.0.2-1 +- update to 2.0.2 + * Fri Jan 20 2023 Fedora Release Engineering - 2.0.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild diff --git a/sources b/sources index 8f4e9bd..d3f14c8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-phpspec-prophecy-phpunit-2.0.1-2d7a9df.tgz) = 71cf6cfcb20d2371ca98f35add668503fa46fd508864976977834ef91ff52e4389a3fe9c5f0e8a07e5cbe3bf49fffeb7de16ebcf757077a9358d96e66bafe3c7 +SHA512 (php-phpspec-prophecy-phpunit-2.0.2-9f26c22.tgz) = 4942d0f77abb7e21616847e62216427aaf77c2217be60f9a225a560a3f8b2c1fb01014006c8d0925780de1497ff9ed0933a83e955e543954c693b215557da013 From cef1d56971339690a014cd58712eb38107347bad Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jul 2023 04:57:37 +0000 Subject: [PATCH 03/12] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- php-phpspec-prophecy-phpunit.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-phpspec-prophecy-phpunit.spec b/php-phpspec-prophecy-phpunit.spec index 6bd7987..110fa66 100644 --- a/php-phpspec-prophecy-phpunit.spec +++ b/php-phpspec-prophecy-phpunit.spec @@ -16,7 +16,7 @@ Name: php-%{gh_owner}-%{gh_project} Version: 2.0.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Integrating the Prophecy mocking library in PHPUnit test cases License: MIT @@ -113,6 +113,9 @@ exit $ret %changelog +* Fri Jul 21 2023 Fedora Release Engineering - 2.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Wed Apr 19 2023 Remi Collet - 2.0.2-1 - update to 2.0.2 From 623836ee9ad80bbf9ca7087c451163d95ff61f41 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 11 Dec 2023 09:15:19 +0100 Subject: [PATCH 04/12] update to 2.1.0 raise dependency on phpspec/prophecy 1.18 allow phpunit9 or phpunit10 --- .gitignore | 1 + php-phpspec-prophecy-phpunit.spec | 35 ++++++++++++++++++++----------- sources | 2 +- 3 files changed, 25 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 8cda81a..7884e98 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /php-phpspec-prophecy-phpunit-2.0.1-2d7a9df.tgz /php-phpspec-prophecy-phpunit-2.0.2-9f26c22.tgz +/php-phpspec-prophecy-phpunit-2.1.0-29f8114.tgz diff --git a/php-phpspec-prophecy-phpunit.spec b/php-phpspec-prophecy-phpunit.spec index 110fa66..d758d8d 100644 --- a/php-phpspec-prophecy-phpunit.spec +++ b/php-phpspec-prophecy-phpunit.spec @@ -9,14 +9,14 @@ %bcond_without tests -%global gh_commit 9f26c224a2fa335f33e6666cc078fbf388255e87 +%global gh_commit 29f8114c2c319a4308e6b070902211e062efa392 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner phpspec %global gh_project prophecy-phpunit Name: php-%{gh_owner}-%{gh_project} -Version: 2.0.2 -Release: 2%{?dist} +Version: 2.1.0 +Release: 1%{?dist} Summary: Integrating the Prophecy mocking library in PHPUnit test cases License: MIT @@ -27,7 +27,8 @@ Source2: makesrc.sh BuildArch: noarch BuildRequires: php(language) >= 7.3 %if %{with tests} -BuildRequires: (php-composer(phpspec/prophecy) >= 1.3 with php-composer(phpspec/prophecy) < 2) +BuildRequires: (php-composer(phpspec/prophecy) >= 1.18 with php-composer(phpspec/prophecy) < 2) +BuildRequires: phpunit10 >= 10.1 BuildRequires: phpunit9 >= 9.1 %endif # Autoloader @@ -35,11 +36,11 @@ BuildRequires: php-fedora-autoloader-devel # from composer.json, "requires": { # "php": "^7.3 || ^8", -# "phpspec/prophecy": "^1.3", +# "phpspec/prophecy": "^1.18", # "phpunit/phpunit":"^9.1" Requires: php(language) >= 7.3 -Requires: (php-composer(phpspec/prophecy) >= 1.3 with php-composer(phpspec/prophecy) < 2) -Requires: phpunit9 >= 9.1 +Requires: (php-composer(phpspec/prophecy) >= 1.18 with php-composer(phpspec/prophecy) < 2) +Requires: (phpunit9 >= 9.1 or phpunit10 >= 10.1) # From phpcompatinfo report for version 2.0.1 #none # Autoloader @@ -78,11 +79,11 @@ cp -pr src/* %{buildroot}%{_datadir}/php/Prophecy/PhpUnit/ %if %{with tests} : Dev autoloader mkdir vendor -phpab --output vendor/autoload.php fixtures tests +phpab --output vendor/autoload.php.in fixtures tests -cat << 'EOF' | tee -a vendor/autoload.php +cat << 'EOF' | tee -a vendor/autoload.php.in require_once '%{buildroot}%{_datadir}/php/Prophecy/PhpUnit/autoload.php'; -require_once '%{_datadir}/php/PHPUnit9/autoload.php'; +require_once '%{_datadir}/php/@PHPUNIT@/autoload.php'; EOF : check autoloader @@ -93,10 +94,15 @@ sed -e 's:src/::' -i tests/MockFailure.phpt : upstream test suite ret=0 -for cmd in php php80 php81 php82; do +for cmd in php php81 php82 php83; do if which $cmd; then + sed -e 's/@PHPUNIT@/PHPUnit9/' vendor/autoload.php.in > vendor/autoload.php $cmd -d auto_prepend_file=vendor/autoload.php \ - %{_bindir}/phpunit9 || ret=1 + %{_bindir}/phpunit9 --no-coverage|| ret=1 + + sed -e 's/@PHPUNIT@/PHPUnit10/' vendor/autoload.php.in > vendor/autoload.php + $cmd -d auto_prepend_file=vendor/autoload.php \ + %{_bindir}/phpunit10 --no-coverage|| ret=1 fi done exit $ret @@ -113,6 +119,11 @@ exit $ret %changelog +* Mon Dec 11 2023 Remi Collet - 2.1.0-1 +- update to 2.1.0 +- raise dependency on phpspec/prophecy 1.18 +- allow phpunit9 or phpunit10 + * Fri Jul 21 2023 Fedora Release Engineering - 2.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild diff --git a/sources b/sources index d3f14c8..222dc35 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-phpspec-prophecy-phpunit-2.0.2-9f26c22.tgz) = 4942d0f77abb7e21616847e62216427aaf77c2217be60f9a225a560a3f8b2c1fb01014006c8d0925780de1497ff9ed0933a83e955e543954c693b215557da013 +SHA512 (php-phpspec-prophecy-phpunit-2.1.0-29f8114.tgz) = 44225dbb00cbc343bb8fe126ab3cc9a3c218d8891c6de9dcab81bb5e68f39d96b51028a989bf143e600a29418bc7dd25fa84af52381c69fb5069fe218e4e85f1 From c7d615660fa88bb8401cb884817e22a20651a3b2 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 21 Jan 2024 21:17:05 +0000 Subject: [PATCH 05/12] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- php-phpspec-prophecy-phpunit.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-phpspec-prophecy-phpunit.spec b/php-phpspec-prophecy-phpunit.spec index d758d8d..18f8082 100644 --- a/php-phpspec-prophecy-phpunit.spec +++ b/php-phpspec-prophecy-phpunit.spec @@ -16,7 +16,7 @@ Name: php-%{gh_owner}-%{gh_project} Version: 2.1.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Integrating the Prophecy mocking library in PHPUnit test cases License: MIT @@ -119,6 +119,9 @@ exit $ret %changelog +* Sun Jan 21 2024 Fedora Release Engineering - 2.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Mon Dec 11 2023 Remi Collet - 2.1.0-1 - update to 2.1.0 - raise dependency on phpspec/prophecy 1.18 From 3a47a34ea391b21949d9dd029f6429424b33f80c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jan 2024 23:04:26 +0000 Subject: [PATCH 06/12] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- php-phpspec-prophecy-phpunit.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-phpspec-prophecy-phpunit.spec b/php-phpspec-prophecy-phpunit.spec index 18f8082..519ff57 100644 --- a/php-phpspec-prophecy-phpunit.spec +++ b/php-phpspec-prophecy-phpunit.spec @@ -16,7 +16,7 @@ Name: php-%{gh_owner}-%{gh_project} Version: 2.1.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Integrating the Prophecy mocking library in PHPUnit test cases License: MIT @@ -119,6 +119,9 @@ exit $ret %changelog +* Thu Jan 25 2024 Fedora Release Engineering - 2.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Sun Jan 21 2024 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 3199cbe5575edaa3e854713458ebca0a7b827181 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 5 Mar 2024 10:04:16 +0100 Subject: [PATCH 07/12] update to 2.2.0 allow phpunit11 --- .gitignore | 1 + php-phpspec-prophecy-phpunit.spec | 23 +++++++++++++++++------ sources | 2 +- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 7884e98..7b89078 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /php-phpspec-prophecy-phpunit-2.0.1-2d7a9df.tgz /php-phpspec-prophecy-phpunit-2.0.2-9f26c22.tgz /php-phpspec-prophecy-phpunit-2.1.0-29f8114.tgz +/php-phpspec-prophecy-phpunit-2.2.0-16e1247.tgz diff --git a/php-phpspec-prophecy-phpunit.spec b/php-phpspec-prophecy-phpunit.spec index 519ff57..c5e58ce 100644 --- a/php-phpspec-prophecy-phpunit.spec +++ b/php-phpspec-prophecy-phpunit.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-phpspec-prophecy-phpunit # -# Copyright (c) 2020-2023 Remi Collet +# Copyright (c) 2020-2024 Remi Collet # License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -9,14 +9,14 @@ %bcond_without tests -%global gh_commit 29f8114c2c319a4308e6b070902211e062efa392 +%global gh_commit 16e1247e139434bce0bac09848bc5c8d882940fc %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner phpspec %global gh_project prophecy-phpunit Name: php-%{gh_owner}-%{gh_project} -Version: 2.1.0 -Release: 3%{?dist} +Version: 2.2.0 +Release: 1%{?dist} Summary: Integrating the Prophecy mocking library in PHPUnit test cases License: MIT @@ -37,10 +37,10 @@ BuildRequires: php-fedora-autoloader-devel # from composer.json, "requires": { # "php": "^7.3 || ^8", # "phpspec/prophecy": "^1.18", -# "phpunit/phpunit":"^9.1" +# "phpunit/phpunit":"^9.1 || ^10.1 || ^11.0" Requires: php(language) >= 7.3 Requires: (php-composer(phpspec/prophecy) >= 1.18 with php-composer(phpspec/prophecy) < 2) -Requires: (phpunit9 >= 9.1 or phpunit10 >= 10.1) +Requires: (phpunit9 >= 9.1 or phpunit10 >= 10.1 or phpunit11 >= 11.0) # From phpcompatinfo report for version 2.0.1 #none # Autoloader @@ -105,6 +105,13 @@ for cmd in php php81 php82 php83; do %{_bindir}/phpunit10 --no-coverage|| ret=1 fi done +for cmd in php php82 php83; do + if which %{_bindir}/phpunit11 && which $cmd; then + sed -e 's/@PHPUNIT@/PHPUnit11/' vendor/autoload.php.in > vendor/autoload.php + $cmd -d auto_prepend_file=vendor/autoload.php \ + %{_bindir}/phpunit11 --no-coverage|| ret=1 + fi +done exit $ret %else : Test suite disabled @@ -119,6 +126,10 @@ exit $ret %changelog +* Fri Mar 1 2024 Remi Collet - 2.2.0-1 +- update to 2.2.0 +- allow phpunit11 + * Thu Jan 25 2024 Fedora Release Engineering - 2.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git a/sources b/sources index 222dc35..77a848b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-phpspec-prophecy-phpunit-2.1.0-29f8114.tgz) = 44225dbb00cbc343bb8fe126ab3cc9a3c218d8891c6de9dcab81bb5e68f39d96b51028a989bf143e600a29418bc7dd25fa84af52381c69fb5069fe218e4e85f1 +SHA512 (php-phpspec-prophecy-phpunit-2.2.0-16e1247.tgz) = 4d939319be5199c2b49612f6d4a049cc29da35d59e46a99fa969026a5be5de6c6cbf25a95c07b8bcdc90f26bc42216afaea13c3c04a509effadbfbfe5ce4a688 From 8d03d6ac97b349302c24d7bb03e5881768e989bb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jul 2024 07:18:31 +0000 Subject: [PATCH 08/12] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- php-phpspec-prophecy-phpunit.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-phpspec-prophecy-phpunit.spec b/php-phpspec-prophecy-phpunit.spec index c5e58ce..2e4c3a0 100644 --- a/php-phpspec-prophecy-phpunit.spec +++ b/php-phpspec-prophecy-phpunit.spec @@ -16,7 +16,7 @@ Name: php-%{gh_owner}-%{gh_project} Version: 2.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Integrating the Prophecy mocking library in PHPUnit test cases License: MIT @@ -126,6 +126,9 @@ exit $ret %changelog +* Fri Jul 19 2024 Fedora Release Engineering - 2.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Fri Mar 1 2024 Remi Collet - 2.2.0-1 - update to 2.2.0 - allow phpunit11 From 10dab174c4d18ec64d89fd215d919d93fb2a8f18 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 21 Nov 2024 08:07:30 +0100 Subject: [PATCH 09/12] v2.3.0 --- .gitignore | 1 + php-phpspec-prophecy-phpunit.spec | 13 ++++++++----- sources | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 7b89078..9f247db 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /php-phpspec-prophecy-phpunit-2.0.2-9f26c22.tgz /php-phpspec-prophecy-phpunit-2.1.0-29f8114.tgz /php-phpspec-prophecy-phpunit-2.2.0-16e1247.tgz +/php-phpspec-prophecy-phpunit-2.3.0-8819516.tgz diff --git a/php-phpspec-prophecy-phpunit.spec b/php-phpspec-prophecy-phpunit.spec index 2e4c3a0..40cb6d0 100644 --- a/php-phpspec-prophecy-phpunit.spec +++ b/php-phpspec-prophecy-phpunit.spec @@ -9,14 +9,14 @@ %bcond_without tests -%global gh_commit 16e1247e139434bce0bac09848bc5c8d882940fc +%global gh_commit 8819516c1b489ecee4c60db5f5432fac1ea8ac6f %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner phpspec %global gh_project prophecy-phpunit Name: php-%{gh_owner}-%{gh_project} -Version: 2.2.0 -Release: 2%{?dist} +Version: 2.3.0 +Release: 1%{?dist} Summary: Integrating the Prophecy mocking library in PHPUnit test cases License: MIT @@ -94,7 +94,7 @@ sed -e 's:src/::' -i tests/MockFailure.phpt : upstream test suite ret=0 -for cmd in php php81 php82 php83; do +for cmd in php php81 php82 php83 php84; do if which $cmd; then sed -e 's/@PHPUNIT@/PHPUnit9/' vendor/autoload.php.in > vendor/autoload.php $cmd -d auto_prepend_file=vendor/autoload.php \ @@ -105,7 +105,7 @@ for cmd in php php81 php82 php83; do %{_bindir}/phpunit10 --no-coverage|| ret=1 fi done -for cmd in php php82 php83; do +for cmd in php php82 php83 php84; do if which %{_bindir}/phpunit11 && which $cmd; then sed -e 's/@PHPUNIT@/PHPUnit11/' vendor/autoload.php.in > vendor/autoload.php $cmd -d auto_prepend_file=vendor/autoload.php \ @@ -126,6 +126,9 @@ exit $ret %changelog +* Thu Nov 21 2024 Remi Collet - 2.3.0-1 +- update to 2.3.0 + * Fri Jul 19 2024 Fedora Release Engineering - 2.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git a/sources b/sources index 77a848b..8dc09b9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-phpspec-prophecy-phpunit-2.2.0-16e1247.tgz) = 4d939319be5199c2b49612f6d4a049cc29da35d59e46a99fa969026a5be5de6c6cbf25a95c07b8bcdc90f26bc42216afaea13c3c04a509effadbfbfe5ce4a688 +SHA512 (php-phpspec-prophecy-phpunit-2.3.0-8819516.tgz) = 507435b361f9b3b4398ca994f7098a076755887fae6e50a099fd6bc07f94473e619cf2171e314c899b35cad0171a0cdc3e9b8d2ef1b6b6aad8e1ee2d285fba40 From e8e551e3e4ff3c4e0cebdad6875b1ecdfe90e5bf Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 09:32:16 +0000 Subject: [PATCH 10/12] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- php-phpspec-prophecy-phpunit.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-phpspec-prophecy-phpunit.spec b/php-phpspec-prophecy-phpunit.spec index 40cb6d0..d8c9ea3 100644 --- a/php-phpspec-prophecy-phpunit.spec +++ b/php-phpspec-prophecy-phpunit.spec @@ -16,7 +16,7 @@ Name: php-%{gh_owner}-%{gh_project} Version: 2.3.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Integrating the Prophecy mocking library in PHPUnit test cases License: MIT @@ -126,6 +126,9 @@ exit $ret %changelog +* Sat Jan 18 2025 Fedora Release Engineering - 2.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Thu Nov 21 2024 Remi Collet - 2.3.0-1 - update to 2.3.0 From 14f003e35d809a676ab868cf96fb5a814e00abdd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 26 May 2025 08:25:46 +0200 Subject: [PATCH 11/12] update to 2.4.0 (no change) allow phpunit12 re-license spec file to CECILL-2.1 --- .gitignore | 1 + php-phpspec-prophecy-phpunit.spec | 30 ++++++++++++++++++++++-------- sources | 2 +- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 9f247db..1bf71ba 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /php-phpspec-prophecy-phpunit-2.1.0-29f8114.tgz /php-phpspec-prophecy-phpunit-2.2.0-16e1247.tgz /php-phpspec-prophecy-phpunit-2.3.0-8819516.tgz +/php-phpspec-prophecy-phpunit-2.4.0-d3c2804.tgz diff --git a/php-phpspec-prophecy-phpunit.spec b/php-phpspec-prophecy-phpunit.spec index d8c9ea3..4dc8958 100644 --- a/php-phpspec-prophecy-phpunit.spec +++ b/php-phpspec-prophecy-phpunit.spec @@ -1,22 +1,22 @@ # remirepo/fedora spec file for php-phpspec-prophecy-phpunit # -# Copyright (c) 2020-2024 Remi Collet -# License: CC-BY-SA-4.0 -# http://creativecommons.org/licenses/by-sa/4.0/ +# SPDX-FileCopyrightText: Copyright 2020-2025 Remi Collet +# SPDX-License-Identifier: CECILL-2.1 +# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # # Please, preserve the changelog entries # %bcond_without tests -%global gh_commit 8819516c1b489ecee4c60db5f5432fac1ea8ac6f +%global gh_commit d3c28041d9390c9bca325a08c5b2993ac855bded %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner phpspec %global gh_project prophecy-phpunit Name: php-%{gh_owner}-%{gh_project} -Version: 2.3.0 -Release: 2%{?dist} +Version: 2.4.0 +Release: 1%{?dist} Summary: Integrating the Prophecy mocking library in PHPUnit test cases License: MIT @@ -28,6 +28,8 @@ BuildArch: noarch BuildRequires: php(language) >= 7.3 %if %{with tests} BuildRequires: (php-composer(phpspec/prophecy) >= 1.18 with php-composer(phpspec/prophecy) < 2) +BuildRequires: phpunit12 >= 12.0 +BuildRequires: phpunit11 >= 11.0 BuildRequires: phpunit10 >= 10.1 BuildRequires: phpunit9 >= 9.1 %endif @@ -37,10 +39,10 @@ BuildRequires: php-fedora-autoloader-devel # from composer.json, "requires": { # "php": "^7.3 || ^8", # "phpspec/prophecy": "^1.18", -# "phpunit/phpunit":"^9.1 || ^10.1 || ^11.0" +# "phpunit/phpunit":"^9.1 || ^10.1 || ^11.0 || ^12.0" Requires: php(language) >= 7.3 Requires: (php-composer(phpspec/prophecy) >= 1.18 with php-composer(phpspec/prophecy) < 2) -Requires: (phpunit9 >= 9.1 or phpunit10 >= 10.1 or phpunit11 >= 11.0) +Requires: (phpunit9 >= 9.1 or phpunit10 >= 10.1 or phpunit11 >= 11.0 or phpunit12 >= 12.0) # From phpcompatinfo report for version 2.0.1 #none # Autoloader @@ -112,6 +114,13 @@ for cmd in php php82 php83 php84; do %{_bindir}/phpunit11 --no-coverage|| ret=1 fi done +for cmd in php php83 php84; do + if which %{_bindir}/phpunit12 && which $cmd; then + sed -e 's/@PHPUNIT@/PHPUnit12/' vendor/autoload.php.in > vendor/autoload.php + $cmd -d auto_prepend_file=vendor/autoload.php \ + %{_bindir}/phpunit11 --no-coverage|| ret=1 + fi +done exit $ret %else : Test suite disabled @@ -126,6 +135,11 @@ exit $ret %changelog +* Mon May 26 2025 Remi Collet - 2.4.0-1 +- update to 2.4.0 (no change) +- allow phpunit12 +- re-license spec file to CECILL-2.1 + * Sat Jan 18 2025 Fedora Release Engineering - 2.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git a/sources b/sources index 8dc09b9..e8e393d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-phpspec-prophecy-phpunit-2.3.0-8819516.tgz) = 507435b361f9b3b4398ca994f7098a076755887fae6e50a099fd6bc07f94473e619cf2171e314c899b35cad0171a0cdc3e9b8d2ef1b6b6aad8e1ee2d285fba40 +SHA512 (php-phpspec-prophecy-phpunit-2.4.0-d3c2804.tgz) = 5075b397ef393ef4da8246eeb7087c6b6f3c4c654ff27e11396f58f8e75b1ec4562f114c07aaaa9b4dcf5718b4b337235bcf864236f9fb734dd7bf605b1f3069 From b368ed65c2ec317591a745e9fc2001b9333301d8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 05:26:14 +0000 Subject: [PATCH 12/12] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- php-phpspec-prophecy-phpunit.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-phpspec-prophecy-phpunit.spec b/php-phpspec-prophecy-phpunit.spec index 4dc8958..62b5a2e 100644 --- a/php-phpspec-prophecy-phpunit.spec +++ b/php-phpspec-prophecy-phpunit.spec @@ -16,7 +16,7 @@ Name: php-%{gh_owner}-%{gh_project} Version: 2.4.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Integrating the Prophecy mocking library in PHPUnit test cases License: MIT @@ -135,6 +135,9 @@ exit $ret %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 2.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Mon May 26 2025 Remi Collet - 2.4.0-1 - update to 2.4.0 (no change) - allow phpunit12