summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-02-13 10:38:46 +0100
committerRemi Collet <fedora@famillecollet.com>2015-02-13 10:38:46 +0100
commit4e47e29ecb5503e7f85babe413573efb5d96bb3a (patch)
treed7c26df7d558cdc908021c92641b4dd1cd2d28de
parent4e5f33d5c6b310f67593929524e1e93e25f5b884 (diff)
php-guzzlehttp-ringphp: disable tests on EL-5 (no nodejs)
-rw-r--r--php-guzzlehttp-ringphp.spec5
1 files changed, 5 insertions, 0 deletions
diff --git a/php-guzzlehttp-ringphp.spec b/php-guzzlehttp-ringphp.spec
index c1ff30e..f6756f6 100644
--- a/php-guzzlehttp-ringphp.spec
+++ b/php-guzzlehttp-ringphp.spec
@@ -26,8 +26,13 @@
%global promise_min_ver 2.0
%global promise_max_ver 3.0
+%if 0%{?rhel} == 5
+# no nodejs available in RHEL-5
+%global with_tests %{?_with_tests:1}%{!?_with_tests:0}
+%else
# Build using "--without tests" to disable tests
%global with_tests %{?_without_tests:0}%{!?_without_tests:1}
+%endif
%{!?phpdir: %global phpdir %{_datadir}/php}
%{!?__phpunit: %global __phpunit %{_bindir}/phpunit}