1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
%define soversion 0 Name: gamemode Version: 1.5.1 Release: alt1 Summary: Optimise Linux system performance on demand License: BSD Group: Games/Other Url: https://github.com/FeralInteractive/%name Packager: Nazarov Denis <nenderus@altlinux.org> Source: %url/archive/%version/%name-%version.tar.gz Requires: lib%name%soversion = %EVR BuildRequires: cmake BuildRequires: libdbus-devel BuildRequires: libinih-devel BuildRequires: libstdc++-devel BuildRequires: libsystemd-devel BuildRequires: meson %description GameMode is a daemon/lib combo for Linux that allows games to request a set of optimisations be temporarily applied to the host OS and/or a game process. GameMode was designed primarily as a stop-gap solution to problems with the Intel and AMD CPU powersave or ondemand governors, but is now host to a range of optimisation features and configurations. Currently GameMode includes support for optimisations including: - CPU governor - I/O priority - Process niceness - Kernel scheduler (SCHED_ISO) - Screensaver inhibiting - GPU performance mode (NVIDIA and AMD), GPU overclocking (NVIDIA) - Custom scripts %package -n lib%name%soversion Summary: Libraries for GameMode Group: System/Libraries %description -n lib%name%soversion Libraries for GameMode %package -n lib%name-devel Summary: Development files for GameMode Group: Development/C %description -n lib%name-devel Development files for GameMode %prep %setup %build %meson %meson_build %install %meson_install %__install -Dp -m0644 example/%name.ini %buildroot%_datadir/%name/%name.ini %files %doc LICENSE.txt README.md %_bindir/%{name}d %_bindir/%{name}run %dir %_datadir/%name %_datadir/%name/%name.ini %_datadir/dbus-1/services/com.feralinteractive.GameMode.service %_datadir/polkit-1/actions/com.feralinteractive.GameMode.policy %_libexecdir/cpugovctl %_libexecdir/gpuclockctl %_libexecdir/systemd/user/gamemoded.service %_man8dir/%{name}d.8* %files -n lib%name%soversion %_libdir/lib%name.so.* %_libdir/lib%{name}auto.so.* %files -n lib%name-devel %_includedir/%{name}_client.h %_pkgconfigdir/%name.pc %_pkgconfigdir/%name-auto.pc %_libdir/lib%name.so %_libdir/lib%{name}auto.so %changelog * Wed Mar 04 2020 Nazarov Denis <nenderus@altlinux.org> 1.5.1-alt1 - Version 1.5.1 - Use shared inih library * Tue Feb 18 2020 Nazarov Denis <nenderus@altlinux.org> 1.5-alt1 - Initial build for ALT Linux