2018-01-03 04:28:08 +01:00
|
|
|
#
|
|
|
|
# spec file for package gzdoom
|
|
|
|
#
|
2019-01-03 17:09:32 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
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
|
2019-01-23 17:00:40 +01:00
|
|
|
Version: 3.7.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
|
|
|
|
Url: http://zdoom.org/
|
|
|
|
|
|
|
|
#Git-Clone: https://github.com/coelckers/gzdoom
|
2018-01-09 12:51:02 +01:00
|
|
|
Source: %name-%version.tar.xz
|
2018-01-03 04:28:08 +01:00
|
|
|
Patch1: gzdoom-waddir.patch
|
2018-01-10 23:45:46 +01:00
|
|
|
Patch2: gzdoom-wadsrc-extra.patch
|
|
|
|
Patch3: gzdoom-staticlibs.patch
|
2018-10-16 15:31:11 +02:00
|
|
|
Patch4: fl2.patch
|
2018-01-10 23:45:46 +01:00
|
|
|
Patch5: gzdoom-lzma.patch
|
2019-01-03 17:09:32 +01:00
|
|
|
Patch6: gzdoom-asmjit.patch
|
2018-01-03 04:28:08 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: cmake >= 2.8.7
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: nasm
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
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)
|
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
|
|
|
|
Provides: bundled(lzma-sdk) = 17.01
|
|
|
|
%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
|
|
|
|
|
|
|
|
%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
|
2018-01-09 12:51:02 +01:00
|
|
|
%setup -q
|
2019-01-03 17:09:32 +01:00
|
|
|
%patch -P 1 -P 2 -P 3 -P 4 -P 6 -p1
|
2018-08-05 16:16:08 +02:00
|
|
|
|
2018-01-10 23:45:46 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
%patch -P 5 -p1
|
|
|
|
%endif
|
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
|
|
|
|
# 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" \
|
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
|