Accepting request 704762 from home:cgiboudeaux:branches:games:tools

- Fix the gamemode build requirement.

OBS-URL: https://build.opensuse.org/request/show/704762
OBS-URL: https://build.opensuse.org/package/show/games:tools/gamemode?expand=0&rev=13
This commit is contained in:
Matthias Bach
2019-05-22 16:32:44 +00:00
committed by Git OBS Bridge
parent b258109d4f
commit fbcaaabfe4
2 changed files with 12 additions and 13 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 22 13:58:09 UTC 2019 - Christophe Giboudeaux <christophe@krop.fr>
- Fix the gamemode build requirement.
-------------------------------------------------------------------
Tue Apr 9 19:39:24 UTC 2019 - Matthias Bach <marix@marix.org>

View File

@@ -13,7 +13,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -23,21 +23,23 @@ 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
URL: https://github.com/FeralInteractive/gamemode
Source0: gamemode-%{version}.tar.xz
Source1: gamemode-rpmlintrc
Source2: README.openSUSE
Source3: baselibs.conf
Patch1: gpuctl-fixes.patch
BuildRequires: cmake
BuildRequires: meson
BuildRequires: ninja
BuildRequires: pkg-config
BuildRequires: pkgconfig
BuildRequires: polkit-devel
BuildRequires: systemd-devel
# Yes, it needs both
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(systemd)
%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
BuildRequires: gcc7
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
GameMode is a daemon/lib combo for Linux that allows games to request
@@ -93,7 +95,6 @@ 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++
@@ -126,15 +127,11 @@ export CC=gcc-7 # gcc4.8 does not work because of https://gcc.gnu.org/bugzilla/
%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
%defattr(-,root,root)
%{_bindir}/gamemoded
%{_bindir}/gamemoderun
%{_libexecdir}/cpugovctl
@@ -147,17 +144,14 @@ export CC=gcc-7 # gcc4.8 does not work because of https://gcc.gnu.org/bugzilla/
%license LICENSE.txt
%files -n libgamemode0
%defattr(-,root,root)
%{_libdir}/libgamemode.so.0*
%license LICENSE.txt
%files -n libgamemodeauto0
%defattr(-,root,root)
%{_libdir}/libgamemodeauto.so.0*
%license LICENSE.txt
%files -n libgamemode-devel
%defattr(-,root,root)
%{_includedir}/gamemode_client.h
%{_libdir}/libgamemode.so
%{_libdir}/libgamemodeauto.so