* Update CHANGELOG.md for 1.6. * Update README.md to point to release 1.6 in instructions * Fix installation of man pages in proper man dirs - Added only-build-shared-library.patch. - Update to version 1.6: * Created a new manpages for gamemoderun and the example, now called gamemode-simulate-game. * Copy default config file to the correct location. * Allow LD_PRELOAD to be overridden in $GAMEMODERUNEXEC. * Various minor bugfixes. - Drop special handling for no longer supported Leap 42. OBS-URL: https://build.opensuse.org/package/show/games:tools/gamemode?expand=0&rev=20
161 lines
4.9 KiB
RPMSpec
161 lines
4.9 KiB
RPMSpec
#
|
|
# spec file for package gamemode
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
# Copyright (c) 2020 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: gamemode
|
|
Version: 1.6
|
|
Release: 0
|
|
Summary: Daemon/library combo for changing Linux system performance on demand
|
|
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
|
|
Source3: baselibs.conf
|
|
Patch0: only-build-shared-library.patch
|
|
BuildRequires: cmake
|
|
BuildRequires: libinih-devel
|
|
BuildRequires: meson
|
|
BuildRequires: ninja
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: polkit-devel
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
# Yes, it needs both
|
|
BuildRequires: pkgconfig(libsystemd)
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
%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.
|
|
|
|
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.
|
|
|
|
%package -n gamemoded
|
|
Summary: The GameMode daemon required by GameMode enabled games
|
|
Group: Amusements/Games/Other
|
|
Recommends: libgamemode
|
|
Suggests: libgamemodeauto
|
|
|
|
%description -n gamemoded
|
|
GameMode is a daemon/lib combo for Linux that allows games to request
|
|
a set of optimisations be temporarily applied to the host OS.
|
|
|
|
The GameMode daemon is installed as a D-Bus Service and will start
|
|
automatically on first access by a client.
|
|
|
|
%package -n libgamemode0
|
|
Summary: GameMode client library
|
|
Group: System/Libraries
|
|
Requires: gamemoded
|
|
%systemd_requires
|
|
|
|
%description -n libgamemode0
|
|
GameMode is a daemon/lib combo for Linux that allows games to request
|
|
a set of optimisations be temporarily applied to the host OS.
|
|
|
|
Libgamemode is the client library used by games or libgamemodeauto to
|
|
talk to the GameMode daemon.
|
|
|
|
%package -n libgamemodeauto0
|
|
Summary: Helper library allowing to equip any game with GameMode support
|
|
Group: System/Libraries
|
|
Requires: libgamemode0
|
|
|
|
%description -n libgamemodeauto0
|
|
GameMode is a daemon/lib combo for Linux that allows games to request
|
|
a set of optimisations be temporarily applied to the host OS.
|
|
|
|
Libgamemodeauto allows you to use GameMode with any Game by
|
|
preloading it into the game.
|
|
|
|
LD_PRELOAD=%{_libdir}/libgamemodeauto.so.0 ./game
|
|
|
|
For Steam games this can be done by editing the launch options:
|
|
|
|
LD_PRELOAD=$LD_PRELOAD:%{_libdir}/libgamemodeauto.so.0 %%command%%
|
|
|
|
%package -n libgamemode-devel
|
|
Summary: Headers for compiling games using GameMode
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libgamemode0 = %{version}
|
|
Requires: libgamemodeauto0 = %{version}
|
|
|
|
%description -n libgamemode-devel
|
|
GameMode is a daemon/lib combo for Linux that allows games to request
|
|
a set of optimisations be temporarily applied to the host OS.
|
|
|
|
This package contains the headers required to compile games with
|
|
built-in GameMode support.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
|
|
cp %{SOURCE2} .
|
|
|
|
%build
|
|
%meson -Dwith-examples=false
|
|
%meson_build
|
|
|
|
%check
|
|
%meson_test
|
|
|
|
%install
|
|
%meson_install
|
|
|
|
%post -n libgamemode0 -p /sbin/ldconfig
|
|
%postun -n libgamemode0 -p /sbin/ldconfig
|
|
%post -n libgamemodeauto0 -p /sbin/ldconfig
|
|
%postun -n libgamemodeauto0 -p /sbin/ldconfig
|
|
|
|
%files -n gamemoded
|
|
%{_bindir}/gamemoded
|
|
%{_bindir}/gamemoderun
|
|
%{_libexecdir}/cpugovctl
|
|
%{_libexecdir}/gpuclockctl
|
|
%{_userunitdir}/gamemoded.service
|
|
%{_datadir}/polkit-1/actions/com.feralinteractive.GameMode.policy
|
|
%{_datadir}/dbus-1/services/com.feralinteractive.GameMode.service
|
|
%{_datadir}/metainfo/io.github.feralinteractive.gamemode.metainfo.xml
|
|
%{_mandir}/*/*
|
|
%doc example/gamemode.ini README.openSUSE
|
|
%license LICENSE.txt
|
|
|
|
%files -n libgamemode0
|
|
%{_libdir}/libgamemode.so.0*
|
|
%license LICENSE.txt
|
|
|
|
%files -n libgamemodeauto0
|
|
%{_libdir}/libgamemodeauto.so.0*
|
|
%license LICENSE.txt
|
|
|
|
%files -n libgamemode-devel
|
|
%{_includedir}/gamemode_client.h
|
|
%{_libdir}/libgamemode.so
|
|
%{_libdir}/libgamemodeauto.so
|
|
%{_libdir}/pkgconfig/gamemode*
|
|
%{_libdir}/pkgconfig/libgamemode*
|
|
%license LICENSE.txt
|
|
|
|
%changelog
|