SHA256
1
0
forked from pool/gzdoom
gzdoom/gzdoom.spec

136 lines
4.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gzdoom
#
# Copyright (c) 2019 SUSE LLC
#
# 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: gzdoom
Version: 4.2.4
Release: 0
Summary: A DOOM source port with graphic and modding extensions
Accepting request 627526 from home:mnhauke:games - Update to version 3.5.0 * (modern branch only) Fullscreen is now borderless window (which, technically, it always has been, anyhow). Removed hacks which changed the desktop resolution in order to simulate exclusive fullscreen because they were a constant stability concern. * (modern branch only) fixed a performance regression with the software renderer, introduced by the recent changes to the video backend in 3.4. * Save item statistics - Items are now saved into save games and are displayed on the statfile * Upgrade libADLMIDI and libOPNMIDI * Large number of MinGW fixes * add tags for all Doom and Heretic monsters for mods that reveal monster names * various compatibility fixes for old maps and mods * fixed titlepic animation * Custom hardware shaders now can use custom texture units * default to "fullscreen" display * fixed a potential exploit with malformed WAD files. - Update to version 3.4.1 * fixed: redirect script access to the compatflags CVARs to their internal shadow variables. This is needed so that MAPINFO settings for these flags don't get ignored. * fixed: flag CVars in ZScript referenced wrong addresses * fixed: ZScript used the wrong variable for compatflags2. * fixed: remove ARM specific gl_es definition since it's not even really much different from the main line definition, anyhow * fixed generation of brightmaps for sprites. This forgot to take the added empty border for filtering improvement into account. * fixed ADynamicLight's shadowmap index must be reset when loading OBS-URL: https://build.opensuse.org/request/show/627526 OBS-URL: https://build.opensuse.org/package/show/games/gzdoom?expand=0&rev=8
2018-08-05 16:16:08 +02:00
License: GPL-3.0-only
Group: Amusements/Games/3D/Shoot
URL: http://zdoom.org/
#Git-Clone: https://github.com/coelckers/gzdoom
Source: https://github.com/coelckers/gzdoom/archive/g%version.tar.gz
Patch1: gzdoom-waddir.patch
Patch2: gzdoom-lzma.patch
Patch3: gzdoom-vulkan.patch
Patch4: gzdoom-asmjit.patch
Patch5: gzdoom-system-gme.patch
BuildRequires: cmake >= 2.8.7
BuildRequires: gcc-c++
BuildRequires: glslang-devel
BuildRequires: libjpeg-devel
BuildRequires: nasm
BuildRequires: pkg-config
BuildRequires: spirv-tools-devel
BuildRequires: unzip
BuildRequires: xz
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(flac)
BuildRequires: pkgconfig(fluidsynth)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libgme)
BuildRequires: pkgconfig(libmpg123)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(sndfile)
BuildRequires: pkgconfig(vulkan)
BuildRequires: pkgconfig(zlib)
%if 0%{?suse_version} >= 1500
BuildRequires: pkgconfig(clzma) >= 17.01
%else
Provides: bundled(lzma-sdk) = 19.00
%endif
%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
# DUMB is modified to read OggVorbis samples
Provides: bundled(dumb) = 0.9.3
Provides: bundled(gdtoa)
Provides: bundled(re2c) = 0.16.0
Provides: bundled(xbrz) = 1.7
%description
GZDoom is a port (a modification) of the original Doom source code, featuring:
* an OpenGL renderer, HQnX/xBRZ rescaling, 3D floor and model support
* Truecolor software rendering, extending the classic 8-bit palette
* a three-point projection software renderer, extending the classic
2-point projection
* Heretic, Hexen and Strife game modes and support for a lot of
additional IWADs.
* Boom and Hexen map extension support, scriptability with ACS and
ZScript, and various modding features regarding actors and scenery.
* Demo record/playback of classic and Boom demos is not supported.
%prep
%setup -q -n %name-g%version
%patch -P 1 -p1
Accepting request 627526 from home:mnhauke:games - Update to version 3.5.0 * (modern branch only) Fullscreen is now borderless window (which, technically, it always has been, anyhow). Removed hacks which changed the desktop resolution in order to simulate exclusive fullscreen because they were a constant stability concern. * (modern branch only) fixed a performance regression with the software renderer, introduced by the recent changes to the video backend in 3.4. * Save item statistics - Items are now saved into save games and are displayed on the statfile * Upgrade libADLMIDI and libOPNMIDI * Large number of MinGW fixes * add tags for all Doom and Heretic monsters for mods that reveal monster names * various compatibility fixes for old maps and mods * fixed titlepic animation * Custom hardware shaders now can use custom texture units * default to "fullscreen" display * fixed a potential exploit with malformed WAD files. - Update to version 3.4.1 * fixed: redirect script access to the compatflags CVARs to their internal shadow variables. This is needed so that MAPINFO settings for these flags don't get ignored. * fixed: flag CVars in ZScript referenced wrong addresses * fixed: ZScript used the wrong variable for compatflags2. * fixed: remove ARM specific gl_es definition since it's not even really much different from the main line definition, anyhow * fixed generation of brightmaps for sprites. This forgot to take the added empty border for filtering improvement into account. * fixed ADynamicLight's shadowmap index must be reset when loading OBS-URL: https://build.opensuse.org/request/show/627526 OBS-URL: https://build.opensuse.org/package/show/games/gzdoom?expand=0&rev=8
2018-08-05 16:16:08 +02:00
%if 0%{?suse_version} >= 1500
%patch -P 2 -p1
%endif
%if 0%{?suse_version} >= 1550
%patch -P 3 -p1
rm -Rfv glslang src/rendering/vulkan/thirdparty/vulkan
%endif
%patch -P 4 -P 5 -p1
perl -i -pe 's{__DATE__}{""}g' src/posix/sdl/i_main.cpp
perl -i -pe 's{<unknown version>}{%version}g' \
tools/updaterevision/updaterevision.c
%build
%define _lto_cflags %nil
# We must not strip - %%debug_package will take care of it
# Deactivate -Wl,--as-needed
%ifarch %ix86
# program does a cpuid check, so it is ok to enable
export CFLAGS="%optflags -msse -msse2"
export CXXFLAGS="%optflags -msse -msse2"
%endif
%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" \
-DDYN_FLUIDSYNTH=OFF -DDYN_OPENAL=OFF \
-DDYN_SNDFILE=OFF -DDYN_MPG123=OFF
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