summaryrefslogtreecommitdiffstats
path: root/php-mock2.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-03-28 09:31:56 +0200
committerRemi Collet <remi@remirepo.net>2018-03-28 09:31:56 +0200
commit26a01b7a9b6f8a3f402148408c612d636162aeb4 (patch)
treece27f044eb97f75a5202a2485a367db3821b7394 /php-mock2.spec
parent067f000eba0e998aa67c22f6db8f48b5475e48c9 (diff)
cleanup for Fedora
Diffstat (limited to 'php-mock2.spec')
-rw-r--r--php-mock2.spec6
1 files changed, 6 insertions, 0 deletions
diff --git a/php-mock2.spec b/php-mock2.spec
index 93d478e..4970a72 100644
--- a/php-mock2.spec
+++ b/php-mock2.spec
@@ -27,8 +27,10 @@ BuildRequires: php(language) >= 5.6
%if %{with_tests}
# from composer.json, "require-dev": {
# "phpunit/phpunit": "^5.7"
+# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
BuildRequires: (php-composer(phpunit/php-text-template) >= 1 with php-composer(phpunit/php-text-template) < 2)
+# remirepo:3
%else
BuildRequires: php-phpunit-Text-Template
%endif
@@ -41,8 +43,10 @@ BuildRequires: php-composer(fedora/autoloader)
# "php": ">=5.6",
# "phpunit/php-text-template": "^1"
Requires: php(language) >= 5.6
+# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
Requires: (php-composer(phpunit/php-text-template) >= 1 with php-composer(phpunit/php-text-template) < 2)
+# remirepo:3
%else
Requires: php-phpunit-Text-Template
%endif
@@ -52,10 +56,12 @@ Requires: php-reflection
Requires: php-spl
# For autoloader
Requires: php-composer(fedora/autoloader)
+# remirepo:1
%if 0%{?fedora} > 21 || 0%{?rhel} >= 8
# from composer.json, "suggest": {
# "php-mock/php-mock-phpunit": "Allows integration into PHPUnit testcase with the trait PHPMock."
Suggests: php-composer(php-mock/php-mock-phpunit)
+# remirepo:1
%endif
Provides: php-composer(%{gh_owner}/%{gh_project}) = %{version}