Name: radeon-profile Version: 20200824 Release: 1%{?dist} Summary: Application to read current clocks of ATi Radeon cards License: GPLv2+ URL: https://github.com/marazmista/radeon-profile Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz # Categories in radeon-profile.desktop # https://github.com/marazmista/radeon-profile/pull/251 Patch0: https://github.com/marazmista/radeon-profile/pull/251.patch#/fix-categories-cincradeon-profile.desktop.patch BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: make BuildRequires: qt5-linguist BuildRequires: pkgconfig(libdrm) >= 2.4.79 BuildRequires: pkgconfig(Qt5) >= 5.6 BuildRequires: pkgconfig(Qt5Charts) BuildRequires: pkgconfig(xrandr) Recommends: glx-utils%{?_isa} Recommends: mesa-demos%{?_isa} Recommends: radeon-profile-daemon%{?_isa} Suggests: xorg-x11-server-utils%{?_isa} %description Simple application to read current clocks of ATi Radeon cards (xf86-video-ati, xf86-video-amdgpu). Functionality: - Monitoring of basic GPU parameters (frequencies, voltages, usage, temperature, fan speed) - DPM profiles and power levels - Fan control (HD 7000+), definition of multiple custom curves or fixed speed - Overclocking (amdgpu) (Wattman, Overdrive, PowerPlay etc) - Per app profiles/Event definitions (i.e. change fan profile when temp above defined or set DPM to high when selected binary executed) - Define binaries to run with set of environment variablees (i.e. GALLIUM_HUD, MESA, LIBGL etc) %prep %autosetup -p1 %build pushd %{name} # Build translations lrelease-qt5 %{name}.pro %qmake_qt5 %{name}.pro %make_build popd %install %make_install \ INSTALL_ROOT=%{buildroot} \ -C %{name} pushd %{name}/translations for t in $(ls *.qm); do install -Dpm644 "$t" "%{buildroot}%{_datadir}/%{name}/$t"; done popd %check desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_datadir}/%{name}/ %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/*/apps/*.png %changelog * Fri Jan 8 2021 Artem Polishchuk - 20200824-1 - Initial package