summaryrefslogtreecommitdiffstats
path: root/php-pecl-openswoole25.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-02-03 08:47:18 +0100
committerRemi Collet <remi@php.net>2025-02-03 08:47:18 +0100
commit300418f98a81020ef17497fd0e961c5a7d8587f9 (patch)
treeb4db0313cc7132b7ad70c6041429424ae718fa95 /php-pecl-openswoole25.spec
parent8b0f5993eeb5b89003d16596ef59013297966191 (diff)
update to 25.2.0HEADmaster
re-license spec file to CECILL-2.1 fix cpu affinity check and futext check using patch from https://github.com/openswoole/ext-openswoole/pull/376 raise dependency on PHP 8.2 rename to php-pecl-openswoole25 for new API update to 25.2.0 re-license spec file to CECILL-2.1 fix cpu affinity check and futext check using patch from https://github.com/openswoole/ext-openswoole/pull/376 raise dependency on PHP 8.2 rename to php-pecl-openswoole25 for new API
Diffstat (limited to 'php-pecl-openswoole25.spec')
-rw-r--r--php-pecl-openswoole25.spec39
1 files changed, 28 insertions, 11 deletions
diff --git a/php-pecl-openswoole25.spec b/php-pecl-openswoole25.spec
index 92b3a46..f802b41 100644
--- a/php-pecl-openswoole25.spec
+++ b/php-pecl-openswoole25.spec
@@ -1,13 +1,13 @@
-# remirepo spec file for php-pecl-openswoole22
+# remirepo spec file for php-pecl-openswoole25
#
-# Copyright (c) 2013-2024 Remi Collet
-# License: CC-BY-SA-4.0
-# http://creativecommons.org/licenses/by-sa/4.0/
+# SPDX-FileCopyrightText: Copyright 2013-2025 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
-%{?scl:%scl_package php-pecl-openswoole22}
+%{?scl:%scl_package php-pecl-openswoole25}
# See https://github.com/openswoole/swoole-src/issues/287
%global with_zts 0
@@ -20,14 +20,14 @@
%bcond_without brotli
%bcond_without pgsql
-%global upstream_version 22.1.2
+%global upstream_version 25.2.0
#global upstream_prever RC2
%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever}
%global _configure ../%{sources}/configure
Summary: High Performance Programmatic Server for PHP with Async IO, Coroutines and Fibers
-Name: %{?scl_prefix}php-pecl-%{pecl_name}22
+Name: %{?scl_prefix}php-pecl-%{pecl_name}25
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
# SPDX: extension is Apache-2.0
@@ -36,10 +36,13 @@ License: Apache-2.0 AND BSD-3-Clause
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{sources}.tgz
+Patch0: 0001-fix-cpu-affinity-check.patch
+Patch1: 0002-fix-futex-check.patch
+
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?dtsprefix}gcc-c++
-BuildRequires: %{?scl_prefix}php-devel >= 8.1
+BuildRequires: %{?scl_prefix}php-devel >= 8.2
BuildRequires: %{?scl_prefix}php-pear
BuildRequires: %{?scl_prefix}php-curl
BuildRequires: %{?scl_prefix}php-sockets
@@ -68,19 +71,22 @@ Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
-%if 0%{?fedora} >= 38 || 0%{?rhel} >= 10 || "%{php_version}" > "8.3"
-Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name} < 22
+%if 0%{?fedora} >= 42 || 0%{?rhel} >= 10 || "%{php_version}" > "8.4"
+Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name} < 25
+Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name}22 < 25
Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release}
Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
%else
# A single version can be installed
-Conflicts: %{?scl_prefix}php-pecl-%{pecl_name} < 22
+Conflicts: %{?scl_prefix}php-pecl-%{pecl_name} < 25
+Conflicts: %{?scl_prefix}php-pecl-%{pecl_name}22 < 25
%endif
# Only one extension can be installed (same symbols)
Conflicts: %{?scl_prefix}php-pecl-swoole
Conflicts: %{?scl_prefix}php-pecl-swoole2
Conflicts: %{?scl_prefix}php-pecl-swoole4
Conflicts: %{?scl_prefix}php-pecl-swoole5
+Conflicts: %{?scl_prefix}php-pecl-swoole6
%description
@@ -117,6 +123,9 @@ sed \
cd %{sources}
+%patch -P0 -p1 -b .pr376.1
+%patch -P1 -p1 -b .pr376.2
+
cp -p thirdparty/hiredis/COPYING hiredis-COPYING
cp -p thirdparty/nghttp2/COPYING nghttp2-COPYING
@@ -261,6 +270,14 @@ OPT="--no-php-ini"
%changelog
+* Mon Feb 3 2025 Remi Collet <remi@remirepo.net> - 25.2.0-1
+- update to 25.2.0
+- re-license spec file to CECILL-2.1
+- fix cpu affinity check and futext check using patch from
+ https://github.com/openswoole/ext-openswoole/pull/376
+- raise dependency on PHP 8.2
+- rename to php-pecl-openswoole25 for new API
+
* Mon Nov 25 2024 Remi Collet <remi@remirepo.net> - 22.1.2-3
- drop BuildRequires pcre-devel