summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-phpseclib.spec8
1 files changed, 8 insertions, 0 deletions
diff --git a/php-phpseclib.spec b/php-phpseclib.spec
index e86d3b4..7d06d69 100644
--- a/php-phpseclib.spec
+++ b/php-phpseclib.spec
@@ -27,7 +27,15 @@ BuildArch: noarch
%if %{with tests}
BuildRequires: php-composer(fedora/autoloader)
+%if 0%{?fedora} >= 32 || 0%{?rhel} >= 9
%global phpunit %{_bindir}/phpunit9
+%else
+%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
+%global phpunit %{_bindir}/phpunit6
+%else
+%global phpunit %{_bindir}/phpunit
+%endif
+%endif
BuildRequires: %{phpunit}
BuildRequires: %{_bindir}/phpab
# Optional at runtime, to avoid too muck skipped tests