This commit is contained in:
Remi Collet 2020-10-27 07:21:17 +01:00
commit 22302ff910
3 changed files with 11 additions and 8 deletions

View file

@ -10,7 +10,7 @@
%bcond_without tests
# Github
%global gh_commit 53a4b737e83be724efd2bc4e7b929b9a30c48972
%global gh_commit ed363c3ce393560a1c300dce0298bbf0f0528b13
#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.0
Version: 9.2.1
Release: 1%{?dist}
Summary: PHP code coverage information
@ -53,9 +53,8 @@ BuildRequires: (php-composer(sebastian/version) >= 3.0.1 with
BuildRequires: (php-composer(theseer/tokenizer) >= 1.2.0 with php-composer(theseer/tokenizer) < 2)
# From composer.json, "require-dev": {
# "phpunit/phpunit": "^9.3"
# TODO test suite passes with v9.2, switch to v9.3 when available
BuildRequires: phpunit9
BuildRequires: php-pecl-xdebug
BuildRequires: phpunit9 >= 9.3
BuildRequires: php-xdebug
%endif
# From composer.json, require
@ -151,7 +150,7 @@ cp -pr src %{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{ver_major}
%if %{with tests}
%check
if ! php -v | grep Xdebug
then EXT="-d zend_extension=xdebug.so"
then EXT="-d zend_extension=xdebug.so -d xdebug.mode=coverage"
fi
cat << 'EOF' | tee tests/bootstrap.php
@ -162,7 +161,7 @@ define('TEST_FILES_PATH', __DIR__ . '/_files/');
EOF
ret=0
for cmd in php php73 php74; do
for cmd in php php73 php74 php80; do
if which $cmd; then
$cmd $EXT \
-d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{ver_major}/autoload.php \
@ -183,6 +182,9 @@ exit $ret
%changelog
* Tue Oct 27 2020 Remi Collet <remi@remirepo.net> - 9.2.1-1
- update to 9.2.1
* Fri Oct 2 2020 Remi Collet <remi@remirepo.net> - 9.2.0-1
- update to 9.2.0