# FIXME: Migrate to rust2rpm once upstream is published onto crates.io # Currently build requires internet access since dependencies are not in srpm %global forgeurl0 https://github.com/ZoLArk173/nputop %global commit0 4aa2c81e3d6b34a535a2d2015174a167b9f1d12c %global version0 0 %forgemeta Name: nputop Version: %forgeversion Release: %autorelease Summary: Display Intel NPU Usage License: MIT URL: %{forgeurl} Source0: %{forgesource} BuildRequires: cargo %description %{name} is a terminal-based monitoring tool that displays Intel Neural \ Processing Unit (NPU) usage. Inspired by nvtop, it provides a similar \ real-time view of NPU performance, allowing users to monitor resource \ utilization on Intel-based systems effectively. %prep %forgeautosetup %build export CARGO_HOME="$(mktemp -d -p /var/tmp --suffix=.cargo)" cargo build --release %install install -Dpm 0755 target/release/%{name} %{buildroot}%{_bindir}/%{name} %check # There's no real way to test nputop without hardware # FIXME: Upstream doesn't support `--version` LD_LIBRARY_PATH=%{buildroot}%{_libdir} ldd %{buildroot}%{_bindir}/%{name} %files %license LICENSE %doc README.md %{_bindir}/%{name} %changelog %autochangelog