From 1aa66d69b70a15574aafcd951a2ac5b39a7bee61 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 5 Jul 2021 08:44:19 +0200 Subject: [PATCH] v4.11.0 --- .gitignore | 1 + php-nikic-php-parser4.spec | 19 ++++++++++++------- sources | 2 +- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 20f1584..c3a85ba 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ clog /php-nikic-php-parser4-4.10.3-dbe56d2.tgz /php-nikic-php-parser4-4.10.4-c6d052f.tgz /php-nikic-php-parser4-4.10.5-4432ba3.tgz +/php-nikic-php-parser4-4.11.0-fe14cf3.tgz diff --git a/php-nikic-php-parser4.spec b/php-nikic-php-parser4.spec index 35e36f7..5fcf916 100644 --- a/php-nikic-php-parser4.spec +++ b/php-nikic-php-parser4.spec @@ -10,7 +10,7 @@ # For compatibility with SCL %undefine __brp_mangle_shebangs -%global gh_commit 4432ba399e47c66624bc73c8c0f811e5c109576f +%global gh_commit fe14cf3672a149364fb66dfe11bf6549af899f94 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner nikic %global gh_project PHP-Parser @@ -21,7 +21,7 @@ %global major 4 Name: php-%{gh_owner}-%{pk_project}%{major} -Version: 4.10.5 +Version: 4.11.0 Release: 1%{?dist} Summary: A PHP parser written in PHP - version %{major} @@ -36,8 +36,8 @@ Patch0: %{name}-rpm.patch BuildArch: noarch %if %{with_tests} # For tests -# as we use phpunit8 -BuildRequires: php(language) >= 7.2 +# as we use phpunit9 +BuildRequires: php(language) >= 7.3 BuildRequires: php-tokenizer BuildRequires: php-reflection BuildRequires: php-ctype @@ -47,8 +47,8 @@ BuildRequires: php-spl # From composer.json, "require-dev": { # "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0", # "ircmaxell/php-yacc": "0.0.7" -%global phpunit %{_bindir}/phpunit8 -BuildRequires: phpunit8 +%global phpunit %{_bindir}/phpunit9 +BuildRequires: phpunit9 # Autoloader BuildRequires: php-fedora-autoloader-devel %endif @@ -128,7 +128,8 @@ else fi ret=0 -for cmdarg in "php %{phpunit}" "php72%{_bindir}/phpunit8" php73 php74 php80; do +# TODO php81 +for cmdarg in "php %{phpunit}" php73 php74 php80; do if which $cmdarg; then set $cmdarg $1 -d auto_prepend_file=%{buildroot}/%{php_home}/%{ns_project}%{major}/autoload.php \ @@ -150,6 +151,10 @@ exit $ret %changelog +* Mon Jul 5 2021 Remi Collet - 4.11.0-1 +- update to 4.11.0 +- switch to phpunit9 + * Tue May 4 2021 Remi Collet - 4.10.5-1 - update to 4.10.5 diff --git a/sources b/sources index 28d8e10..dd31314 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-nikic-php-parser4-4.10.5-4432ba3.tgz) = f7be41418340f05c4f43ea1de2a11edca5833e55d0bb63b4011291a75f22336b864bda0d76478abc1dbea23cda1d64e0709da3b4553b3d2a47a785cb7ab4b203 +SHA512 (php-nikic-php-parser4-4.11.0-fe14cf3.tgz) = c846eee5f36821459b957937ea1f39adb296322f0fe0da4fc218dcf11711d9ef0fc4c12a4a7af6ec4d2f9b130be32070ead7893afa2386cd9afa4adbf7c754a9