2018-01-03 04:28:08 +01:00
|
|
|
#
|
|
|
|
# spec file for package gzdoom
|
|
|
|
#
|
2020-01-11 23:49:24 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2018-01-03 04:28:08 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-16 14:17:39 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-01-03 04:28:08 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: gzdoom
|
2020-06-17 16:40:58 +02:00
|
|
|
Version: 4.4.2
|
2018-01-03 04:28:08 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: A DOOM source port with graphic and modding extensions
|
2018-08-05 16:16:08 +02:00
|
|
|
License: GPL-3.0-only
|
2018-01-03 04:28:08 +01:00
|
|
|
Group: Amusements/Games/3D/Shoot
|
2020-01-11 23:49:24 +01:00
|
|
|
URL: https://zdoom.org/
|
2018-01-03 04:28:08 +01:00
|
|
|
|
|
|
|
#Git-Clone: https://github.com/coelckers/gzdoom
|
2019-08-23 15:14:20 +02:00
|
|
|
Source: https://github.com/coelckers/gzdoom/archive/g%version.tar.gz
|
2018-01-03 04:28:08 +01:00
|
|
|
Patch1: gzdoom-waddir.patch
|
2019-09-13 13:59:41 +02:00
|
|
|
Patch2: gzdoom-lzma.patch
|
2020-06-11 10:16:01 +02:00
|
|
|
Patch3: gzdoom-asmjit.patch
|
2020-06-11 17:19:08 +02:00
|
|
|
Patch4: gzdoom-spirv.patch
|
2020-06-12 02:26:48 +02:00
|
|
|
Patch5: gzdoom-sdlbug.patch
|
|
|
|
Patch6: gzdoom-vulkan.patch
|
2018-01-03 04:28:08 +01:00
|
|
|
BuildRequires: cmake >= 2.8.7
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: nasm
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: unzip
|
2020-06-10 21:09:37 +02:00
|
|
|
BuildRequires: zmusic-devel
|
2018-01-03 04:28:08 +01:00
|
|
|
BuildRequires: pkgconfig(bzip2)
|
2020-06-10 21:09:37 +02:00
|
|
|
BuildRequires: pkgconfig(clzma) >= 17.01
|
2018-01-03 04:28:08 +01:00
|
|
|
BuildRequires: pkgconfig(flac)
|
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
|
|
BuildRequires: pkgconfig(openal)
|
|
|
|
BuildRequires: pkgconfig(sdl2)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2020-06-11 10:16:01 +02:00
|
|
|
%if 0%{?sle_version} >= 150200
|
|
|
|
BuildRequires: glslang-devel >= 6.3
|
2020-06-11 17:19:08 +02:00
|
|
|
BuildRequires: pkgconfig(vulkan) >= 1.1.77
|
2020-06-11 10:16:01 +02:00
|
|
|
%else
|
|
|
|
Provides: bundled(glslang) = 8.13.3559
|
2020-06-11 17:19:08 +02:00
|
|
|
Provides: bundled(vulkan) = 1.1.114
|
2020-06-11 10:16:01 +02:00
|
|
|
%endif
|
2018-01-03 04:28:08 +01:00
|
|
|
Recommends: freedoom
|
|
|
|
Recommends: timidity
|
|
|
|
Recommends: timidity-eawpats
|
|
|
|
Provides: qzdoom = 1.3.0
|
|
|
|
Provides: zdoom = 2.8.1
|
2018-01-04 08:53:08 +01:00
|
|
|
# DUMB is modified to read OggVorbis samples
|
2018-01-03 04:28:08 +01:00
|
|
|
Provides: bundled(gdtoa)
|
|
|
|
Provides: bundled(re2c) = 0.16.0
|
2019-09-13 13:59:41 +02:00
|
|
|
Provides: bundled(xbrz) = 1.7
|
2018-01-03 04:28:08 +01:00
|
|
|
|
|
|
|
%description
|
2018-01-03 07:07:34 +01:00
|
|
|
GZDoom is a port (a modification) of the original Doom source code, featuring:
|
2018-11-14 10:58:17 +01:00
|
|
|
* an OpenGL renderer, HQnX/xBRZ rescaling, 3D floor and model support
|
2018-01-03 07:07:34 +01:00
|
|
|
* 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.
|
2018-01-03 04:28:08 +01:00
|
|
|
|
|
|
|
%prep
|
2020-06-11 10:16:01 +02:00
|
|
|
%setup -qn %name-g%version
|
2020-06-12 02:26:48 +02:00
|
|
|
%patch -P 1 -P 2 -P 3 -P 4 -P 5 -p1
|
2020-06-11 17:19:08 +02:00
|
|
|
%if 0%{?sle_version} >= 150200
|
2020-06-12 02:26:48 +02:00
|
|
|
%patch -P 6 -p1
|
2020-06-11 17:19:08 +02:00
|
|
|
rm -Rf glslang src/common/rendering/vulkan/thirdparty/vulkan
|
2020-06-11 10:16:01 +02:00
|
|
|
%endif
|
2018-01-03 04:28:08 +01:00
|
|
|
perl -i -pe 's{__DATE__}{""}g' src/posix/sdl/i_main.cpp
|
|
|
|
|
|
|
|
%build
|
2020-06-10 21:09:37 +02:00
|
|
|
# There is handcrafted assembler, which LTO does not play nice with.
|
2019-08-23 14:38:19 +02:00
|
|
|
%define _lto_cflags %nil
|
2019-10-04 09:41:20 +02:00
|
|
|
|
|
|
|
%ifarch %ix86
|
2020-06-10 21:09:37 +02:00
|
|
|
# Allow sw to use intrinsics (functions like _mm_set_sd).
|
|
|
|
# Guarded by cpuid calls by sw.
|
2019-10-04 09:41:20 +02:00
|
|
|
export CFLAGS="%optflags -msse -msse2"
|
|
|
|
export CXXFLAGS="%optflags -msse -msse2"
|
|
|
|
%endif
|
2018-01-03 04:28:08 +01:00
|
|
|
%cmake -DNO_STRIP=1 \
|
|
|
|
-DCMAKE_SHARED_LINKER_FLAGS="" \
|
|
|
|
-DCMAKE_EXE_LINKER_FLAGS="" -DCMAKE_MODULE_LINKER_FLAGS="" \
|
|
|
|
-DINSTALL_DOCS_PATH="%_defaultdocdir/%name" \
|
2018-10-16 14:17:39 +02:00
|
|
|
-DINSTALL_PK3_PATH="%_datadir/doom" \
|
2020-06-10 21:09:37 +02:00
|
|
|
-DDYN_OPENAL=OFF
|
2018-01-03 04:28:08 +01:00
|
|
|
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
|