summaryrefslogtreecommitdiffstats
path: root/php-pecl-eio.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-09-05 16:01:28 +0200
committerRemi Collet <remi@php.net>2023-09-05 16:01:28 +0200
commitf6310198d46dc98ebb4943280d361f1b3ac6b5c9 (patch)
treeb0d2f27e0dcf14db8ea2d55037c4125beaa6b422 /php-pecl-eio.spec
parentd0c6ea32aa13888e21c42bf55a6a1097289c54dc (diff)
add patch for PHP from discussion on
https://github.com/rosmanov/pecl-eio/issues/19
Diffstat (limited to 'php-pecl-eio.spec')
-rw-r--r--php-pecl-eio.spec16
1 files changed, 12 insertions, 4 deletions
diff --git a/php-pecl-eio.spec b/php-pecl-eio.spec
index d7e7017..fd4aaa0 100644
--- a/php-pecl-eio.spec
+++ b/php-pecl-eio.spec
@@ -8,7 +8,7 @@
#
%{?scl:%scl_package php-pecl-eio}
-# Defined in Fedora >= 37 and RHEL >= 10, in PHP >= 7.4 for remirepo
+# For PHP < 5.6 and EPEL-9
%{!?__phpize: %global __phpize %{_bindir}/phpize}
%{!?__ztsphpize: %global __ztsphpize %{_bindir}/zts-phpize}
%{!?__phpconfig: %global __phpconfig %{_bindir}/php-config}
@@ -38,12 +38,14 @@
Summary: Provides interface to the libeio library
Name: %{?scl_prefix}php-pecl-%{pecl_name}
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 PHP-3.01, library is BSD-2-Clause (or GPL-2.0-or-later)
License: PHP-3.01 AND BSD-2-Clause
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
+Patch0: %{pecl_name}-php83.patch
+
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel
@@ -55,7 +57,6 @@ BuildRequires: %{?scl_prefix}php-posix
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
Requires: %{?scl_prefix}php-sockets%{?_isa}
-%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
@@ -86,6 +87,9 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd %{sources}
+%if "%{php_version}" >= "8.3"
+%patch -P0 -p1
+%endif
sed -e 's/3.0.0RC5/%{upstream_version}%{?upstream_prever}/' -i php%(%{__php} -r 'echo PHP_MAJOR_VERSION;')/php_eio.h
@@ -183,7 +187,7 @@ DEPMOD=
: Minimal load test for NTS extension
cd %{sources}
-%{_bindir}/php --no-php-ini \
+%{__php} --no-php-ini \
$DEPMOD \
--define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
--modules | grep %{pecl_name}
@@ -230,6 +234,10 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Tue Sep 5 2023 Remi Collet <remi@remirepo.net> - 3.1.0~RC1-2
+- add patch for PHP from discussion on
+ https://github.com/rosmanov/pecl-eio/issues/19
+
* Thu Jun 1 2023 Remi Collet <remi@remirepo.net> - 3.1.0~RC1-1
- update to 3.1.0RC1
- build out of sources tree