summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-04-22 19:40:36 +0200
committerRemi Collet <fedora@famillecollet.com>2013-04-22 19:40:36 +0200
commitb08a216eec8cf81f2c12bb64ec20d29a18ed7882 (patch)
treea9f3a9e82ffbe8693832af90b751b62fd07b2e4e
parent0371554e83f4d2dd2a9b530d78943e52fb21fb5f (diff)
php-pecl-http1: fix php 5.4 build
-rw-r--r--php-pecl-http1.spec2
1 files changed, 2 insertions, 0 deletions
diff --git a/php-pecl-http1.spec b/php-pecl-http1.spec
index 81ea717..8385be4 100644
--- a/php-pecl-http1.spec
+++ b/php-pecl-http1.spec
@@ -99,7 +99,9 @@ These are the files needed to compile programs using HTTP extension.
cd %{proj_name}-%{version}
%patch0 -p1 -b .rpmconf
+%if "%{php_version}" > "5.5"
%patch1 -p3 -b .php55
+%endif
extver=$(sed -n '/#define PHP_HTTP_VERSION/{s/.* "//;s/".*$//;p}' php_http.h)
if test "x${extver}" != "x%{version}"; then