[packages/php-pecl-grpc] Rel 2. Load spl for php < 7.4 in module test; require spl.

arekm arekm at pld-linux.org
Wed Oct 14 23:00:37 CEST 2026


commit f41232f8a393e5036bf8376506b68eaeadd1978d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Oct 14 23:00:04 2026 +0200

    Rel 2. Load spl for php < 7.4 in module test; require spl.

 php-pecl-grpc.spec | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/php-pecl-grpc.spec b/php-pecl-grpc.spec
index 84a310a..5093276 100644
--- a/php-pecl-grpc.spec
+++ b/php-pecl-grpc.spec
@@ -10,7 +10,7 @@
 Summary:	A high performance, general RPC framework that puts mobile and HTTP/2 first
 Name:		%{php_name}-pecl-%{modname}
 Version:	1.84.0
-Release:	1
+Release:	2
 License:	Apache v2.0
 Group:		Development/Languages/PHP
 Source0:	https://pecl.php.net/get/%{modname}-%{version}.tgz
@@ -26,6 +26,7 @@ BuildRequires:	%{php_name}-pcre
 BuildRequires:	%{php_name}-spl
 %endif
 %{?requires_php_extension}
+Requires:	%{php_name}-spl
 Provides:	php(grpc) = %{version}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -51,6 +52,10 @@ phpize
 # simple module load test
 %{__php} -n -q \
 	-d extension_dir=modules \
+%if "%php_major_version.%php_minor_version" < "7.4"
+	-d extension=%{php_extensiondir}/pcre.so \
+	-d extension=%{php_extensiondir}/spl.so \
+%endif
 	-d extension=%{modname}.so \
 	-m > modules.log
 grep %{modname} modules.log
@@ -58,8 +63,10 @@ grep %{modname} modules.log
 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
 %{__make} test \
 	PHP_EXECUTABLE=%{__php} \
+%if "%php_major_version.%php_minor_version" < "7.4"
 	PHP_TEST_SHARED_SYSTEM_EXTENSIONS="pcre spl"
 %endif
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-grpc.git/commitdiff/f41232f8a393e5036bf8376506b68eaeadd1978d



More information about the pld-cvs-commit mailing list