From 20c33cb8c572af4feba266b1fad0afbdb57503c6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 23 Mar 2021 10:41:27 +0100 Subject: update to 4.2.4 switch to phpunit9 with yoast/phpunit-polyfills --- php-consolidation-annotated-command.spec | 47 ++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 17 deletions(-) (limited to 'php-consolidation-annotated-command.spec') diff --git a/php-consolidation-annotated-command.spec b/php-consolidation-annotated-command.spec index 8be5648..6a3a268 100644 --- a/php-consolidation-annotated-command.spec +++ b/php-consolidation-annotated-command.spec @@ -2,7 +2,7 @@ # # Fedora spec file for php-consolidation-annotated-command # -# Copyright (c) 2016-2020 Shawn Iwinski +# Copyright (c) 2016-2021 Shawn Iwinski # # License: MIT # http://opensource.org/licenses/MIT @@ -12,8 +12,8 @@ %global github_owner consolidation %global github_name annotated-command -%global github_version 4.2.1 -%global github_commit ef6b7e662ce2d8b0af9004307bdf26350aad4df1 +%global github_version 4.2.4 +%global github_commit ec297e05cb86557671c2d6cbb1bebba6c7ae2c60 %global composer_vendor consolidation %global composer_project annotated-command @@ -28,16 +28,19 @@ # NOTE: Max version not 3.0 because there is no version 2 at this time %global psr_log_min_ver 1.0.1 %global psr_log_max_ver 2.0 -# "symfony/console": "^4.4.8|^5"" +# "symfony/console": "^4.4.8|~5.1.0" # "symfony/event-dispatcher": "^4.4.8|^5"" # "symfony/finder": "^4.4.8|^5"" %global symfony_min_ver 4.4.8 %global symfony_max_ver 6.0 -# "phpunit/phpunit": "^6" -%global phpunit_require phpunit6 -%global phpunit_min_ver 6 -%global phpunit_exec phpunit6 +# "phpunit/phpunit": ">=7.5.20" +%global phpunit_require phpunit9 +%global phpunit_min_ver 9 +%global phpunit_exec phpunit9 +# "yoast/phpunit-polyfills": "^0.2.0" +%global polyfills_min_ver 0.2 +%global polyfills_max_ver 1 # Build using "--without tests" to disable tests %global with_tests 0%{!?_without_tests:1} @@ -76,6 +79,7 @@ BuildRequires: (php-composer(psr/log) >= %{psr_log_min_ver} with php-composer(ps BuildRequires: (php-composer(symfony/console) >= %{symfony_min_ver} with php-composer(symfony/console) < %{symfony_max_ver}) BuildRequires: (php-composer(symfony/event-dispatcher) >= %{symfony_min_ver} with php-composer(symfony/event-dispatcher) < %{symfony_max_ver}) BuildRequires: (php-composer(symfony/finder) >= %{symfony_min_ver} with php-composer(symfony/finder) < %{symfony_max_ver}) +BuildRequires: (php-composer(yoast/phpunit-polyfills) >= %{polyfills_min_ver} with php-composer(yoast/phpunit-polyfills) < %{polyfills_max_ver}) %else BuildRequires: php-composer(consolidation/output-formatters) < %{consolidation_output_formatters_max_ver} BuildRequires: php-composer(consolidation/output-formatters) >= %{consolidation_output_formatters_min_ver} @@ -85,6 +89,8 @@ BuildRequires: php-composer(psr/log) >= %{psr_log_min_ver} BuildRequires: php-symfony4-console >= %{symfony_min_ver} BuildRequires: php-symfony4-event-dispatcher >= %{symfony_min_ver} BuildRequires: php-symfony4-finder >= %{symfony_min_ver} +BuildRequires: php-composer(yoast/phpunit-polyfills) < %{polyfills_max_ver} +BuildRequires: php-composer(yoast/phpunit-polyfills) >= %{polyfills_min_ver} %endif ## phpcompatinfo (computed from version 4.2.1) BuildRequires: php-dom @@ -172,19 +178,20 @@ cp -rp src %{buildroot}%{phpdir}/Consolidation/AnnotatedCommand %check %if %{with_tests} : Create tests bootstrap -cat <<'BOOTSTRAP' | tee bootstrap.php +mkdir vendor +cat <<'BOOTSTRAP' | tee vendor/autoload.php - 4.2.4-1 +- update to 4.2.4 +- switch to phpunit9 with yoast/phpunit-polyfills + * Mon Sep 07 2020 Shawn Iwinski - 4.2.1-1 - Update to 4.2.1 (RHBZ #1850389) -- cgit