This commit is contained in:
Remi Collet 2021-07-22 07:35:58 +02:00
commit 8549b3bee7
3 changed files with 10 additions and 6 deletions

View file

@ -10,7 +10,7 @@
# For compatibility with SCL
%undefine __brp_mangle_shebangs
%global gh_commit fe14cf3672a149364fb66dfe11bf6549af899f94
%global gh_commit 6608f01670c3cc5079e18c1dab1104e002579143
%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.11.0
Version: 4.12.0
Release: 1%{?dist}
Summary: A PHP parser written in PHP - version %{major}
@ -128,11 +128,11 @@ else
fi
ret=0
# TODO php81
for cmdarg in "php %{phpunit}" php73 php74 php80; do
for cmdarg in "php %{phpunit}" php73 php74 php80 php81; do
if which $cmdarg; then
set $cmdarg
$1 -d auto_prepend_file=%{buildroot}/%{php_home}/%{ns_project}%{major}/autoload.php \
$1 -d include_path=%{php_home} \
-d auto_prepend_file=%{buildroot}/%{php_home}/%{ns_project}%{major}/autoload.php \
${2:-%{_bindir}/phpunit9} $FILTER --verbose || ret=1
fi
done
@ -151,6 +151,9 @@ exit $ret
%changelog
* Wed Jul 21 2021 Remi Collet <remi@remirepo.net> - 4.12.0-1
- update to 4.12.0
* Mon Jul 5 2021 Remi Collet <remi@remirepo.net> - 4.11.0-1
- update to 4.11.0
- switch to phpunit9