summaryrefslogtreecommitdiffstats
path: root/php-mock2.spec
diff options
context:
space:
mode:
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}