From 80d4906aeb1fa6af9201e63b068762d5588189ec Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 30 Jun 2015 14:28:27 +0200 Subject: php-guzzlehttp-guzzle: fix for EL-5 --- php-guzzlehttp-guzzle.spec | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/php-guzzlehttp-guzzle.spec b/php-guzzlehttp-guzzle.spec index 56eb425..3ff9104 100644 --- a/php-guzzlehttp-guzzle.spec +++ b/php-guzzlehttp-guzzle.spec @@ -10,6 +10,12 @@ # Please preserve changelog entries # +%if 0%{?rhel} == 5 +%global with_cacert 0 +%else +%global with_cacert 1 +%endif + %global github_owner guzzle %global github_name guzzle %global github_version 5.3.0 @@ -28,8 +34,13 @@ %global psr_log_min_ver 1.0 %global psr_log_max_ver 2.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 0%{!?_without_tests:1} +%endif %{!?phpdir: %global phpdir %{_datadir}/php} %{!?testsdir: %global testsdir %{_datadir}/tests} @@ -69,7 +80,9 @@ BuildRequires: php-spl BuildRequires: php-composer(symfony/class-loader) %endif +%if %{with_cacert} Requires: ca-certificates +%endif # composer.json Requires: php(language) >= %{php_min_ver} #Requires: php-composer(guzzlehttp/ringphp) >= %%{ring_min_ver} -- cgit