From 4e47e29ecb5503e7f85babe413573efb5d96bb3a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 13 Feb 2015 10:38:46 +0100 Subject: php-guzzlehttp-ringphp: disable tests on EL-5 (no nodejs) --- php-guzzlehttp-ringphp.spec | 5 +++++ 1 file changed, 5 insertions(+) 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} -- cgit