summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-phpunit-phpcpd.spec42
1 files changed, 22 insertions, 20 deletions
diff --git a/php-phpunit-phpcpd.spec b/php-phpunit-phpcpd.spec
index 9414b17..59929ad 100644
--- a/php-phpunit-phpcpd.spec
+++ b/php-phpunit-phpcpd.spec
@@ -20,7 +20,7 @@
Name: php-phpunit-%{pk_project}
Version: 3.0.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Copy/Paste Detector (CPD) for PHP code
Group: Development/Libraries
@@ -37,18 +37,17 @@ BuildRequires: php(language) >= 5.6
BuildRequires: php-fedora-autoloader-devel
%if %{with_tests}
BuildRequires: %{_bindir}/phpunit
-BuildRequires: php-composer(sebastian/finder-facade) < 2
-BuildRequires: php-composer(sebastian/finder-facade) >= 1.1
-BuildRequires: php-composer(sebastian/version) < 3
-BuildRequires: php-composer(sebastian/version) >= 1.0
-%if 0%{?fedora} >= 26
-BuildRequires: php-composer(symfony/console) < 5
+%if 0%{?fedora} >= 27
+BuildRequires: (php-composer(sebastian/finder-facade) >= 1.1 with php-composer(sebastian/finder-facade) < 2)
+BuildRequires: (php-composer(sebastian/version) >= 1.0 with php-composer(sebastian/version) < 3)
+BuildRequires: (php-composer(symfony/console) >= 2.7 with php-composer(symfony/console) < 5)
+BuildRequires: (php-composer(phpunit/php-timer) >= 1.0.6 with php-composer(phpunit/php-timer) < 2)
%else
-BuildRequires: php-composer(symfony/console) < 4
+BuildRequires: php-phpunit-FinderFacade
+BuildRequires: php-phpunit-Version
+BuildRequires: php-symfony3-console
+BuildRequires: php-phpunit-PHP-Timer
%endif
-BuildRequires: php-composer(symfony/console) >= 2.7
-BuildRequires: php-composer(phpunit/php-timer) < 2
-BuildRequires: php-composer(phpunit/php-timer) >= 1.0.6
%endif
# From composer.json, requires
@@ -58,17 +57,17 @@ BuildRequires: php-composer(phpunit/php-timer) >= 1.0.6
# "symfony/console": "^2.7|^3.0|^4.0",
# "phpunit/php-timer": "^1.0.6"
Requires: php(language) >= 5.6
-Requires: php-composer(sebastian/finder-facade) < 2
-Requires: php-composer(sebastian/finder-facade) >= 1.1
-Requires: php-composer(sebastian/version) < 3
-Requires: php-composer(sebastian/version) >= 1.0
-%if 0%{?fedora} >= 26
-Requires: php-composer(symfony/console) < 5
+%if 0%{?fedora} >= 27
+Requires: (php-composer(sebastian/finder-facade) >= 1.1 with php-composer(sebastian/finder-facade) < 2)
+Requires: (php-composer(sebastian/version) >= 1.0 with php-composer(sebastian/version) < 3)
+Requires: (php-composer(symfony/console) >= 2.7 with php-composer(symfony/console) < 5)
+Requires: (php-composer(phpunit/php-timer) >= 1.0.6 with php-composer(phpunit/php-timer) < 2)
%else
-Requires: php-composer(symfony/console) < 4
+Requires: php-phpunit-FinderFacade
+Requires: php-phpunit-Version
+Requires: php-symfony3-console
+Requires: php-phpunit-PHP-Timer
%endif
-Requires: php-composer(symfony/console) >= 2.8
-Requires: php-composer(phpunit/php-timer) >= 1.0.6
# From phpcompatinfo report for version 3.0.0
Requires: php-cli
Requires: php-dom
@@ -155,6 +154,9 @@ rm -rf %{buildroot}
%changelog
+* Tue Feb 6 2018 Remi Collet <remi@remirepo.net> - 3.0.1-2
+- use range dependencies on F27+
+
* Thu Nov 16 2017 Remi Collet <remi@remirepo.net> - 3.0.1-1
- Update to 3.0.1
- allow Symfony 4