update to 4.2.3
use phpunit8
This commit is contained in:
parent
4c840b27ab
commit
ee331dcfe2
3 changed files with 14 additions and 9 deletions
|
|
@ -10,7 +10,7 @@
|
|||
# For compatibility with SCL
|
||||
%undefine __brp_mangle_shebangs
|
||||
|
||||
%global gh_commit 1bd73cc04c3843ad8d6b0bfc0956026a151fc420
|
||||
%global gh_commit e612609022e935f3d0337c1295176505b41188c8
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner nikic
|
||||
%global gh_project PHP-Parser
|
||||
|
|
@ -21,8 +21,8 @@
|
|||
%global major 4
|
||||
|
||||
Name: php-%{gh_owner}-%{pk_project}%{major}
|
||||
Version: 4.2.2
|
||||
Release: 2%{?dist}
|
||||
Version: 4.2.3
|
||||
Release: 1%{?dist}
|
||||
Summary: A PHP parser written in PHP - version %{major}
|
||||
|
||||
License: BSD
|
||||
|
|
@ -43,9 +43,9 @@ BuildRequires: php-json
|
|||
BuildRequires: php-pcre
|
||||
BuildRequires: php-spl
|
||||
# From composer.json, "require-dev": {
|
||||
# "phpunit/phpunit": "^6.5 || ^7.0"
|
||||
%global phpunit %{_bindir}/phpunit7
|
||||
BuildRequires: phpunit7
|
||||
# "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0"
|
||||
%global phpunit %{_bindir}/phpunit8
|
||||
BuildRequires: phpunit8
|
||||
# Autoloader
|
||||
BuildRequires: php-composer(fedora/autoloader)
|
||||
%endif
|
||||
|
|
@ -122,10 +122,10 @@ AUTOLOAD
|
|||
|
||||
: Upstream test suite
|
||||
ret=0
|
||||
for cmdarg in "php %{phpunit}" php71 php72 php73 php74; do
|
||||
for cmdarg in "php %{phpunit}" "php71 %{_bindir}/phpunit7" php72 php73 php74; do
|
||||
if which $cmdarg; then
|
||||
set $cmdarg
|
||||
$1 ${2:-%{_bindir}/phpunit7} --verbose || ret=1
|
||||
$1 ${2:-%{_bindir}/phpunit8} --verbose || ret=1
|
||||
fi
|
||||
done
|
||||
exit $ret
|
||||
|
|
@ -143,6 +143,10 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Mon Aug 19 2019 Remi Collet <remi@remirepo.net> - 4.2.3-1
|
||||
- update to 4.2.3
|
||||
- use phpunit8
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue