From 5f0017df326c8bc39428794f15d9abe53ba6a1eb Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 27 Apr 2020 14:05:13 +0200 Subject: [PATCH] update to 2.2.0 raise dependency on PHP 7.2 (cherry picked from commit 54b45e3e0d9260cfe41a1a9786ad470a0da8026c) (cherry picked from commit ecb15067311217b084c481dffd46e00935f19038) --- .gitignore | 2 ++ php-phpdocumentor-reflection-common2.spec | 18 ++++++++++++------ sources | 2 +- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index e978cae..a599b99 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/php-phpdocumentor-reflection-common2.spec b/php-phpdocumentor-reflection-common2.spec index 8fc80b1..e0e6fbf 100644 --- a/php-phpdocumentor-reflection-common2.spec +++ b/php-phpdocumentor-reflection-common2.spec @@ -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 - 2.2.0-1 +- update to 2.2.0 +- raise dependency on PHP 7.2 + * Fri Sep 13 2019 Remi Collet - 2.0.0-2 - fix autoloader path in description diff --git a/sources b/sources index 8a22dee..707316b 100644 --- a/sources +++ b/sources @@ -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