summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-04-05 14:49:33 +0200
committerRemi Collet <fedora@famillecollet.com>2016-04-05 14:49:33 +0200
commit6e55738f33834ac388313f3bb0c5025c342ca2f5 (patch)
tree840cb62a320846c4d4638d99b1afc56b01d204b5
parent790ef257e9e6f92f68d60b1805352d97c19f6a9a (diff)
php-horde-Horde-Auth: minor tweak from fedora
-rw-r--r--php-horde-Horde-Auth.spec11
1 files 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