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

2
.gitignore vendored
View file

@ -1 +1,3 @@
/php-phpdocumentor-reflection-common2-2.0.0-63a995caa1ca9e5590304cd845c15ad6d482a62a.tar.gz
/php-phpdocumentor-reflection-common2-2.1.0-6568f4687e5b41b054365f9ae03fcb1ed5f2069b.tar.gz
/php-phpdocumentor-reflection-common2-2.2.0-1d01c49d4ed62f25aa84a747ad35d5a16924662b.tar.gz

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

View file

@ -1 +1 @@
SHA512 (php-phpdocumentor-reflection-common2-2.0.0-63a995caa1ca9e5590304cd845c15ad6d482a62a.tar.gz) = d8ffb31f3fa6c4f066dda79a94b9aa938d04199d7cb80af18a570aae49c653b5b39da73f19bc22f518eec1253ea5dc4490f541aa57a08e543523dadf33f35ce9
SHA512 (php-phpdocumentor-reflection-common2-2.2.0-1d01c49d4ed62f25aa84a747ad35d5a16924662b.tar.gz) = 4d2a97664a619b572777e8e829559356ec63bf5c10006e5e94b9909e34d1892510b7c776ebe4b90cddef068114d93da095a1395b71f81392ef84e6ae74548c73