2018-01-03 04:28:08 +01:00
|
|
|
#
|
|
|
|
# spec file for package gzdoom
|
|
|
|
#
|
2022-04-18 20:13:45 +02:00
|
|
|
# Copyright (c) 2022 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
|
2022-07-05 02:29:57 +02:00
|
|
|
Version: 4.8.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
|
2021-03-04 23:43:34 +01:00
|
|
|
Patch4: gzdoom-sdlbug.patch
|
|
|
|
Patch5: gzdoom-vulkan.patch
|
2022-06-16 18:39:07 +02:00
|
|
|
Patch6: gzdoom-discord.patch
|
2022-06-23 23:45:21 +02:00
|
|
|
Patch8: 0001-Revert-load-the-hex-font-as-early-as-possible.patch
|
2022-07-04 11:47:57 +02:00
|
|
|
Patch9: 0001-Revert-use-static_assert-to-make-32-bit-builds-fail.patch
|
2018-01-03 04:28:08 +01:00
|
|
|
BuildRequires: cmake >= 2.8.7
|
2022-06-16 18:39:07 +02:00
|
|
|
BuildRequires: discord-rpc-devel
|
2018-01-03 04:28:08 +01:00
|
|
|
BuildRequires: gcc-c++
|
2022-04-23 03:05:51 +02:00
|
|
|
BuildRequires: glslang-devel
|
2018-01-03 04:28:08 +01:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
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)
|
2021-09-22 15:15:25 +02:00
|
|
|
BuildRequires: pkgconfig(sdl2) >= 2.0.6
|
2022-06-16 18:39:07 +02:00
|
|
|
BuildRequires: pkgconfig(vpx)
|
2022-07-04 11:57:18 +02:00
|
|
|
BuildRequires: pkgconfig(vulkan) >= 1.2.162
|
2018-01-03 04:28:08 +01:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2020-09-16 01:26:18 +02:00
|
|
|
Suggests: freedoom
|
2018-01-03 04:28:08 +01:00
|
|
|
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
|
|
|
|
2022-07-05 10:56:51 +02:00
|
|
|
The executables hard-require SSE2 on i686 currently.
|
|
|
|
|
2018-01-03 04:28:08 +01:00
|
|
|
%prep
|
2022-04-23 03:05:51 +02:00
|
|
|
%autosetup -n %name-g%version -p1
|
2022-06-22 10:47:32 +02:00
|
|
|
perl -i -pe 's{__DATE__}{"does not matter when"}g' src/common/platform/posix/sdl/i_main.cpp
|
|
|
|
perl -i -pe 's{<unknown version>}{%version}g' tools/updaterevision/UpdateRevision.cmake
|
2020-06-11 17:19:08 +02:00
|
|
|
rm -Rf glslang src/common/rendering/vulkan/thirdparty/vulkan
|
2022-04-23 03:34:47 +02:00
|
|
|
mkdir -p extra_include/glslang
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 1550
|
|
|
|
touch extra_include/glslang/build_info.h
|
|
|
|
%endif
|
2018-01-03 04:28:08 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
2022-04-23 03:34:47 +02:00
|
|
|
export CXXFLAGS="$CXXFLAGS -I$PWD/extra_include"
|
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" \
|
2021-03-04 23:43:34 +01:00
|
|
|
-DINSTALL_SOUNDFONT_PATH="%_datadir/doom" \
|
2022-07-10 13:41:54 +02:00
|
|
|
-DDYN_OPENAL=OFF -DINSTALL_RPATH:STRING="NO"
|
2021-03-04 23:43:34 +01:00
|
|
|
%cmake_build
|
2018-01-03 04:28:08 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
%post
|
|
|
|
echo "INFO: %name: The global IWAD directory is %_datadir/doom."
|
|
|
|
|
|
|
|
%files
|
|
|
|
%_bindir/%name
|
|
|
|
%_defaultdocdir/%name
|
|
|
|
%_datadir/doom/
|
|
|
|
|
|
|
|
%changelog
|