summaryrefslogtreecommitdiffstats
path: root/php-pecl-swoole4.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-11-23 07:37:39 +0100
committerRemi Collet <remi@remirepo.net>2020-11-23 07:37:39 +0100
commit883fc719901ca3cbdc6b3822ffaeda145c4a75d5 (patch)
treea7c91a89a9dbb544f961efd5e8c0a2566e471a70 /php-pecl-swoole4.spec
parentfa1d57ed10e873b9ec89c74236027b1084872dd4 (diff)
add upstream patch for PHP 8
Diffstat (limited to 'php-pecl-swoole4.spec')
-rw-r--r--php-pecl-swoole4.spec9
1 files changed, 8 insertions, 1 deletions
diff --git a/php-pecl-swoole4.spec b/php-pecl-swoole4.spec
index ef1a207..8c75805 100644
--- a/php-pecl-swoole4.spec
+++ b/php-pecl-swoole4.spec
@@ -34,13 +34,15 @@
Summary: PHP's asynchronous concurrent distributed networking framework
Name: %{?sub_prefix}php-pecl-%{pecl_name}4
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
# Extension is ASL 2.0
# Hiredis is BSD
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: https://github.com/swoole/swoole-src/commit/9ab8f1dfd8889f9e8581452c1ecde11cbb702280.patch
+
%if 0%{?rhel} == 6
BuildRequires: devtoolset-6-toolchain
%else
@@ -165,6 +167,8 @@ sed \
cd NTS
+%patch0 -p1 -b .up
+
# Sanity check, really often broken
extver=$(sed -n '/#define SWOOLE_VERSION /{s/.* "//;s/".*$//;p}' include/swoole_version.h)
if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then
@@ -335,6 +339,9 @@ cd ../ZTS
%changelog
+* Mon Nov 23 2020 Remi Collet <remi@remirepo.net> - 4.5.8-2
+- add upstream patch for PHP 8
+
* Sat Nov 21 2020 Remi Collet <remi@remirepo.net> - 4.5.8-1
- update to 4.5.8