From f4b8a5058dd6ba9c416c394254c1e02c1d863bcd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 29 Nov 2021 07:40:27 +0100 Subject: update to 4.8.0 enable postgresql support add fix for old postgresql 9 in EL-7 from https://github.com/openswoole/swoole-src/pull/84 --- php-pecl-openswoole.spec | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'php-pecl-openswoole.spec') diff --git a/php-pecl-openswoole.spec b/php-pecl-openswoole.spec index 27e51a8..b6ef144 100644 --- a/php-pecl-openswoole.spec +++ b/php-pecl-openswoole.spec @@ -26,8 +26,9 @@ %else %bcond_with brotli %endif +%bcond_without pgsql -%global upstream_version 4.7.2 +%global upstream_version 4.8.0 #global upstream_prever RC2 @@ -41,6 +42,8 @@ License: ASL 2.0 and BSD URL: https://pecl.php.net/package/%{pecl_name} Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz +Patch0: %{pecl_name}-pg9.patch + BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?dtsprefix}gcc-c++ @@ -60,6 +63,13 @@ BuildRequires: c-ares-devel %if %{with brotli} BuildRequires: brotli-devel %endif +%if %{with pgsql} +%if 0%{?fedora} >= 29 && 0%{?rhel} >= 8 +BuildRequires: libpq-devel > 9 +%else +BuildRequires: postgresql-devel > 9 +%endif +%endif Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} @@ -146,6 +156,8 @@ sed \ cd NTS +%patch0 -p1 + cp -p thirdparty/hiredis/COPYING hiredis-COPYING cp -p thirdparty/nghttp2/COPYING nghttp2-COPYING @@ -188,6 +200,9 @@ peclbuild() { --enable-openssl \ --enable-http2 \ --enable-mysqlnd \ +%if %{with pgsql} + --with-postgres \ +%endif --enable-swoole-json \ --enable-swoole-curl \ %if %{with cares} @@ -315,6 +330,12 @@ cd ../ZTS %changelog +* Mon Nov 29 2021 Remi Collet - 4.8.0-1 +- update to 4.8.0 +- enable postgresql support +- add fix for old postgresql 9 in EL-7 from + https://github.com/openswoole/swoole-src/pull/84 + * Mon Oct 25 2021 Remi Collet - 4.7.2-1 - update to 4.7.2 - open https://github.com/openswoole/swoole-src/pull/17 -- cgit