update to 1.10.3

allow phpdocumentor/reflection-docblock 5.0

(cherry picked from commit 16349df7fe)
This commit is contained in:
Remi Collet 2020-03-06 08:12:20 +01:00
commit 856441cc7d
4 changed files with 12 additions and 5 deletions

1
.gitignore vendored
View file

@ -19,3 +19,4 @@ clog
/php-phpspec-prophecy-1.9.0-f6811d9.tgz
/php-phpspec-prophecy-1.10.1-cbe1df6.tgz
/php-phpspec-prophecy-1.10.2-b4400ef.tgz
/php-phpspec-prophecy-1.10.3-451c3cd.tgz

View file

@ -9,7 +9,9 @@ require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
// Dependencies
require_once 'Doctrine/Instantiator/autoload.php';
if ($dep = stream_resolve_include_path('phpDocumentor/Reflection/DocBlock4/autoload.php')) {
if ($dep = stream_resolve_include_path('phpDocumentor/Reflection/DocBlock5/autoload.php')) {
require_once $dep;
} else if ($dep = stream_resolve_include_path('phpDocumentor/Reflection/DocBlock4/autoload.php')) {
require_once $dep;
} else if ($dep = stream_resolve_include_path('phpDocumentor/Reflection/DocBlock/autoload.php')) {
require_once $dep;

View file

@ -7,7 +7,7 @@
# Please, preserve the changelog entries
#
%global bootstrap 0
%global gh_commit b4400efc9d206e83138e2bb97ed7f5b14b831cd9
%global gh_commit 451c3cd1418cf640de218914901e51b064abb093
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner phpspec
%global gh_project prophecy
@ -19,7 +19,7 @@
%endif
Name: php-phpspec-prophecy
Version: 1.10.2
Version: 1.10.3
Release: 1%{?dist}
Summary: Highly opinionated mocking framework for PHP
@ -49,7 +49,7 @@ BuildRequires: php-composer(fedora/autoloader)
# "sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0"
Requires: php(language) >= 5.3
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
Requires: (php-composer(phpdocumentor/reflection-docblock) >= 2.0 with php-composer(phpdocumentor/reflection-docblock) < 5)
Requires: (php-composer(phpdocumentor/reflection-docblock) >= 2.0 with php-composer(phpdocumentor/reflection-docblock) < 6)
Requires: (php-composer(sebastian/comparator) >= 1.2.3 with php-composer(sebastian/comparator) < 5)
# recursion-context will be pulled by phpspec or phpunit or phpunit6
#Requires: (php-composer(sebastian/recursion-context) >= 1.0 with php-composer(sebastian/recursion-context) < 4)
@ -139,6 +139,10 @@ exit $ret
# not yet packaged
%changelog
* Fri Mar 6 2020 Remi Collet <remi@remirepo.net> - 1.10.3-1
- update to 1.10.3
- allow phpdocumentor/reflection-docblock 5.0
* Tue Jan 21 2020 Remi Collet <remi@remirepo.net> - 1.10.2-1
- update to 1.10.2
- allow sebastian/comparator 4 and sebastian/recursion-context 4

View file

@ -1 +1 @@
SHA512 (php-phpspec-prophecy-1.10.2-b4400ef.tgz) = a3dfe41b5906de30311d93c2b3163d8a982c9a08f7d76144b0912a1ddb1943e032b276c546fb3043acdfab8925c23f426a0a42c33ddff8e21cc78efe8c59b9eb
SHA512 (php-phpspec-prophecy-1.10.3-451c3cd.tgz) = 5808e2cc28effdca81e0907fae0be4faa9d9daad533b6d4c641375c3acfd72b14bd508daf4e6e47047377a0565642d03556eea7914c2cf48cba0f6dcf0fadcfe