summaryrefslogtreecommitdiffstats
path: root/php-pecl-grpc.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-grpc.spec')
-rw-r--r--php-pecl-grpc.spec23
1 files changed, 17 insertions, 6 deletions
diff --git a/php-pecl-grpc.spec b/php-pecl-grpc.spec
index e13edb5..7af2422 100644
--- a/php-pecl-grpc.spec
+++ b/php-pecl-grpc.spec
@@ -22,8 +22,8 @@
%global pecl_name grpc
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global ini_name 40-%{pecl_name}.ini
-%global upstream_version 1.66.0
-%global upstream_prever RC5
+%global upstream_version 1.67.0
+#global upstream_prever RC5
%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever}
%global _configure ../%{sources}/configure
# Disable LTO (erratic crash during build)
@@ -50,6 +50,9 @@ BuildRequires: %{?scl_prefix}php-pear
BuildRequires: zlib-devel
%if %{with openssl}
BuildRequires: openssl-devel
+%if 0%{?fedora} >= 41
+BuildRequires: openssl-devel-engine
+%endif
%endif
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
@@ -123,6 +126,8 @@ EOF
cd %{sources}
%{__phpize}
+[ -f Makefile.global ] && GLOBAL=Makefile.global || GLOBAL=build/Makefile.global
+sed -e 's/INSTALL_ROOT/DESTDIR/' -i $GLOBAL
cd ../NTS
%configure \
@@ -131,7 +136,7 @@ cd ../NTS
--with-libdir=%{_lib} \
--with-php-config=%{__phpconfig}
-make %{?_smp_mflags}
+%make_build
%if %{with_zts}
cd ../ZTS
@@ -141,14 +146,14 @@ cd ../ZTS
--with-libdir=%{_lib} \
--with-php-config=%{__ztsphpconfig}
-make %{?_smp_mflags}
+%make_build
%endif
%install
%{?dtsenable}
-make -C NTS install INSTALL_ROOT=%{buildroot}
+%make_install -C NTS
# install config file
install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
@@ -157,7 +162,7 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
%if %{with_zts}
-make -C ZTS install INSTALL_ROOT=%{buildroot}
+%make_install -C ZTS
install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
%endif
@@ -198,6 +203,12 @@ cd ../ZTS
%changelog
+* Thu Oct 17 2024 Remi Collet <remi@remirepo.net> - 1.67.0-1
+- update to 1.67.0
+
+* Mon Aug 26 2024 Remi Collet <remi@remirepo.net> - 1.66.0-1
+- update to 1.66.0
+
* Mon Aug 19 2024 Remi Collet <remi@remirepo.net> - 1.66.0~RC5-1
- update to 1.66.0RC5