Name: ryzen_monitor Version: 1.0.5 Release: 1%{?dist} Summary: Monitor power information of Ryzen processors via the PM table of the SMU License: MIT URL: https://github.com/hattedsquirrel/%{name} Source0: %{URL}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz #Requires: bash BuildRequires: make gcc sed %description This tool is based on the ryzen_smu kernel module for reading the PM Table from the SMU. It is a continuation of the demo-tool provided with that project. ryzen_monitor features support for multiple PM table versions (i.e. multiple bios versions), adds support for Ryzen 5000, and presents more fields to user. It is especially focused around providing a more realistic image of the actual power draw and hence true thermal output of the CPU package. %prep %setup -q %build #export CFLAGS="$CFLAGS -fPIC" #export CXXFLAGS="$CXXFLAGS -fPIC" #make_build OPTIONS="-fPIC" CXXFLAGS="$RPM_OPT_FLAGS -fPIC -pie" make %{?_smp_mflags} CFLAGS="-fPIC %optflags" CXXFLAGS="-fPIC %{optflags}" %install #export PREFIX="%{_prefix}" #mkdir -p %{buildroot}%{_bindir} install -D -m 755 src/ryzen_monitor %{buildroot}%{_bindir}/ryzen_monitor #%make_install #make install-cli DESTDIR=$RPM_BUILD_ROOT # overwrite desktop file, as is uses the build path via rpm #mkdir -p %{buildroot}/usr/share/applications/ #mkdir -p %{buildroot}/usr/share/polkit-1/actions/ # disabled, as this does add the path of the build root to the install #make install-polkit DESTDIR=$RPM_BUILD_ROOT %files %{_bindir}/ryzen_monitor %changelog