Name: ananicy-cpp Version: 9.9.9 Release: %autorelease Summary: Rewrite of ananicy in c++ for lower cpu and memory usage License: GPLv3 URL: https://github.com/SerialSash/ananicy-cpp Source0: %{url}/archive/refs/tags/v%{version}.tar.gz ExcludeArch: s390x i686 ppc64le BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: systemd-devel BuildRequires: systemd-rpm-macros BuildRequires: zlib-devel BuildRequires: git BuildRequires: bpftool BuildRequires: libbpf-devel BuildRequires: elfutils-libelf BuildRequires: llvm19 BuildRequires: clang19 BuildRequires: json-devel Requires: fmt Requires: spdlog %description Rewrite of ananicy in c++ for lower cpu and memory usage %prep %autosetup -n ananicy-cpp-%{version} %build %cmake \ -GNinja \ -DENABLE_SYSTEMD=ON \ -DUSE_EXTERNAL_JSON=ON \ -DUSE_EXTERNAL_SPDLOG=ON \ -DUSE_EXTERNAL_FMTLIB=ON \ -DUSE_BPF_PROC_IMPL=ON \ -DBPF_BUILD_LIBBPF=OFF \ -DENABLE_ANANICY_TESTS=ON \ -DBUILD_SHARED_LIBS=OFF \ -DVERSION=%{version} %ninja_build -C %{_vpath_builddir} %install %ninja_install -C %{_vpath_builddir} %check ./%{_vpath_builddir}/src/tests/test-core ./%{_vpath_builddir}/src/tests/test-utility --test-case-exclude="Process Info" %files %license LICENSE %doc README.md %{_bindir}/ananicy-cpp %{_unitdir}/ananicy-cpp.service %changelog %autochangelog