2018-01-03 04:28:08 +01:00
|
|
|
#
|
|
|
|
# spec file for package gzdoom
|
|
|
|
#
|
2023-02-07 19:49:08 +01:00
|
|
|
# Copyright (c) 2023 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-12-04 16:46:47 +01:00
|
|
|
Version: 4.10.0
|
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
|
|
|
|
2022-12-04 16:46:47 +01:00
|
|
|
#Git-Clone: https://github.com/zdoom/gzdoom
|
|
|
|
Source: https://github.com/zdoom/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
|
2021-03-04 23:43:34 +01:00
|
|
|
Patch5: gzdoom-vulkan.patch
|
2022-06-16 18:39:07 +02:00
|
|
|
Patch6: gzdoom-discord.patch
|
2022-11-06 12:14:22 +01:00
|
|
|
Patch8: 0001-removed-some-32bit-only-CMake-code.patch
|
2022-07-04 11:47:57 +02:00
|
|
|
Patch9: 0001-Revert-use-static_assert-to-make-32-bit-builds-fail.patch
|
2023-03-31 00:03:03 +02:00
|
|
|
Patch10: gcc13.diff
|
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++
|
|
|
|
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)
|
2018-01-03 04:28:08 +01:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2022-07-24 09:59:23 +02:00
|
|
|
%if 0%{?suse_version} >= 1550
|
2022-10-25 02:26:09 +02:00
|
|
|
BuildRequires: glslang-devel >= 11.10
|
2022-12-04 16:46:47 +01:00
|
|
|
BuildRequires: pkgconfig(vulkan) >= 1.2.189
|
2022-07-24 09:59:23 +02:00
|
|
|
%else
|
|
|
|
Provides: bundled(glslang) = 11.10.0
|
2022-07-24 10:06:05 +02:00
|
|
|
Provides: bundled(vulkan) = 1.2.189.1
|
2022-07-24 09:59:23 +02:00
|
|
|
%endif
|
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
|
|
|
|
Provides: bundled(gdtoa)
|
|
|
|
Provides: bundled(re2c) = 0.16.0
|
2022-12-04 16:46:47 +01:00
|
|
|
Provides: bundled(xbrz) = 1.8
|
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
|
|
|
|
* 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
|
2022-04-23 03:34:47 +02:00
|
|
|
mkdir -p extra_include/glslang
|
2022-07-24 09:59:23 +02:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
rm -Rf glslang src/common/rendering/vulkan/thirdparty/vulkan
|
|
|
|
%else
|
|
|
|
%patch -P 5 -R -p1
|
2022-04-23 03:34:47 +02:00
|
|
|
%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
|