summaryrefslogtreecommitdiffstats
path: root/php-pecl-datadog-trace.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-10-09 09:53:03 +0200
committerRemi Collet <remi@php.net>2024-10-09 09:53:03 +0200
commit36e5f67d00e2a1729570cee4e22846c3424154fd (patch)
tree0d4f4458262ddb969f4e07fb815103c68b78afce /php-pecl-datadog-trace.spec
parent9e27a36e39de0b134b1398df14ab722e22792738 (diff)
update to 1.4.0
Diffstat (limited to 'php-pecl-datadog-trace.spec')
-rw-r--r--php-pecl-datadog-trace.spec14
1 files changed, 11 insertions, 3 deletions
diff --git a/php-pecl-datadog-trace.spec b/php-pecl-datadog-trace.spec
index 89215eb..d1e92a5 100644
--- a/php-pecl-datadog-trace.spec
+++ b/php-pecl-datadog-trace.spec
@@ -30,7 +30,7 @@
# extension name
%global pecl_name ddtrace
-%global upstream_version 1.3.2
+%global upstream_version 1.4.0
#global upstream_prever beta1
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global ini_name 40-%{pecl_name}.ini
@@ -167,11 +167,15 @@ source /opt/%{scl_vendor}/%{scl}/enable
cd %{sources}
%{__phpize}
+[ -f Makefile.global ] && GLOBAL=Makefile.global || GLOBAL=build/Makefile.global
+sed -e 's/INSTALL_ROOT/DESTDIR/' -i $GLOBAL
cd ../NTS
%configure \
--enable-ddtrace \
--with-php-config=%{__phpconfig}
+
+# make_build breaks verbose mode for rust, so keep old way
make %{?_smp_mflags}
%if %{with_zts}
@@ -179,6 +183,7 @@ cd ../ZTS
%configure \
--enable-ddtrace \
--with-php-config=%{__ztsphpconfig}
+
make %{?_smp_mflags}
%endif
@@ -186,7 +191,7 @@ make %{?_smp_mflags}
%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}
@@ -195,7 +200,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
@@ -275,6 +280,9 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Wed Oct 9 2024 Remi Collet <remi@remirepo.net> - 1.4.0-1
+- update to 1.4.0
+
* Fri Sep 27 2024 Remi Collet <remi@remirepo.net> - 1.3.2-1
- update to 1.3.2