diff options
-rw-r--r-- | phpcov.spec | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/phpcov.spec b/phpcov.spec index f5529e7..dc63cbc 100644 --- a/phpcov.spec +++ b/phpcov.spec @@ -1,4 +1,4 @@ -# spec file for phpcov +# fedora/remirepo spec file for phpcov # # Copyright (c) 2013-2018 Remi Collet # License: CC-BY-SA @@ -29,7 +29,6 @@ Version: 5.0.0 Release: 1%{?dist} Summary: CLI frontend for PHP_CodeCoverage -Group: Development/Libraries License: BSD URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz @@ -42,12 +41,14 @@ BuildRequires: php(language) >= 7.1 BuildRequires: php-fedora-autoloader-devel %if %{with_tests} BuildRequires: phpunit7 +# remirepo:1 %if 0%{?fedora} >= 27 BuildRequires: (php-composer(phpunit/php-code-coverage) >= 6.0 with php-composer(phpunit/php-code-coverage) < 7) BuildRequires: (php-composer(sebastian/diff) >= 3 with php-composer(sebastian/diff) < 4) BuildRequires: (php-composer(sebastian/finder-facade) >= 1.1 with php-composer(sebastian/finder-facade) < 2) BuildRequires: (php-composer(sebastian/version) >= 2.0 with php-composer(sebastian/version) < 3) BuildRequires: (php-composer(symfony/console) >= 3.0 with php-composer(symfony/console) < 5) +# remirepo:7 %else BuildRequires: php-phpunit-php-code-coverage6 BuildRequires: php-sebastian-diff3 @@ -68,12 +69,14 @@ BuildRequires: php-pecl(Xdebug) # "symfony/console": "^3.0|^4.0" Requires: php(language) >= 7.1 Requires: phpunit7 +# remirepo:1 %if 0%{?fedora} >= 27 Requires: (php-composer(phpunit/php-code-coverage) >= 6.0 with php-composer(phpunit/php-code-coverage) < 7) Requires: (php-composer(sebastian/diff) >= 3 with php-composer(sebastian/diff) < 4) Requires: (php-composer(sebastian/finder-facade) >= 1.1 with php-composer(sebastian/finder-facade) < 2) Requires: (php-composer(sebastian/version) >= 2.0 with php-composer(sebastian/version) < 3) Requires: (php-composer(symfony/console) >= 3.0 with php-composer(symfony/console) < 5) +# remirepo:7 %else Requires: php-phpunit-php-code-coverage6 Requires: php-sebastian-diff3 @@ -84,9 +87,11 @@ Requires: php-symfony4-console # from phpcompatinfo report for version 4.0.0 # none +# remirepo:1 %if 0%{?fedora} >= 26 Obsoletes: php-phpunit-phpcov < 4 Provides: php-phpunit-phpcov = %{version} +# remirepo:3 %else Conflicts: php-phpunit-phpcov < 4 %endif @@ -159,6 +164,7 @@ exit $ret; %files +# remirepo:1 %{!?_licensedir:%global license %%doc} %license LICENSE %doc README.md |