summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-12-30 12:13:45 +0100
committerRemi Collet <fedora@famillecollet.com>2016-12-30 12:13:45 +0100
commit3bfcdf7eb66106c87576faf0701542e1c817e50a (patch)
treebb579a218881e3803c7ca7a86687039185eb7084
parentb08bf1204bbe7f6aedd7927d00bcde4749f73cc3 (diff)
php-pecl-swoole: disable coroutine with php < 5.5
-rw-r--r--php-pecl-swoole-dev.spec5
1 files changed, 5 insertions, 0 deletions
diff --git a/php-pecl-swoole-dev.spec b/php-pecl-swoole-dev.spec
index a2d8174..80b01a8 100644
--- a/php-pecl-swoole-dev.spec
+++ b/php-pecl-swoole-dev.spec
@@ -165,6 +165,11 @@ peclbuild() {
--enable-openssl \
--with-openssl \
--enable-sockets \
+%if "%{php_version}" > "5.5"
+ --enable-coroutine \
+%else
+ --disable-coroutine \
+%endif
%if %{with_nghttpd2}
--enable-http2 \
%endif