Name: icinga-protobuf Version: 33.5 Release: 0%{?dist}.cubbi1 Summary: Protocol Buffers - Google's data interchange format. Group: Development/Libraries License: BSD-3-Clause URL: https://protobuf.dev Source0: icinga-protobuf-33.5.tgz %if "%{_vendor}" == "redhat" && (0%{?el8} || 0%{?rhel} == 8 || "%{?dist}" == ".el8") %define scl_name gcc-toolset-13 %define scl_enable scl enable %{scl_name} -- BuildRequires: %{scl_name}-gcc-c++ BuildRequires: %{scl_name}-annobin-plugin-gcc %else BuildRequires: gcc-c++ %define _gcc_flags -fno-lto %endif BuildRequires: cmake BuildRequires: make BuildRequires: git Requires: %{name}-devel = %{version}-%{release} %description Meta package for Protocol Buffers C++ libraries and headers. %package devel Summary: Protocol Buffers C++ headers and libraries. %description devel This package contains all Protocol Buffers libraries and headers, including the compiler, the lite runtime and CMake configuration files. %prep %autosetup %build CMAKE_ARGS=( -DCMAKE_C_FLAGS:STRING="%optflags %{?_gcc_flags} " -DCMAKE_CXX_FLAGS:STRING="%optflags %{?_gcc_flags} " -DCMAKE_CXX_STANDARD=17 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib64/icinga-protobuf -DCMAKE_INSTALL_BINDIR=/usr/lib64/icinga-protobuf/bin -DCMAKE_INSTALL_INCLUDEDIR=/usr/include/icinga-protobuf -Dprotobuf_CMAKE_SUBDIR=cmake -Dprotobuf_INSTALL_EXAMPLES=OFF -Dprotobuf_WITH_ZLIB=OFF -Dprotobuf_BUILD_SHARED_LIBS=OFF -DBUILD_TESTING=ON -Dprotobuf_BUILD_TESTS=ON ) %{?scl_enable} cmake -S . -B build "${CMAKE_ARGS[@]}" %{?scl_enable} /usr/bin/make %_smp_mflags V=1 VERBOSE=1 -C build %check ctest --test-dir build --progress --output-on-failure %install %{?scl_enable} /usr/bin/make install DESTDIR=%_topdir/BUILDROOT/%{name}-%{version}-%{release}.%_arch INSTALL="/usr/bin/install -p" STRIPBINARIES=no -C build DESTDIR="%_topdir/BUILDROOT/%{name}-%{version}-%{release}.%_arch" %files %doc CONTRIBUTORS.txt README.md %license LICENSE %files devel %doc CONTRIBUTORS.txt README.md %license LICENSE /usr/include/icinga-protobuf /usr/lib64/icinga-protobuf %changelog * Mon May 04 2026 Matthias Hensler 3.55-0.cubbi1 - import for Copr