summaryrefslogtreecommitdiffstats
path: root/php-pecl-swoole.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-05-30 11:36:39 +0200
committerRemi Collet <fedora@famillecollet.com>2014-05-30 11:36:39 +0200
commit66c9f47c3018a243767114cb8ec73b8f6860b9ed (patch)
tree38020d45ebba458a08100ea731fd82df7b4e7f2e /php-pecl-swoole.spec
parente6cf34c8f0bd2ec717c92b220095cf824c503302 (diff)
php-pecl-swoole: add patch to fix EL-5 build
Diffstat (limited to 'php-pecl-swoole.spec')
-rw-r--r--php-pecl-swoole.spec6
1 files changed, 6 insertions, 0 deletions
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 <remi@fedoraproject.org> - 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 <remi@fedoraproject.org> - 1.7.1-1
- Update to 1.7.1 (stable)