This commit is contained in:
Remi Collet 2021-10-20 10:18:26 +02:00
commit 15e2e86f7f
4 changed files with 54 additions and 12 deletions

View file

@ -8,7 +8,7 @@
#
# Please, preserve the changelog entries
#
%global gh_commit 069a785b2141f5bcf49f3e353548dc1cce6df556
%global gh_commit 622548b623e81ca6d78b721c5e029f4ce664f170
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner phpDocumentor
%global gh_project ReflectionDocBlock
@ -16,8 +16,8 @@
%bcond_without tests
Name: php-phpdocumentor-reflection-docblock%{major}
Version: 5.2.2
Release: 3%{?dist}
Version: 5.3.0
Release: 1%{?dist}
Summary: DocBlock parser
License: MIT
@ -37,14 +37,10 @@ BuildRequires: (php-composer(phpdocumentor/type-resolver) >= 1.3 with php-
BuildRequires: (php-composer(webmozart/assert) >= 1.9.1 with php-composer(webmozart/assert) < 2)
BuildRequires: (php-composer(phpdocumentor/reflection-common) >= 2.2 with php-composer(phpdocumentor/reflection-common) < 3)
# From composer.json, require-dev
# "mockery/mockery": "~1.3.2"
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 9
# "mockery/mockery": "~1.3.2",
# "psalm/phar": "^4.8"
BuildRequires: phpunit9
%global phpunit %{_bindir}/phpunit9
%else
BuildRequires: phpunit8
%global phpunit %{_bindir}/phpunit8
%endif
BuildRequires: (php-composer(mockery/mockery) >= 1.3.2 with php-composer(mockery/mockery) < 2)
# From phpcompatinfo report for 5.0.0
BuildRequires: php-reflection
@ -122,7 +118,7 @@ sed -e '/autoload.php/d' -i examples/*.php examples/*/*.php
phpab \
--template fedora \
--output bootstrap.php \
tests/unit/
tests/unit tests/integration
cat <<BOOTSTRAP | tee -a bootstrap.php
@ -133,7 +129,7 @@ cat <<BOOTSTRAP | tee -a bootstrap.php
BOOTSTRAP
RETURN_CODE=0
for PHP_EXEC in "php %{phpunit}" "php72 %{_bindir}/phpunit8" php73 php74 php80; do
for PHP_EXEC in "php %{phpunit}" php73 php74 php80 php81; do
if which $PHP_EXEC; then
set $PHP_EXEC
$1 -d auto_prepend_file=$PWD/bootstrap.php \
@ -157,6 +153,9 @@ exit $RETURN_CODE
%changelog
* Wed Oct 20 2021 Remi Collet <remi@remirepo.net> - 5.3.0-1
- update to 5.3.0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild