2018-05-18 17:04:59 +00:00
|
|
|
#
|
|
|
|
# spec file for package gamemode
|
|
|
|
#
|
2019-03-15 21:42:07 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2018-05-18 17:04:59 +00:00
|
|
|
# Copyright (c) 2018 Matthias Bach <marix@marix.org>.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-03-16 19:40:49 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2018-05-18 17:04:59 +00:00
|
|
|
#
|
|
|
|
|
2019-03-15 21:42:07 +00:00
|
|
|
|
2018-05-18 17:04:59 +00:00
|
|
|
Name: gamemode
|
2019-04-18 18:16:22 +00:00
|
|
|
Version: 1.3.1
|
2018-05-18 17:04:59 +00:00
|
|
|
Release: 0
|
2018-08-16 19:20:16 +00:00
|
|
|
Summary: Daemon/library combo for changing Linux system performance on demand
|
2018-05-18 17:04:59 +00:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Amusements/Games/Other
|
|
|
|
Url: https://github.com/FeralInteractive/gamemode
|
|
|
|
Source0: gamemode-%{version}.tar.xz
|
|
|
|
Source1: gamemode-rpmlintrc
|
|
|
|
Source2: README.openSUSE
|
2019-03-16 19:40:49 +00:00
|
|
|
Source3: baselibs.conf
|
2019-04-18 18:16:22 +00:00
|
|
|
Patch1: gpuctl-fixes.patch
|
2018-05-18 17:04:59 +00:00
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: ninja
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: polkit-devel
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
|
2018-05-19 11:29:19 +00:00
|
|
|
BuildRequires: gcc7
|
2018-05-18 17:04:59 +00:00
|
|
|
%endif
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2018-08-16 19:20:16 +00:00
|
|
|
GameMode is a daemon/lib combo for Linux that allows games to request
|
|
|
|
a set of optimisations be temporarily applied to the host OS.
|
2018-05-18 17:04:59 +00:00
|
|
|
|
2018-08-16 19:20:16 +00:00
|
|
|
GameMode was designed primarily as a stop-gap solution to problems
|
|
|
|
with the Intel and AMD CPU powersave or ondemand governors, but is
|
|
|
|
now able to launch custom user defined plugins, and is intended to be
|
|
|
|
expanded further, as there are a wealth of automation tasks one might
|
|
|
|
want to apply.
|
2018-05-18 17:04:59 +00:00
|
|
|
|
|
|
|
%package -n gamemoded
|
|
|
|
Summary: The GameMode daemon required by GameMode enabled games
|
2019-03-15 21:42:07 +00:00
|
|
|
Group: Amusements/Games/Other
|
2018-05-18 17:04:59 +00:00
|
|
|
Recommends: libgamemode
|
|
|
|
Suggests: libgamemodeauto
|
|
|
|
|
|
|
|
%description -n gamemoded
|
2018-08-16 19:20:16 +00:00
|
|
|
GameMode is a daemon/lib combo for Linux that allows games to request
|
|
|
|
a set of optimisations be temporarily applied to the host OS.
|
2018-05-18 17:04:59 +00:00
|
|
|
|
2018-08-16 19:20:16 +00:00
|
|
|
The GameMode daemon is installed as a D-Bus Service and will start
|
|
|
|
automatically on first access by a client.
|
2018-05-18 17:04:59 +00:00
|
|
|
|
2018-07-24 21:19:54 +00:00
|
|
|
%package -n libgamemode0
|
2018-05-18 17:04:59 +00:00
|
|
|
Summary: GameMode client library
|
2018-08-16 19:20:16 +00:00
|
|
|
Group: System/Libraries
|
2018-05-18 17:04:59 +00:00
|
|
|
Requires: gamemoded
|
2018-07-24 21:19:54 +00:00
|
|
|
%systemd_requires
|
2018-05-18 17:04:59 +00:00
|
|
|
|
2018-07-24 21:19:54 +00:00
|
|
|
%description -n libgamemode0
|
2018-08-16 19:20:16 +00:00
|
|
|
GameMode is a daemon/lib combo for Linux that allows games to request
|
|
|
|
a set of optimisations be temporarily applied to the host OS.
|
2018-05-18 17:04:59 +00:00
|
|
|
|
2018-08-16 19:20:16 +00:00
|
|
|
Libgamemode is the client library used by games or libgamemodeauto to
|
|
|
|
talk to the GameMode daemon.
|
2018-05-18 17:04:59 +00:00
|
|
|
|
2018-07-24 21:19:54 +00:00
|
|
|
%package -n libgamemodeauto0
|
2018-05-18 17:04:59 +00:00
|
|
|
Summary: Helper library allowing to equip any game with GameMode support
|
2018-08-16 19:20:16 +00:00
|
|
|
Group: System/Libraries
|
2018-07-24 21:19:54 +00:00
|
|
|
Requires: libgamemode0
|
2018-05-18 17:04:59 +00:00
|
|
|
|
2018-07-24 21:19:54 +00:00
|
|
|
%description -n libgamemodeauto0
|
2018-08-16 19:20:16 +00:00
|
|
|
GameMode is a daemon/lib combo for Linux that allows games to request
|
|
|
|
a set of optimisations be temporarily applied to the host OS.
|
2018-05-18 17:04:59 +00:00
|
|
|
|
2018-08-16 19:20:16 +00:00
|
|
|
Libgamemodeauto allows you to use GameMode with any Game by
|
|
|
|
preloading it into the game.
|
2018-05-18 17:04:59 +00:00
|
|
|
|
2018-07-24 21:19:54 +00:00
|
|
|
LD_PRELOAD=%{_libdir}/libgamemodeauto.so.0 ./game
|
2018-05-18 17:04:59 +00:00
|
|
|
|
|
|
|
For Steam games this can be done by editing the launch options:
|
|
|
|
|
2018-07-24 21:19:54 +00:00
|
|
|
LD_PRELOAD=$LD_PRELOAD:%{_libdir}/libgamemodeauto.so.0 %%command%%
|
2018-05-18 17:04:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
%package -n libgamemode-devel
|
|
|
|
Summary: Headers for compiling games using GameMode
|
|
|
|
Group: Development/Libraries/C and C++
|
2018-07-24 21:19:54 +00:00
|
|
|
Requires: libgamemode0 = %{version}
|
|
|
|
Requires: libgamemodeauto0 = %{version}
|
2018-05-18 17:04:59 +00:00
|
|
|
|
|
|
|
%description -n libgamemode-devel
|
2018-08-16 19:20:16 +00:00
|
|
|
GameMode is a daemon/lib combo for Linux that allows games to request
|
|
|
|
a set of optimisations be temporarily applied to the host OS.
|
2018-05-18 17:04:59 +00:00
|
|
|
|
2018-08-16 19:20:16 +00:00
|
|
|
This package contains the headers required to compile games with
|
|
|
|
built-in GameMode support.
|
2018-05-18 17:04:59 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2019-04-18 18:16:22 +00:00
|
|
|
%patch1 -p1
|
2018-05-18 17:04:59 +00:00
|
|
|
cp %{SOURCE2} .
|
|
|
|
|
|
|
|
%build
|
|
|
|
%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
|
2018-05-19 11:29:19 +00:00
|
|
|
export CC=gcc-7 # gcc4.8 does not work because of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58016
|
2018-05-18 17:04:59 +00:00
|
|
|
%endif
|
2018-07-24 21:19:54 +00:00
|
|
|
%meson
|
2018-05-18 17:04:59 +00:00
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%check
|
|
|
|
%meson_test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%meson_install
|
|
|
|
|
2018-07-24 21:19:54 +00:00
|
|
|
%post -n libgamemode0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libgamemode0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libgamemodeauto0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libgamemodeauto0 -p /sbin/ldconfig
|
|
|
|
|
2018-05-18 17:04:59 +00:00
|
|
|
%files -n gamemoded
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/gamemoded
|
2019-04-18 18:16:22 +00:00
|
|
|
%{_bindir}/gamemoderun
|
2018-05-18 17:04:59 +00:00
|
|
|
%{_libexecdir}/cpugovctl
|
2019-04-18 18:16:22 +00:00
|
|
|
%{_libexecdir}/gpuclockctl
|
2018-07-24 21:19:54 +00:00
|
|
|
%{_userunitdir}/gamemoded.service
|
2018-05-18 17:04:59 +00:00
|
|
|
%{_datadir}/polkit-1/actions/com.feralinteractive.GameMode.policy
|
|
|
|
%{_datadir}/dbus-1/services/com.feralinteractive.GameMode.service
|
|
|
|
%{_mandir}/*/*
|
|
|
|
%doc example/gamemode.ini README.openSUSE
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
2018-07-24 21:19:54 +00:00
|
|
|
%files -n libgamemode0
|
2018-05-18 17:04:59 +00:00
|
|
|
%defattr(-,root,root)
|
2018-07-24 21:19:54 +00:00
|
|
|
%{_libdir}/libgamemode.so.0*
|
|
|
|
%license LICENSE.txt
|
2018-05-18 17:04:59 +00:00
|
|
|
|
2018-07-24 21:19:54 +00:00
|
|
|
%files -n libgamemodeauto0
|
2018-05-18 17:04:59 +00:00
|
|
|
%defattr(-,root,root)
|
2018-07-24 21:19:54 +00:00
|
|
|
%{_libdir}/libgamemodeauto.so.0*
|
|
|
|
%license LICENSE.txt
|
2018-05-18 17:04:59 +00:00
|
|
|
|
|
|
|
%files -n libgamemode-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/gamemode_client.h
|
2018-07-24 21:19:54 +00:00
|
|
|
%{_libdir}/libgamemode.so
|
|
|
|
%{_libdir}/libgamemodeauto.so
|
|
|
|
%{_libdir}/pkgconfig/gamemode*
|
2018-05-18 17:04:59 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
|
|
|
|
%changelog
|