update to 2.2.0

raise dependency on PHP 7.2

(cherry picked from commit 54b45e3e0d)
(cherry picked from commit ecb1506731)
This commit is contained in:
Remi Collet 2020-04-27 14:05:13 +02:00
commit 5f0017df32
3 changed files with 15 additions and 7 deletions

View file

@ -10,16 +10,16 @@
%global github_owner phpDocumentor
%global github_name ReflectionCommon
%global github_version 2.0.0
%global github_commit 63a995caa1ca9e5590304cd845c15ad6d482a62a
%global github_version 2.2.0
%global github_commit 1d01c49d4ed62f25aa84a747ad35d5a16924662b
%global composer_vendor phpdocumentor
%global composer_project reflection-common
%global major 2
# "php": ">=7.1"
%global php_min_ver 7.1
# "php": "^7.2 || ^8.0"
%global php_min_ver 7.2
# Build using "--without tests" to disable tests
%global with_tests 0%{!?_without_tests:1}
@ -28,7 +28,7 @@
Name: php-%{composer_vendor}-%{composer_project}%{major}
Version: %{github_version}
Release: 2%{?github_release}%{?dist}
Release: 1%{?github_release}%{?dist}
Summary: Common reflection classes used by phpdocumentor
Group: Development/Libraries
@ -86,10 +86,12 @@ cp -rp src %{buildroot}%{phpdir}/phpDocumentor/Reflection%{major}
%check
%if %{with_tests}
BOOTSTRAP=%{buildroot}%{phpdir}/phpDocumentor/Reflection%{major}/autoload-common.php
mkdir vendor
touch vendor/autoload.php
: Upstream tests
RETURN_CODE=0
for PHP_EXEC in php php71 php72 php73 php74; do
for PHP_EXEC in php php72 php73 php74 php80; do
if which $PHP_EXEC; then
$PHP_EXEC -d auto_prepend_file=$BOOTSTRAP \
%{_bindir}/phpunit6 --verbose || RETURN_CODE=1
@ -118,6 +120,10 @@ exit $RETURN_CODE
%changelog
* Mon Jun 29 2020 Remi Collet <remi@remirepo.net> - 2.2.0-1
- update to 2.2.0
- raise dependency on PHP 7.2
* Fri Sep 13 2019 Remi Collet <remi@remirepo.net> - 2.0.0-2
- fix autoloader path in description