summaryrefslogtreecommitdiffstats
path: root/php-pecl-skywalking-agent.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-skywalking-agent.spec')
-rw-r--r--php-pecl-skywalking-agent.spec19
1 files changed, 12 insertions, 7 deletions
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