Name: opentelemetry-cpp Version: 1.23.0 Release: 1%{?dist} Summary: OpenTelemetry C++ Client Library License: Apache-2.0 URL: https://github.com/open-telemetry/opentelemetry-cpp Source0: https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: protobuf-devel BuildRequires: grpc-devel BuildRequires: curl-devel BuildRequires: openssl-devel BuildRequires: zlib-devel BuildRequires: json-devel Requires: protobuf Requires: grpc %description OpenTelemetry C++ client library for distributed tracing and metrics. %package devel Summary: Development files for opentelemetry-cpp Requires: %{name} = %{version}-%{release} Requires: grpc-devel Requires: curl-devel %description devel Headers and CMake configuration files required to build applications using OpenTelemetry C++. %prep %autosetup -n %{name}-%{version} %build %cmake \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_TESTING=OFF \ -DBUILD_BENCHMARKS=OFF \ -DWITH_BENCHMARK=OFF \ -DWITH_OTLP=ON \ -DWITH_OTLP_GRPC=ON \ -DWITH_OTLP_HTTP=ON \ -DWITH_NLOHMANN_JSON=OFF \ -DOTELCPP_USE_EXTERNAL_JSON=ON \ -DWITH_PROMETHEUS=OFF %cmake_build %install %cmake_install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSE %doc README.md %{_libdir}/libopentelemetry*.so %files devel %{_includedir}/opentelemetry %{_libdir}/cmake/opentelemetry-cpp %{_libdir}/pkgconfig/ %changelog * Mon Feb 24 2026 Ireneusz Zadworny - 1.23.0-1 - Update to 1.23.0 - AlmaLinux 9 build - Shared libraries only - OTLP + gRPC enabled