### The author of ananicy-cpp # Vladislav Nepogodin ### The port maintainer for Fedora: # bieszczaders # https://copr.fedorainfracloud.org/coprs/bieszczaders/ %define _disable_source_fetch 0 Name: ananicy-cpp Release: 10%{?dist} Version: 1.1.1 Summary: Rewrite of ananicy in c++ for lower cpu and memory usage License: GPLv3 URL: https://gitlab.com/ananicy-cpp/ananicy-cpp Source0: %{url}/-/archive/v%{version}/ananicy-cpp-v%{version}.tar.gz ExcludeArch: s390x i686 ppc64le BuildRequires: cmake BuildRequires: ninja-build BuildRequires: git #BuildRequires: bpftool #BuildRequires: llvm BuildRequires: clang BuildRequires: json-devel BuildRequires: fmt-devel BuildRequires: spdlog-devel Requires: libbpf Requires: systemd Requires: systemd-libs Requires: zlib-ng-compat Requires: gcc-libs Requires: glibc Requires: fmt Requires: spdlog Requires: elfutils-libelf Recommends: ananicy-cpp-rules %description Rewrite of ananicy in c++ for lower cpu and memory usage %prep %autosetup -n ananicy-cpp-v%{version} %build %cmake \ -GNinja \ -DENABLE_SYSTEMD=ON \ -DUSE_BPF_PROC_IMPL=ON \ -DBPF_BUILD_LIBBPF=OFF \ -DUSE_EXTERNAL_FMTLIB=ON \ -DUSE_EXTERNAL_JSON=ON \ -DUSE_EXTERNAL_SPDLOG=ON \ -DVERSION=%{version} %cmake_build build --target %{name} %install %cmake_install build --component Runtime %posttrans systemctl enable --now ananicy-cpp %preun systemctl disable --now ananicy-cpp %files %license LICENSE %doc README.md %{_bindir}/ananicy-cpp %{_unitdir}/ananicy-cpp.service %changelog %autochangelog/*