blob: 4b16ee85c46f07ecceb640486a4a3718885dd47f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
Name: swoole
Version: 5.0.3
Release: 1
Summary: Event-driven asynchronous and concurrent networking engine with high performance for PHP
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)
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.
- event-driven
- coroutine
- asynchronous non-blocking
- multi-thread reactor
- multi-process worker
- multi-protocol
- millisecond timer
- built-in tcp/http/websocket/http2 server
- coroutine tcp/http/websocket client
- coroutine mysql client
- coroutine redis client
- coroutine read/write file system
- coroutine dns lookup
- 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}
%build
%{_bindir}/phpize
%configure \
--enable-openssl \
--with-openssl-dir=%{_prefix} \
--with-brotli-dir=%{_prefix} \
--enable-sockets \
--with-nghttp2-dir=%{_prefix} \
--with-jemalloc-dir=%{_prefix} \
--enable-swoole-pgsql
%make_build
%install
%make_install INSTALL_ROOT=%{buildroot}
%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
- Import package
|