summaryrefslogtreecommitdiffstats
path: root/php-pecl-swoole2.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-swoole2.spec')
-rw-r--r--php-pecl-swoole2.spec26
1 files changed, 24 insertions, 2 deletions
diff --git a/php-pecl-swoole2.spec b/php-pecl-swoole2.spec
index 9d6bc04..6870538 100644
--- a/php-pecl-swoole2.spec
+++ b/php-pecl-swoole2.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-swoole2
#
-# Copyright (c) 2013-2017 Remi Collet
+# Copyright (c) 2013-2018 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -25,16 +25,24 @@
%global ini_name 40-%{pecl_name}.ini
%endif
+# BUT see https://github.com/swoole/swoole-src/issues/1558
+%if 0%{?fedora} >= 24 || 0%{?rhel} >= 8
+%global with_pgsql 1
+%else
+%global with_pgsql 0
+%endif
+
%if 0%{?fedora} >= 22 || 0%{?rhel} >= 6
%global with_nghttpd2 1
%else
%global with_nghttpd2 0
%endif
+
%global with_hiredis 1
Summary: PHP's asynchronous concurrent distributed networking framework
Name: %{?sub_prefix}php-pecl-%{pecl_name}2
-Version: 2.1.1
+Version: 2.1.2
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: BSD
URL: http://pecl.php.net/package/%{pecl_name}
@@ -50,6 +58,9 @@ BuildRequires: openssl-devel
%if %{with_nghttpd2}
BuildRequires: libnghttp2-devel
%endif
+%if %{with_pgsql}
+BuildRequires: postgresql-devel > 9.5
+%endif
%if %{with_hiredis}
BuildRequires: hiredis-devel
%endif
@@ -179,6 +190,7 @@ peclbuild() {
%configure \
--with-swoole \
--enable-sockets \
+ --enable-trace-log \
%if %{with_hiredis}
--enable-async-redis \
%endif
@@ -186,6 +198,9 @@ peclbuild() {
%if %{with_nghttpd2}
--enable-http2 \
%endif
+%if %{with_pgsql}
+ --enable-coroutine-postgresql \
+%endif
--enable-thread \
--enable-mysqlnd \
--enable-coroutine \
@@ -301,6 +316,13 @@ cd ../ZTS
%changelog
+* Tue Apr 10 2018 Remi Collet <remi@remirepo.net> - 2.1.2-1
+- update to 2.1.2
+- add PostgreSQL coroutine client on Fedora 24+
+- enable trace log
+- open https://github.com/swoole/swoole-src/issues/1558
+ broken build with PHP 7.0
+
* Wed Mar 7 2018 Remi Collet <remi@remirepo.net> - 2.1.1-1
- update to 2.1.1