summaryrefslogtreecommitdiffstats
path: root/php-pecl-rar.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-10-14 18:41:19 +0200
committerRemi Collet <fedora@famillecollet.com>2013-10-14 18:41:19 +0200
commitcf4f843f29c9e91b4e66bbcbee2f1caecfe33b9d (patch)
treea1abe4fa44139d457756e059f302b3d22e6ac00f /php-pecl-rar.spec
parent13d39537fb9c7818969b795d07f90b6a6055286b (diff)
php-pecl-rar: fix EL-5 build
Diffstat (limited to 'php-pecl-rar.spec')
-rw-r--r--php-pecl-rar.spec4
1 files changed, 4 insertions, 0 deletions
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