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.spec14
1 files changed, 8 insertions, 6 deletions
diff --git a/php-pecl-skywalking-agent.spec b/php-pecl-skywalking-agent.spec
index 21e248f..7baf023 100644
--- a/php-pecl-skywalking-agent.spec
+++ b/php-pecl-skywalking-agent.spec
@@ -20,7 +20,8 @@
%global sources %{pecl_name}-%{version}
%global _configure ../%{sources}/configure
-## BUILD: Fedora / EL-8 and EL-9 using --enablerepo=stream
+## BUILD: Fedora / EL-8 and EL-9 using --enablerepo=stream if needed
+## EL-7 not supported (This crate only supports `libclang` 3.5 and later)
## TODO: issues
# no support for offline build
@@ -29,7 +30,7 @@
Summary: Apache SkyWalking PHP Agent
Name: %{?scl_prefix}php-pecl-skywalking-agent
-Version: 0.6.0
+Version: 0.7.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}
@@ -84,7 +85,6 @@ sed -e 's/role="test"/role="src"/' \
%{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \
-i package.xml
-pushd %{sources}
# Create cargo configuration to use vendor directory
mkdir .cargo
cat << EOF | tee .cargo/config.toml
@@ -104,9 +104,10 @@ verbose = true
replace-with = "vendored-sources"
[source.vendored-sources]
-directory = "$(dirname $PWD)/mycargo"
+directory = "$PWD/mycargo"
EOF
+pushd %{sources}
: Check version
grep '^version' Cargo.toml
grep '^version = "%{version}"' Cargo.toml
@@ -158,7 +159,6 @@ cd %{sources}
%{__phpize}
cd ../NTS
-cp -r ../%{sources}/.cargo .cargo
%configure \
--enable-skywalking_agent \
--enable-kafka-reporter \
@@ -167,7 +167,6 @@ make %{?_smp_mflags}
%if %{with_zts}
cd ../ZTS
-cp -r ../%{sources}/.cargo .cargo
%configure \
--enable-skywalking_agent \
--enable-kafka-reporter \
@@ -252,6 +251,9 @@ OPT="-n -d extension=curl.so -d extension=json.so"
%changelog
+* Thu Sep 28 2023 Remi Collet <remi@remirepo.net> - 0.7.0-1
+- update to 0.7.0
+
* Fri Aug 25 2023 Remi Collet <remi@remirepo.net> - 0.6.0-1
- update to 0.6.0
- build out of sources tree