### The author of ananicy-cpp # Vladislav Nepogodin ### The port maintainer for Fedora: # bieszczaders # https://copr.fedorainfracloud.org/coprs/bieszczaders/ %global commitdate 20250628 %global commit 7fb9ed828edad85fe89359feafd8565831cb342f %global shortcommit %(c=%{commit}; echo ${c:0:7}) %define _disable_source_fetch 0 Name: ananicy-cpp-git Release: 1%{?dist} Version: 1.1.1.%{commitdate}.git.%{shortcommit} 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/%{commit}/ananicy-cpp-%{commit}.tar.bz2 ExcludeArch: s390x i686 ppc64le BuildRequires: bpftool BuildRequires: clang BuildRequires: cmake BuildRequires: fmt-devel BuildRequires: json-devel BuildRequires: libbpf-devel BuildRequires: ninja-build BuildRequires: spdlog-devel BuildRequires: systemd-devel Requires: elfutils-libelf Requires: fmt Requires: glibc Requires: libbpf Requires: spdlog Requires: systemd Requires: systemd-libs Requires: zlib-ng-compat Recommends: cachyos-ananicy-rules %description Rewrite of ananicy in c++ for lower cpu and memory usage %prep %autosetup -n ananicy-cpp-%{commit} %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 --target ananicy-cpp %install %cmake_install --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/*