From 66c9f47c3018a243767114cb8ec73b8f6860b9ed Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 30 May 2014 11:36:39 +0200 Subject: php-pecl-swoole: add patch to fix EL-5 build --- php-pecl-swoole.spec | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'php-pecl-swoole.spec') diff --git a/php-pecl-swoole.spec b/php-pecl-swoole.spec index 7be3a42..4ec1762 100644 --- a/php-pecl-swoole.spec +++ b/php-pecl-swoole.spec @@ -30,6 +30,9 @@ Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz +# https://github.com/matyhtf/swoole/pull/67 +Patch0: %{pecl_name}-el5.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: %{?scl_prefix}php-devel BuildRequires: %{?scl_prefix}php-pear @@ -91,6 +94,8 @@ mv %{pecl_name}-%{version} NTS sed -e '/examples/s/role="src"/role="doc"/' -i package.xml cd NTS +%patch0 -p1 -b .el5 + # Sanity check, really often broken extver=$(sed -n '/#define PHP_SWOOLE_VERSION/{s/.* "//;s/".*$//;p}' php_swoole.h) if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then @@ -219,6 +224,7 @@ rm -rf %{buildroot} %changelog * Fri May 30 2014 Remi Collet - 1.7.2-1 - Update to 1.7.2 (stable) +- open https://github.com/matyhtf/swoole/pull/67 (fix EL5 build) * Wed Apr 30 2014 Remi Collet - 1.7.1-1 - Update to 1.7.1 (stable) -- cgit