summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-03-29 15:23:38 +0200
committerRemi Collet <remi@php.net>2023-03-29 15:23:38 +0200
commitad8caef55a818502fba3473d253ddd19554fd6c9 (patch)
tree49374baf621634783c3290790cb2252aad601fa7
parentb8e5e47e812e8292bbf4e3a5202f33dc07a92048 (diff)
update to 0.4.0
-rw-r--r--PHPINFO2
-rw-r--r--REFLECTION2
-rw-r--r--php-pecl-skywalking-agent.spec19
3 files changed, 14 insertions, 9 deletions
diff --git a/PHPINFO b/PHPINFO
index 44e9aa9..78e9160 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -1,7 +1,7 @@
skywalking_agent
-version => 0.3.0
+version => 0.4.0
authors => Apache Software Foundation:jmjoy <jmjoy@apache.org>:Yanlong He <heyanlong@apache.org>
Directive => Local Value => Master Value
diff --git a/REFLECTION b/REFLECTION
index 45b299d..bd63ce5 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #98 skywalking_agent version 0.3.0 ] {
+Extension [ <persistent> extension #97 skywalking_agent version 0.4.0 ] {
- INI {
Entry [ skywalking_agent.enable <SYSTEM> ]
diff --git a/php-pecl-skywalking-agent.spec b/php-pecl-skywalking-agent.spec
index 5dce605..98ef489 100644
--- a/php-pecl-skywalking-agent.spec
+++ b/php-pecl-skywalking-agent.spec
@@ -21,17 +21,16 @@
## TODO: issues
# bad role for documentation (role="src" instead of role="doc")
-#=> fixed in prep
-# no PHP 8.2 support
-# broken build with new GCC 12 (Fedora 36+)
+# => fixed in prep
# broken build with rust 1.62 (RHEL-8 and RHEL-9)
+# => fixed using stream (rust 1.66)
# no support for offline build
# => workaround with "cargo vendor"
Summary: Apache SkyWalking PHP Agent
Name: %{?scl_prefix}php-pecl-skywalking-agent
-Version: 0.3.0
+Version: 0.4.0
Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
License: Apache-2.0
URL: https://pecl.php.net/package/%{pecl_name}
@@ -89,6 +88,9 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
pushd NTS
+# parallel build
+sed -e '/CARGO_MODE_FLAGS/s/--release/%{?_smp_mflags} --release/' -i config.m4
+
# Create cargo configuration to use vendor directory
mkdir .cargo
cat << EOF | tee .cargo/config.toml
@@ -220,18 +222,18 @@ OPT="-n -d extension=curl.so -d extension=json.so"
# Minimal load test for NTS extension
%{__php} $OPT \
--define extension=$PWD/NTS/modules/%{pecl_name}.so \
- --modules | grep %{pecl_name}
+ --modules | grep '^%{pecl_name}$'
%if %{with_zts}
# Minimal load test for ZTS extension
%{__ztsphp} $OPT \
--define extension=$PWD/ZTS/modules/%{pecl_name}.so \
- --modules | grep %{pecl_name}
+ --modules | grep '^%{pecl_name}$'
%endif
%files
-%{?_licensedir:%license NTS/LICENSE}
+%{?_licensedir:%license NTS/LICENSE NTS/dist-material/licenses/LICENSE*}
%doc %{pecl_docdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml
@@ -245,6 +247,9 @@ OPT="-n -d extension=curl.so -d extension=json.so"
%changelog
+* Wed Mar 29 2023 Remi Collet <remi@remirepo.net> - 0.4.0-1
+- update to 0.4.0
+
* Thu Feb 2 2023 Remi Collet <remi@remirepo.net> - 0.3.0-1
- update to 0.3.0