Name: powerstat Version: 0.04.02 Release: 2%{?dist} Summary: Measures the power consumption of a machine License: GPL-2.0-or-later URL: https://github.com/ColinIanKing/powerstat Source: %{url}/archive/V%{version}/%{name}-V%{version}.tar.gz # Preserve timestamp of powerstat file and let build system # compress man page Patch: 01-preserve-timestamp-copy-man.patch BuildRequires: gcc BuildRequires: make # RAPL not available on other architectures ExclusiveArch: %{ix86} x86_64 %description Powerstat measures the power consumption of a machine using the battery stats or the Intel RAPL interface. The output is like vmstat but also shows power consumption statistics. At the end of a run, powerstat will calculate the average, standard deviation and min/max of the gathered data. %prep %autosetup %build # Preserve timestamp %make_build %install %make_install %check # Smoke test binary works, no tests available %{buildroot}%{_bindir}/powerstat -h %files %doc README.md %license COPYING %{_bindir}/powerstat %{_mandir}/man8/powerstat.8* %{bash_completions_dir}/powerstat %changelog * Fri Jul 19 2024 Fedora Release Engineering - 0.04.02-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Feb 14 2024 Benson Muite - 0.04.02-1 - Upgrade to latest release * Fri Jan 26 2024 Fedora Release Engineering - 0.03.03-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.03.03-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Aug 25 2023 Benson Muite - 0.03.03-1 - Initial packaging