diff options
author | Remi Collet <fedora@famillecollet.com> | 2017-03-01 12:00:43 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2017-03-01 12:00:43 +0100 |
commit | 1a0b150596316f4531517ab1d67cab2a4e11d27e (patch) | |
tree | fd67465ef16dc0e02d410339e14293507837bebf | |
parent | 1909260012aafff9cab8ed12988f8a11e3cb0d06 (diff) |
php-phpunit-php-code-coverage5: 5.0.2
-rw-r--r-- | composer.json | 7 | ||||
-rw-r--r-- | php-phpunit-php-code-coverage5.spec | 33 |
2 files changed, 25 insertions, 15 deletions
diff --git a/composer.json b/composer.json index 14f51ed..aa8156a 100644 --- a/composer.json +++ b/composer.json @@ -22,8 +22,10 @@ }, "require": { "php": "^7.0", + "ext-dom": "*", + "ext-xmlwriter": "*", "phpunit/php-file-iterator": "^1.3", - "phpunit/php-token-stream": "^1.4.2 || ^2.0", + "phpunit/php-token-stream": "^1.4.11 || ^2.0", "phpunit/php-text-template": "^1.2", "sebastian/code-unit-reverse-lookup": "^1.0", "sebastian/environment": "^2.0", @@ -34,8 +36,7 @@ "ext-xdebug": "^2.5" }, "suggest": { - "ext-dom": "*", - "ext-xmlwriter": "*" + "ext-xdebug": "^2.5.1" }, "autoload": { "classmap": [ diff --git a/php-phpunit-php-code-coverage5.spec b/php-phpunit-php-code-coverage5.spec index 4859315..6cb38ed 100644 --- a/php-phpunit-php-code-coverage5.spec +++ b/php-phpunit-php-code-coverage5.spec @@ -7,9 +7,9 @@ # Please, preserve the changelog entries # -%global bootstrap 1 +%global bootstrap 0 # Github -%global gh_commit 3f10a2c8eed68b29cbbb54e29cc58cb31b077553 +%global gh_commit 531553c4795a1df54114342d68ca337d5d81c8a0 #global gh_date 20150924 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_vendor sebastianbergmann @@ -23,7 +23,7 @@ %global php_home %{_datadir}/php %global ver_major 5 %global ver_minor 0 -%global ver_patch 1 +%global ver_patch 2 %global specrel 1 %if %{bootstrap} %global with_tests 0%{?_with_tests:1} @@ -46,7 +46,7 @@ BuildRequires: php-fedora-autoloader-devel %if %{with_tests} BuildRequires: php(language) >= 7.0 BuildRequires: php-composer(phpunit/php-file-iterator) >= 1.3 -BuildRequires: php-composer(phpunit/php-token-stream) >= 1.4.2 +BuildRequires: php-composer(phpunit/php-token-stream) >= 1.4.11 BuildRequires: php-composer(phpunit/php-token-stream) < 2 BuildRequires: php-composer(phpunit/php-text-template) >= 1.2 BuildRequires: php-composer(phpunit/php-text-template) < 2 @@ -62,16 +62,20 @@ BuildRequires: php-pecl-xdebug >= 2.5.0 # From composer.json, require # "php": "^7.0", +# "ext-dom": "*", +# "ext-xmlwriter": "*", # "phpunit/php-file-iterator": "^1.3", -# "phpunit/php-token-stream": "^1.4.2 || ^2.0", +# "phpunit/php-token-stream": "^1.4.11 || ^2.0", # "phpunit/php-text-template": "^1.2", # "sebastian/code-unit-reverse-lookup": "^1.0", # "sebastian/environment": "^2.0", # "sebastian/version": "^2.0" Requires: php(language) >= 7.0 +Requires: php-dom +Requires: php-xmlwriter Requires: php-composer(phpunit/php-file-iterator) >= 1.3 Requires: php-composer(phpunit/php-file-iterator) < 2 -Requires: php-composer(phpunit/php-token-stream) >= 1.4.2 +Requires: php-composer(phpunit/php-token-stream) >= 1.4.11 Requires: php-composer(phpunit/php-token-stream) < 3 Requires: php-composer(phpunit/php-text-template) >= 1.2 Requires: php-composer(phpunit/php-text-template) < 2 @@ -82,11 +86,7 @@ Requires: php-composer(sebastian/environment) < 3 Requires: php-composer(sebastian/version) >= 2.0 Requires: php-composer(sebastian/version) < 3 # From composer.json, suggest -# "ext-dom": "*", # "ext-xdebug": ">=2.4.0", -# "ext-xmlwriter": "*" -Requires: php-dom -Requires: php-xmlwriter # From phpcompatinfo report for version 5.0.0 Requires: php-reflection Requires: php-date @@ -146,8 +146,13 @@ require __DIR__ . '/TestCase.php'; define('TEST_FILES_PATH', __DIR__ . '/_files/'); EOF -%{_bindir}/php $EXT -d include_path=.:%{buildroot}%{php_home}:%{php_home} \ -%{_bindir}/phpunit6 --no-coverage --verbose +ret=0 +for cmd in php70 php71 php; do + if which $cmd; then + $cmd $EXT -d include_path=.:%{buildroot}%{php_home}:%{php_home} \ + %{_bindir}/phpunit6 --no-coverage --verbose + fi +done %endif @@ -161,6 +166,10 @@ EOF %changelog +* Wed Mar 1 2017 Remi Collet <remi@remirepo.net> - 5.0.2-1 +- update to 5.0.2 +- raise dependency on phpunit/php-token-stream 1.4.11 + * Thu Feb 23 2017 Remi Collet <remi@remirepo.net> - 5.0.1-1 - update to 5.0.1 |