From 6e55738f33834ac388313f3bb0c5025c342ca2f5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 5 Apr 2016 14:49:33 +0200 Subject: php-horde-Horde-Auth: minor tweak from fedora --- php-horde-Horde-Auth.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/php-horde-Horde-Auth.spec b/php-horde-Horde-Auth.spec index 73ad936..1ff45e5 100644 --- a/php-horde-Horde-Auth.spec +++ b/php-horde-Horde-Auth.spec @@ -119,10 +119,15 @@ done | tee ../%{pear_name}.lang %check cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:) -%{_bindir}/phpunit . -if which php70; then - php70 %{_bindir}/phpunit . +# hex2bin is 5.4 only +if php -r 'exit(function_exists("hex2bin") ? 0 : 1);' +then %{_bindir}/phpunit . +else : test ignored +fi + +if which php70 +then php70 %{_bindir}/phpunit . fi -- cgit