- Fix compilation on Leap 42.3.

OBS-URL: https://build.opensuse.org/package/show/games:tools/gamemode?expand=0&rev=2
This commit is contained in:
Matthias Bach 2018-05-19 11:29:19 +00:00 committed by Git OBS Bridge
parent 41d9c982e5
commit 3619aa0ba4
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat May 19 11:25:26 UTC 2018 - marix@marix.org
- Fix compilation on Leap 42.3.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue May 15 19:38:57 UTC 2018 - marix@marix.org Tue May 15 19:38:57 UTC 2018 - marix@marix.org

View File

@ -31,7 +31,7 @@ BuildRequires: pkg-config
BuildRequires: polkit-devel BuildRequires: polkit-devel
BuildRequires: systemd-devel BuildRequires: systemd-devel
%if 0%{?sle_version} == 120300 && 0%{?is_opensuse} %if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
BuildRequires: gcc5 BuildRequires: gcc7
%endif %endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -92,7 +92,7 @@ cp %{SOURCE2} .
%build %build
%if 0%{?sle_version} == 120300 && 0%{?is_opensuse} %if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
export CC=gcc-5 # gcc4.8 does not work because of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58016 export CC=gcc-7 # gcc4.8 does not work because of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58016
%endif %endif
%meson -Dwith-systemd=false %meson -Dwith-systemd=false
%meson_build %meson_build