From d2de9c857aec804dd4f2f6bbf6dad251cd3fb363 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 19 Apr 2023 12:11:18 +0200 Subject: [PATCH] v2.0.2 (cherry picked from commit 7cec9759c36f1f4a30d95e1ca4e5c5727f845d63) --- .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 e9f795c..7385061 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: 5%{?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 Jul 22 2022 Fedora Release Engineering - 2.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_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