From be8a0601f7a461f8bfcb7ef071aa9447984c0e20 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 4 Apr 2022 11:01:07 +0200 Subject: revert --- php-phpseclib.spec | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit