summaryrefslogtreecommitdiffstats
path: root/php-pecl-openswoole.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-11-29 07:40:27 +0100
committerRemi Collet <remi@php.net>2021-11-29 07:40:27 +0100
commitf4b8a5058dd6ba9c416c394254c1e02c1d863bcd (patch)
tree5662405fc67eafa45716b4b9855c64901e21190a /php-pecl-openswoole.spec
parentb8974193b9f64c0329e8d49d18f84cc85828c7d1 (diff)
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
Diffstat (limited to 'php-pecl-openswoole.spec')
-rw-r--r--php-pecl-openswoole.spec23
1 files changed, 22 insertions, 1 deletions
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 <remi@remirepo.net> - 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 <remi@remirepo.net> - 4.7.2-1
- update to 4.7.2
- open https://github.com/openswoole/swoole-src/pull/17