Name: icinga-protobuf Version: 33.5 Release: 1.el9 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 BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: make BuildRequires: git Requires: icinga-protobuf-devel = 33.5-1.el9 %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 -fno-lto" -DCMAKE_CXX_FLAGS:STRING="%optflags -fno-lto" -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 ) cmake -S . -B build "${CMAKE_ARGS[@]}" /usr/bin/make %_smp_mflags V=1 VERBOSE=1 -C build %check ctest --test-dir build --progress --output-on-failure %install /usr/bin/make install DESTDIR=%_topdir/BUILDROOT/icinga-protobuf-33.5-1.el9.%_arch INSTALL="/usr/bin/install -p" STRIPBINARIES=no -C build DESTDIR="%_topdir/BUILDROOT/icinga-protobuf-33.5-1.el9.%_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