From cf4f843f29c9e91b4e66bbcbee2f1caecfe33b9d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 14 Oct 2013 18:41:19 +0200 Subject: php-pecl-rar: fix EL-5 build --- php-pecl-rar.spec | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'php-pecl-rar.spec') diff --git a/php-pecl-rar.spec b/php-pecl-rar.spec index da644ae..985e4a1 100644 --- a/php-pecl-rar.spec +++ b/php-pecl-rar.spec @@ -52,6 +52,10 @@ mv %{pecl_name}-%{version} NTS cd NTS +%if 0%{?rhel} == 5 +sed -e 's/-Wno-logical-op-parentheses//' -i config.m4 +%endif + # Sanity check, really often broken extver=$(sed -n '/#define PHP_RAR_VERSION/{s/.* "//;s/".*$//;p}' php_rar.h) if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then -- cgit