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-01-19 12:06:54 +01:00
|
|
|
Version: 4.3.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
|
|
|
|
Patch3: gzdoom-vulkan.patch
|
2019-10-03 13:37:54 +02:00
|
|
|
Patch4: gzdoom-asmjit.patch
|
2019-12-18 23:09:50 +01:00
|
|
|
Patch5: gzdoom-system-gme.patch
|
2019-12-19 23:12:32 +01:00
|
|
|
Patch6: gzdoom-dl.patch
|
2018-01-03 04:28:08 +01:00
|
|
|
BuildRequires: cmake >= 2.8.7
|
|
|
|
BuildRequires: gcc-c++
|
2019-04-13 14:41:25 +02:00
|
|
|
BuildRequires: glslang-devel
|
2018-01-03 04:28:08 +01:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: nasm
|
|
|
|
BuildRequires: pkg-config
|
2019-04-13 15:11:19 +02:00
|
|
|
BuildRequires: spirv-tools-devel
|
2018-01-03 04:28:08 +01:00
|
|
|
BuildRequires: unzip
|
2018-01-09 12:51:02 +01:00
|
|
|
BuildRequires: xz
|
2018-01-03 04:28:08 +01:00
|
|
|
BuildRequires: pkgconfig(bzip2)
|
|
|
|
BuildRequires: pkgconfig(flac)
|
|
|
|
BuildRequires: pkgconfig(fluidsynth)
|
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
|
|
BuildRequires: pkgconfig(libgme)
|
2018-10-16 14:17:39 +02:00
|
|
|
BuildRequires: pkgconfig(libmpg123)
|
2018-01-03 04:28:08 +01:00
|
|
|
BuildRequires: pkgconfig(openal)
|
|
|
|
BuildRequires: pkgconfig(sdl2)
|
2018-10-16 14:17:39 +02:00
|
|
|
BuildRequires: pkgconfig(sndfile)
|
2019-04-13 14:41:25 +02:00
|
|
|
BuildRequires: pkgconfig(vulkan)
|
2018-01-03 04:28:08 +01:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2018-01-10 23:45:46 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
BuildRequires: pkgconfig(clzma) >= 17.01
|
|
|
|
%else
|
2019-12-18 23:09:50 +01:00
|
|
|
Provides: bundled(lzma-sdk) = 19.00
|
2018-01-10 23:45:46 +01:00
|
|
|
%endif
|
2018-01-03 04:28:08 +01:00
|
|
|
%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
|
2018-01-04 08:53:08 +01:00
|
|
|
# DUMB is modified to read OggVorbis samples
|
|
|
|
Provides: bundled(dumb) = 0.9.3
|
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
|
2019-08-23 15:14:20 +02:00
|
|
|
%setup -q -n %name-g%version
|
2019-09-13 13:59:41 +02:00
|
|
|
%patch -P 1 -p1
|
2018-08-05 16:16:08 +02:00
|
|
|
|
2018-01-10 23:45:46 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2019-09-13 13:59:41 +02:00
|
|
|
%patch -P 2 -p1
|
2018-01-10 23:45:46 +01:00
|
|
|
%endif
|
2019-04-13 15:11:19 +02:00
|
|
|
%if 0%{?suse_version} >= 1550
|
2019-09-13 13:59:41 +02:00
|
|
|
%patch -P 3 -p1
|
2019-04-13 15:11:19 +02:00
|
|
|
rm -Rfv glslang src/rendering/vulkan/thirdparty/vulkan
|
|
|
|
%endif
|
2019-12-19 23:12:32 +01:00
|
|
|
%patch -P 4 -P 5 -P 6 -p1
|
2018-01-03 04:28:08 +01:00
|
|
|
perl -i -pe 's{__DATE__}{""}g' src/posix/sdl/i_main.cpp
|
2018-01-04 10:43:02 +01:00
|
|
|
perl -i -pe 's{<unknown version>}{%version}g' \
|
|
|
|
tools/updaterevision/updaterevision.c
|
2018-01-03 04:28:08 +01:00
|
|
|
|
|
|
|
%build
|
2019-08-23 14:38:19 +02:00
|
|
|
%define _lto_cflags %nil
|
2018-01-03 04:28:08 +01:00
|
|
|
# We must not strip - %%debug_package will take care of it
|
|
|
|
# Deactivate -Wl,--as-needed
|
2019-10-04 09:41:20 +02:00
|
|
|
|
|
|
|
%ifarch %ix86
|
|
|
|
# program does a cpuid check, so it is ok to enable
|
|
|
|
export CFLAGS="%optflags -msse -msse2"
|
|
|
|
export CXXFLAGS="%optflags -msse -msse2"
|
|
|
|
%endif
|
2018-01-03 04:28:08 +01:00
|
|
|
%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" \
|
2018-10-16 14:17:39 +02:00
|
|
|
-DINSTALL_PK3_PATH="%_datadir/doom" \
|
2018-10-16 15:31:11 +02:00
|
|
|
-DDYN_FLUIDSYNTH=OFF -DDYN_OPENAL=OFF \
|
|
|
|
-DDYN_SNDFILE=OFF -DDYN_MPG123=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
|