SHA256
1
0
forked from pool/vkquake

Accepting request 1175241 from home:Kieltux:branches:games

- Fix building for openSUSE Leap, use gcc11

OBS-URL: https://build.opensuse.org/request/show/1175241
OBS-URL: https://build.opensuse.org/package/show/games/vkquake?expand=0&rev=38
This commit is contained in:
Martin Hauke 2024-06-03 15:04:44 +00:00 committed by Git OBS Bridge
parent ee98d13de9
commit c6b51b575d
2 changed files with 15 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun May 19 15:47:12 UTC 2024 - Carsten Ziepke <kieltux@gmail.com>
- Fix building for openSUSE Leap, use gcc11
-------------------------------------------------------------------
Fri May 5 15:53:59 UTC 2023 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>

View File

@ -1,7 +1,7 @@
#
# spec file for package vkquake
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2017 Luke Jones <luke.nukem.jones@gmail.com>
#
# All modifications and additions to the file contributed by third parties
@ -39,6 +39,12 @@ BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(opusfile)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(vorbis)
%if 0%{?sle_version} >= 150500 && 0%{?sle_version} < 160000 && 0%{?is_opensuse}
BuildRequires: gcc11
BuildRequires: gcc11-c++
%else
BuildRequires: gcc-c++
%endif
%description
vkQuake is a Quake 1 port using Vulkan instead of OpenGL for rendering. It is based on the popular QuakeSpasm port and runs all mods compatible with it like Arcane Dimensions or In The Shadows.
@ -47,10 +53,6 @@ Game data must be placed in ~/.vkquake/id1 .
%prep
%autosetup -n vkQuake-%{version} -p1
%if 0%{?sle_version} < 150200
sed -i 's#vulkan_core.h#vulkan.h#' Quake/quakedef.h
%endif
# Drop pre-compiled Windows stuff
rm Windows -fr
@ -62,6 +64,9 @@ sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" Quake/host.c
%build
%make_build -C Quake \
%if 0%{?sle_version} >= 150500 && 0%{?sle_version} < 160000 && 0%{?is_opensuse}
CC='/usr/bin/gcc-11' \
%endif
STRIP=": do not strip:" \
DO_USERDIRS=1 \
USE_SDL2=1 \