From 2571d24490337443b4c9e138a3ee2337afdaa0dc Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 10 Apr 2018 14:55:07 +0200 Subject: 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 --- php-pecl-swoole2.spec | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'php-pecl-swoole2.spec') 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,12 +190,16 @@ peclbuild() { %configure \ --with-swoole \ --enable-sockets \ + --enable-trace-log \ %if %{with_hiredis} --enable-async-redis \ %endif --enable-openssl \ %if %{with_nghttpd2} --enable-http2 \ +%endif +%if %{with_pgsql} + --enable-coroutine-postgresql \ %endif --enable-thread \ --enable-mysqlnd \ @@ -301,6 +316,13 @@ cd ../ZTS %changelog +* Tue Apr 10 2018 Remi Collet - 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 - 2.1.1-1 - update to 2.1.1 -- cgit