diff --git a/swoole-5.1.3-fix-brotli-libname.patch b/swoole-5.1.3-fix-brotli-libname.patch new file mode 100644 index 0000000000000000000000000000000000000000..103da1e66b38ce8e6ec93b6534520f7df5a93a7a --- /dev/null +++ b/swoole-5.1.3-fix-brotli-libname.patch @@ -0,0 +1,18 @@ +--- a/config.m4.orig 2024-07-31 23:13:08.753608500 +0800 ++++ b/config.m4 2024-07-31 23:13:27.803723100 +0800 +@@ -842,7 +842,6 @@ + if test "$PHP_BROTLI" != "no" || test "$PHP_BROTLI_DIR" != "no"; then + if test "$PHP_BROTLI_DIR" != "no"; then + PHP_ADD_INCLUDE("${PHP_BROTLI_DIR}/include") +- PHP_ADD_LIBRARY_WITH_PATH(brotli, "${PHP_BROTLI_DIR}/${PHP_LIBDIR}") + PHP_ADD_LIBRARY_WITH_PATH(brotlienc, "${PHP_BROTLI_DIR}/${PHP_LIBDIR}") + PHP_ADD_LIBRARY_WITH_PATH(brotlidec, "${PHP_BROTLI_DIR}/${PHP_LIBDIR}") + else +@@ -981,7 +980,6 @@ + AC_DEFINE(SW_HAVE_COMPRESSION, 1, [have compression]) + AC_DEFINE(SW_HAVE_BROTLI, 1, [have brotli encoder]) + PHP_ADD_INCLUDE("${PHP_BROTLI_DIR}/include") +- PHP_ADD_LIBRARY_WITH_PATH(brotli, "${PHP_BROTLI_DIR}/${PHP_LIBDIR}") + PHP_ADD_LIBRARY_WITH_PATH(brotlienc, "${PHP_BROTLI_DIR}/${PHP_LIBDIR}") + PHP_ADD_LIBRARY_WITH_PATH(brotlidec, "${PHP_BROTLI_DIR}/${PHP_LIBDIR}") + fi diff --git a/swoole-5.1.3.tgz b/swoole-5.1.3.tgz new file mode 100644 index 0000000000000000000000000000000000000000..bb8304735c31ff1a6b346c9380e69d2f44e305e6 Binary files /dev/null and b/swoole-5.1.3.tgz differ diff --git a/swoole.spec b/swoole.spec index 28cda7ab67813074bb0f5d8d8394b45921d91de2..9819e9a84c1b1bb299adedf7f95b64c843ed57c5 100644 --- a/swoole.spec +++ b/swoole.spec @@ -1,12 +1,13 @@ %global ini_name 40-swoole.ini Name: swoole -Version: 5.0.3 +Version: 5.1.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 +Source0: https://github.com/swoole/swoole-src/releases/download/v%{version}/%{name}-%{version}.tgz +Patch0: swoole-5.1.3-fix-brotli-libname.patch BuildRequires: php(language) >= 8.0 BuildRequires: php-cli >= 8.0 BuildRequires: php-devel @@ -14,7 +15,8 @@ BuildRequires: openssl-devel >= 1.0.2 BuildRequires: curl-devel BuildRequires: c-ares-devel BuildRequires: libnghttp2-devel -BuildRequires: brotli-devel +BuildRequires: pkgconfig(libbrotlienc) +BuildRequires: pkgconfig(libbrotlidec) BuildRequires: libpq-devel Requires: php(api) = %{php_core_api} Requires: php-curl @@ -46,7 +48,7 @@ Requires: php-devel >= 8.0 Development files for %{name}. %prep -%autosetup -p1 -n swoole-src-%{version} +%autosetup -p1 -n %{name}-%{version} # Drop in the bit of configuration cat << 'EOF' | tee %{ini_name} @@ -59,7 +61,7 @@ EOF %configure \ --enable-openssl \ --with-openssl-dir=%{_prefix} \ - --with-brotli-dir=%{_prefix} \ + --enable-brotli \ --enable-cares \ --enable-swoole-curl \ --with-nghttp2-dir=%{_prefix} \ @@ -80,5 +82,8 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} %{_includedir}/php/ext/swoole %changelog +* Wed Jul 31 2024 Funda Wang - 5.1.3-1 +- update to version 5.1.3 + * Mon Aug 21 2023 Funda Wang - 5.0.3-1 - Import package diff --git a/v5.0.3.tar.gz b/v5.0.3.tar.gz deleted file mode 100644 index 201de6111814aa6231597a1db9eef3866be00343..0000000000000000000000000000000000000000 Binary files a/v5.0.3.tar.gz and /dev/null differ