From 68c35c46f80fd9dd51170c4291bb73511cc7b1aa Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 22 Dec 2023 10:12:16 +0100 Subject: update to 9.2.30 raise dependency on nikic/php-parser 4.18 and allow 5.0 --- composer.json | 2 +- php-phpunit-php-code-coverage9.spec | 25 ++++++++++++++++--------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index 0f18174..3646210 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,7 @@ "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.15", + "nikic/php-parser": "^4.18 || ^5.0", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", "sebastian/code-unit-reverse-lookup": "^2.0.2", diff --git a/php-phpunit-php-code-coverage9.spec b/php-phpunit-php-code-coverage9.spec index 708cc79..ed75a4a 100644 --- a/php-phpunit-php-code-coverage9.spec +++ b/php-phpunit-php-code-coverage9.spec @@ -10,7 +10,7 @@ %bcond_without tests # Github -%global gh_commit 6a3a87ac2bbe33b25042753df8195ba4aa534c76 +%global gh_commit ca2bd87d2f9215904682a9cb9bb37dda98e76089 #global gh_date 20150924 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_vendor sebastianbergmann @@ -25,7 +25,7 @@ %global ver_major 9 Name: php-%{pk_vendor}-%{pk_project}%{ver_major} -Version: 9.2.29 +Version: 9.2.30 Release: 1%{?dist} Summary: PHP code coverage information, version %{ver_major} @@ -44,7 +44,7 @@ BuildRequires: php-fedora-autoloader-devel >= 1.0.0 BuildRequires: php(language) >= 7.3 # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 -BuildRequires: (php-composer(nikic/php-parser) >= 4.15 with php-composer(nikic/php-parser) < 5) +BuildRequires: (php-composer(nikic/php-parser) >= 4.18 with php-composer(nikic/php-parser) < 6) BuildRequires: (php-composer(phpunit/php-file-iterator) >= 3.0.3 with php-composer(phpunit/php-file-iterator) < 4) BuildRequires: (php-composer(phpunit/php-text-template) >= 2.0.2 with php-composer(phpunit/php-text-template) < 3) BuildRequires: (php-composer(sebastian/code-unit-reverse-lookup) >= 2.0.2 with php-composer(sebastian/code-unit-reverse-lookup) < 3) @@ -55,7 +55,7 @@ BuildRequires: (php-composer(sebastian/version) >= 3.0.1 with BuildRequires: (php-composer(theseer/tokenizer) >= 1.2.0 with php-composer(theseer/tokenizer) < 2) # remirepo:11 %else -BuildRequires: php-nikic-php-parser4 >= 4.15 +BuildRequires: php-nikic-php-parser4 >= 4.18 BuildRequires: php-phpunit-php-file-iterator3 >= 3.0.3 BuildRequires: php-phpunit-php-text-template2 >= 2.0.2 BuildRequires: php-sebastian-code-unit-reverse-lookup2 >= 2.0.2 @@ -76,7 +76,7 @@ BuildRequires: php-xdebug # "ext-dom": "*", # "ext-libxml": "*", # "ext-xmlwriter": "*", -# "nikic/php-parser": "^4.15", +# "nikic/php-parser": "^4.18 || ^5.0" # "phpunit/php-file-iterator": "^3.0.3", # "phpunit/php-text-template": "^2.0.2", # "sebastian/code-unit-reverse-lookup": "^2.0.2", @@ -91,7 +91,7 @@ Requires: php-libxml Requires: php-xmlwriter # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 -Requires: (php-composer(nikic/php-parser) >= 4.15 with php-composer(nikic/php-parser) < 5) +Requires: (php-composer(nikic/php-parser) >= 4.18 with php-composer(nikic/php-parser) < 6) Requires: (php-composer(phpunit/php-file-iterator) >= 3.0.3 with php-composer(phpunit/php-file-iterator) < 4) Requires: (php-composer(phpunit/php-text-template) >= 2.0.2 with php-composer(phpunit/php-text-template) < 3) Requires: (php-composer(sebastian/code-unit-reverse-lookup) >= 2.0.2 with php-composer(sebastian/code-unit-reverse-lookup) < 3) @@ -107,7 +107,7 @@ Suggests: php-xdebug Recommends: php-pcov # remirepo:11 %else -Requires: php-nikic-php-parser4 >= 4.15 +Requires: php-nikic-php-parser4 >= 4.18 Requires: php-phpunit-php-file-iterator3 >= 3.0.3 Requires: php-phpunit-php-text-template2 >= 2.0.2 Requires: php-sebastian-code-unit-reverse-lookup2 >= 2.0.2 @@ -158,7 +158,10 @@ Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{ver_major}/autoload.php cat << 'EOF' | tee -a src/autoload.php \Fedora\Autoloader\Dependencies::required([ - '%{php_home}/PhpParser4/autoload.php', + [ + '%{php_home}/PhpParser5/autoload.php', + '%{php_home}/PhpParser4/autoload.php', + ], '%{php_home}/%{ns_vendor}/FileIterator3/autoload.php', '%{php_home}/%{ns_vendor}/Template2/autoload.php', '%{php_home}/%{ns_vendor}/CodeUnitReverseLookup2/autoload.php', @@ -192,7 +195,7 @@ define('TEST_FILES_PATH', __DIR__ . '/_files/'); EOF ret=0 -for cmd in php php80 php81 php82 php83; do +for cmd in php php81 php82 php83; do if which $cmd; then $cmd $EXT \ -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{ver_major}/autoload.php \ @@ -215,6 +218,10 @@ exit $ret %changelog +* Fri Dec 22 2023 Remi Collet - 9.2.30-1 +- update to 9.2.30 +- raise dependency on nikic/php-parser 4.18 and allow 5.0 + * Tue Sep 19 2023 Remi Collet - 9.2.29-1 - update to 9.2.29 -- cgit