summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-08-21 04:08:39 +0000
committerCoprDistGit <infra@openeuler.org>2023-08-21 04:08:39 +0000
commit7baba3d4a0c8cd61181ac0e7f7d5b23032417495 (patch)
tree81980fc63289ac0a5c56a843786ddc84fcac3b36
parentfc907c401ce094dfc6df836b028e09a7c372c591 (diff)
automatic import of swoole
-rw-r--r--swoole.spec20
1 files changed, 18 insertions, 2 deletions
diff --git a/swoole.spec b/swoole.spec
index 70534ba..4b16ee8 100644
--- a/swoole.spec
+++ b/swoole.spec
@@ -5,11 +5,13 @@ Summary: Event-driven asynchronous and concurrent networking engine with
License: Apache 2.0
URL: https://www.swoole.com/
Source0: https://github.com/swoole/swoole-src/archive/refs/tags/v%{version}.tar.gz
-BuildRequires: php(language) >= 7.2.5
+BuildRequires: php(language)
BuildRequires: php-devel
BuildRequires: openssl-devel >= 1.0.2
BuildRequires: libnghttp2-devel
BuildRequires: jemalloc-devel
+BuildRequires: brotli-devel
+BuildRequires: libpq-devel
%description
Event-driven asynchronous and concurrent networking engine with high performance for PHP.
@@ -29,6 +31,14 @@ Event-driven asynchronous and concurrent networking engine with high performance
- support IPv4/IPv6/UnixSocket/TCP/UDP
- support SSL/TLS encrypted transmission
+%package devel
+Summary: Development files for %{name}
+Requires: %{name} = %{version}
+Requires: php-devel
+
+%description devel
+Development files for %{name}.
+
%prep
%autosetup -p1 -n swoole-src-%{version}
@@ -37,9 +47,11 @@ Event-driven asynchronous and concurrent networking engine with high performance
%configure \
--enable-openssl \
--with-openssl-dir=%{_prefix} \
+ --with-brotli-dir=%{_prefix} \
--enable-sockets \
--with-nghttp2-dir=%{_prefix} \
- --with-jemalloc-dir=%{_prefix}
+ --with-jemalloc-dir=%{_prefix} \
+ --enable-swoole-pgsql
%make_build
%install
@@ -47,6 +59,10 @@ Event-driven asynchronous and concurrent networking engine with high performance
%files
%license LICENSE
+%{_libdir}/php/modules/swoole.so
+
+%files devel
+%{_includedir}/php/ext/swoole
%changelog
* Mon Aug 21 2023 Funda Wang <fundawang@yeah.net> - 5.0.3-1