diff options
-rw-r--r-- | php-phpunit-PHPUnit-MockObject.spec | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/php-phpunit-PHPUnit-MockObject.spec b/php-phpunit-PHPUnit-MockObject.spec index ecfb2d4..8a6ddd9 100644 --- a/php-phpunit-PHPUnit-MockObject.spec +++ b/php-phpunit-PHPUnit-MockObject.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-phpunit-PHPUnit-MockObject # -# Copyright (c) 2013-2017 Remi Collet +# Copyright (c) 2013-2018 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -17,7 +17,7 @@ %global pear_channel pear.phpunit.de %global major 3.4 %global minor 4 -%global specrel 1 +%global specrel 2 %if %{bootstrap} %global with_tests %{?_with_tests:1}%{!?_with_tests:0} %else @@ -46,6 +46,15 @@ BuildRequires: php(language) >= 5.6 # From composer.json, "require-dev": { # "phpunit/phpunit": "^5.4" BuildRequires: php-composer(phpunit/phpunit) >= 5.4 +%if 0%{?fedora} >= 27 +BuildRequires: (php-composer(phpunit/php-text-template) >= 1.2 with php-composer(phpunit/php-text-template) < 2) +BuildRequires: (php-composer(doctrine/instantiator) >= 1.0.2 with php-composer(doctrine/instantiator) < 2) +BuildRequires: (php-composer(sebastian/exporter) >= 1.2 with php-composer(sebastian/exporter) < 3) +%else +BuildRequires: php-phpunit-Text-Template >= 1.2 +BuildRequires: php-doctrine-instantiator >= 1.0.2 +BuildRequires: php-phpunit-exporter >= 1.2 +%endif %endif # From composer.json, "require": { @@ -54,12 +63,15 @@ BuildRequires: php-composer(phpunit/phpunit) >= 5.4 # "doctrine/instantiator": "^1.0.2", # "sebastian/exporter": "^1.2 || ^2.0" Requires: php(language) >= 5.6 -Requires: php-composer(phpunit/php-text-template) >= 1.2 -Requires: php-composer(phpunit/php-text-template) < 2 -Requires: php-composer(doctrine/instantiator) >= 1.0.2 -Requires: php-composer(doctrine/instantiator) < 2 -Requires: php-composer(sebastian/exporter) >= 1.2 -Requires: php-composer(sebastian/exporter) < 3 +%if 0%{?fedora} >= 27 +Requires: (php-composer(phpunit/php-text-template) >= 1.2 with php-composer(phpunit/php-text-template) < 2) +Requires: (php-composer(doctrine/instantiator) >= 1.0.2 with php-composer(doctrine/instantiator) < 2) +Requires: (php-composer(sebastian/exporter) >= 1.2 with php-composer(sebastian/exporter) < 3) +%else +Requires: php-phpunit-Text-Template >= 1.2 +Requires: php-doctrine-instantiator >= 1.0.2 +Requires: php-sebastian-exporter >= 1.2 +%endif # From composer.json, "suggest": { # "ext-soap": "*" Requires: php-soap @@ -150,6 +162,9 @@ fi %changelog +* Fri Feb 2 2018 Remi Collet <remi@remirepo.net> - 3.4.4-2 +- use range dependencies on F27+ + * Tue Jul 4 2017 Remi Collet <remi@remirepo.net> - 3.4.4-1 - Update to 3.4.4 |