forked from pool/gzdoom
Jan Engelhardt
36768d6f86
OBS-URL: https://build.opensuse.org/package/show/games/gzdoom?expand=0&rev=27
127 lines
3.9 KiB
RPMSpec
127 lines
3.9 KiB
RPMSpec
#
|
|
# spec file for package gzdoom
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.0
|
|
Release: 0
|
|
Summary: A DOOM source port with graphic and modding extensions
|
|
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
|
|
Patch4: fl2.patch
|
|
Patch5: gzdoom-lzma.patch
|
|
Patch6: gzdoom-vulkan.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) = 17.01
|
|
%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
|
|
|
|
%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 -P 4 -p1
|
|
|
|
%if 0%{?suse_version} >= 1500
|
|
%patch -P 5 -p1
|
|
%endif
|
|
%if 0%{?suse_version} >= 1550
|
|
%patch -P 6 -p1
|
|
rm -Rfv glslang src/rendering/vulkan/thirdparty/vulkan
|
|
%endif
|
|
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
|
|
%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
|