opentelemetry-cpp: add package v1.10.0 (#5947)

* opentelemetry-cpp: enable OTLP_GRPC & OTLP_HTTP
* opentelemetry-cpp: refactor into libs & devel subpackage

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
This commit is contained in:
Muhammad Falak R Wani 2023-08-10 10:23:18 +05:30 committed by GitHub
parent 12ff56c0b6
commit 3995717b83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 109 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -2232,6 +2232,7 @@
"nmi",
"node-problem-detector",
"ntopng",
"opentelemetry-cpp",
"packer",
"pcaudiolib",
"pcre2",

View File

@ -0,0 +1,6 @@
{
"Signatures": {
"opentelemetry-cpp-1.10.0.tar.gz": "19e8ade04a674c8cf7f0dc6da1f7b0583a27d2cf4dbc03df87894a16a4547834",
"opentelemetry-proto-1.0.0.tar.gz": "a13a1a7b76a1f22a0ca2e6c293e176ffef031413ab8ba653a82a1dbc286a3a33"
}
}

View File

@ -0,0 +1,91 @@
Summary: The OpenTelemetry C++ Client
Name: opentelemetry-cpp
Version: 1.10.0
Release: 1%{?dist}
License: MIT
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://github.com/open-telemetry/opentelemetry-cpp
Source0: https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# Standard proto files source: https://github.com/open-telemetry/opentelemetry-proto
Source1: opentelemetry-proto-1.0.0.tar.gz
BuildRequires: c-ares-devel
BuildRequires: cmake
BuildRequires: curl-devel
BuildRequires: gmock-devel
BuildRequires: grpc-devel
BuildRequires: grpc-plugins
BuildRequires: gtest-devel
BuildRequires: nlohmann-json-devel
BuildRequires: protobuf-devel
BuildRequires: re2-devel
%description
The official OpenTelemetry CPP client
%package devel
Summary: Development Libraries for OpenTelemetry CPP client
Group: Development/Libraries
Requires: opentelemetry-cpp = %{version}-%{release}
%description devel
Development Libraries for OpenTelemetry CPP client
%prep
%autosetup -p1
mkdir -p third_party/opentelemetry-proto
tar xf %{SOURCE1} -C third_party/opentelemetry-proto --strip-components=1
%build
mkdir build && cd build
%cmake \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DOPENTELEMETRY_INSTALL=ON \
-DWITH_BENCHMARK=OFF \
-DWITH_NO_DEPRECATED_CODE=ON \
-DWITH_OTLP_GRPC=ON \
-DWITH_OTLP_HTTP=ON \
-DWITH_STL=ON \
-DWITH_ZPAGES=ON \
-DOTELCPP_PROTO_PATH=../third_party/opentelemetry-proto \
..
%make_build
%install
%make_install -C build
%check
%make_build -C build test
%files
%license LICENSE
%{_libdir}/libopentelemetry_common.so
%{_libdir}/libopentelemetry_exporter_in_memory.so
%{_libdir}/libopentelemetry_exporter_ostream_metrics.so
%{_libdir}/libopentelemetry_exporter_ostream_span.so
%{_libdir}/libopentelemetry_exporter_otlp_grpc_client.so
%{_libdir}/libopentelemetry_exporter_otlp_grpc_log.so
%{_libdir}/libopentelemetry_exporter_otlp_grpc_metrics.so
%{_libdir}/libopentelemetry_exporter_otlp_grpc.so
%{_libdir}/libopentelemetry_exporter_otlp_http_client.so
%{_libdir}/libopentelemetry_exporter_otlp_http_metric.so
%{_libdir}/libopentelemetry_exporter_otlp_http.so
%{_libdir}/libopentelemetry_http_client_curl.so
%{_libdir}/libopentelemetry_metrics.so
%{_libdir}/libopentelemetry_otlp_recordable.so
%{_libdir}/libopentelemetry_proto_grpc.so
%{_libdir}/libopentelemetry_proto.so
%{_libdir}/libopentelemetry_resources.so
%{_libdir}/libopentelemetry_trace.so
%{_libdir}/libopentelemetry_version.so
%{_libdir}/libopentelemetry_zpages.so
%files devel
%{_includedir}/opentelemetry/*
%{_libdir}/cmake/opentelemetry-cpp/*
%changelog
* Mon Jul 17 2023 Muhammad Falak R Wani <mwani@microsoft.com> - 1.10.0-1
- Original version for CBL-Mariner
- License Verified

View File

@ -15339,6 +15339,16 @@
}
}
},
{
"component": {
"type": "other",
"other": {
"name": "opentelemetry-cpp",
"version": "1.10.0",
"downloadUrl": "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.10.0.tar.gz"
}
}
},
{
"component": {
"type": "other",