%global debug_package %{nil} Name: idle-power Version: 0.15.0 Release: 1%{?dist} Summary: Unprivileged power diagnosis for Apple Silicon laptops License: MIT Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros >= 26 BuildRequires: gcc Requires: iw %description Samples the SMC power sensors, reports who wakes the CPU (per systemd unit and per interrupt) and which devices are not runtime-suspended, as text or JSON, and diffs two saved runs. Needs no root. %prep %autosetup -n %{name}-%{version} %cargo_prep -N # build online: the crates are not packaged for Fedora sed -i 's/^offline = true$//' .cargo/config.toml %build %{__cargo} build %{__cargo_common_opts} --profile rpm -p idle-power %install install -Dpsm0755 target/rpm/idle-power %{buildroot}%{_bindir}/idle-power %check %{__cargo} test %{__cargo_common_opts} --profile rpm --no-fail-fast -p idle-power %files %license LICENSE %{_bindir}/idle-power %changelog * Thu Nov 12 2026 Lachlan Marie - 0.15.0-1 - New package: rails, wakeups per unit and IRQ, active devices, --diff