# # spec file for package gzdoom # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # Name: gzdoom Version: 3.2.4 Release: 0 Summary: A DOOM source port with graphic and modding extensions License: GPL-3.0 Group: Amusements/Games/3D/Shoot Url: http://zdoom.org/ #Git-Clone: https://github.com/coelckers/gzdoom Source: https://zdoom.org/files/gzdoom/src/gzdoom-g%version.zip Patch1: gzdoom-waddir.patch Patch2: gzdoom-staticlibs.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cmake >= 2.8.7 BuildRequires: gcc-c++ BuildRequires: libjpeg-devel BuildRequires: nasm BuildRequires: pkg-config BuildRequires: unzip BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(flac) BuildRequires: pkgconfig(fluidsynth) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(libgme) BuildRequires: pkgconfig(liblzma) BuildRequires: pkgconfig(openal) BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(zlib) %if 0%{?suse_version} == 1315 BuildRequires: gcc6-c++ %endif Recommends: freedoom Recommends: timidity Recommends: timidity-eawpats Provides: qzdoom = 1.3.0 Provides: zdoom = 2.8.1 Provides: bundled(gdtoa) Provides: bundled(lzma-sdk) = 15.13 Provides: bundled(re2c) = 0.16.0 %description GZDoom is a port (a modification) of the original Doom source code, featuring an OpenGL renderer, 3D floor and model support, Quake2-style skyboxes, HQnX rescaling and other graphic improvements. Heretic, Hexen and Strife game modes are supported. GZDoom provides a lot of modding features such as Boom and Hexen map extension support and scriptability. The software renderer has been removed, and demo record/playback is limited to a version-specific format. %prep %setup -qn gzdoom-g%version %patch -P 1 -P 2 -p1 perl -i -pe 's{__DATE__}{""}g' src/posix/sdl/i_main.cpp %build # We must not strip - %%debug_package will take care of it # Deactivate -Wl,--as-needed %cmake -DNO_STRIP=1 \ %if 0%{suse_version} == 1315 -DCMAKE_C_COMPILER=gcc-6 -DCMAKE_CXX_COMPILER=g++-6 \ %endif -DCMAKE_SHARED_LINKER_FLAGS="" \ -DCMAKE_EXE_LINKER_FLAGS="" -DCMAKE_MODULE_LINKER_FLAGS="" \ -DINSTALL_DOCS_PATH="%_defaultdocdir/%name" \ -DINSTALL_PK3_PATH="%_datadir/doom" make %{?_smp_mflags} %install %cmake_install %post echo "INFO: %name: The global IWAD directory is %_datadir/doom." %files %_bindir/%name %_defaultdocdir/%name %_datadir/doom/ %changelog