2022-02-23 17:01:34 +01:00
|
|
|
#
|
|
|
|
# spec file for package dsda-doom
|
|
|
|
#
|
|
|
|
# Copyright (c) 2022 SUSE LLC
|
|
|
|
#
|
|
|
|
# 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: dsda-doom
|
2022-03-30 20:43:06 +02:00
|
|
|
Version: 0.24.3
|
2022-02-23 17:01:34 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: DOOM source port with Hexen support and demo compatibility
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: Amusements/Games/3D/Shoot
|
|
|
|
URL: https://github.com/kraflab/dsda-doom
|
|
|
|
|
2022-03-30 20:43:06 +02:00
|
|
|
#Changelog: https://github.com/kraflab/dsda-doom/blob/v0.24.3/patch_notes/v0.24.md
|
|
|
|
#Announce: https://www.doomworld.com/forum/topic/118074-dsda-doom-source-port-v0243/
|
2022-02-23 17:01:34 +01:00
|
|
|
Source: https://github.com/kraflab/dsda-doom/archive/refs/tags/v%version.tar.gz
|
|
|
|
Patch1: prboom-nodatetime.diff
|
|
|
|
Patch2: prboom-hbar-all.diff
|
|
|
|
Patch3: prboom-hbar-gradient.diff
|
2022-03-30 21:26:29 +02:00
|
|
|
Patch4: fluidsynth1.diff
|
2022-02-23 17:01:34 +01:00
|
|
|
BuildRequires: Mesa-devel
|
|
|
|
BuildRequires: c++_compiler
|
|
|
|
BuildRequires: cmake
|
2022-03-30 21:26:29 +02:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
BuildRequires: fluidsynth-devel >= 2
|
|
|
|
%endif
|
2022-02-23 17:01:34 +01:00
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libvorbis-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: portmidi-devel
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: pkgconfig(SDL2_image)
|
|
|
|
BuildRequires: pkgconfig(SDL2_mixer)
|
|
|
|
BuildRequires: pkgconfig(SDL2_net)
|
|
|
|
BuildRequires: pkgconfig(sdl2)
|
|
|
|
Suggests: freedoom
|
|
|
|
Provides: prboom
|
|
|
|
|
|
|
|
%description
|
|
|
|
DSDA-Doom is a source port derived from the PrBoom history line.
|
|
|
|
It features:
|
|
|
|
|
|
|
|
* Extra tooling for demo recording, with focus on speedrunning:
|
|
|
|
record-rewind support
|
|
|
|
* Heretic and Hexen support
|
|
|
|
* MBFv21, UMAPINFO and DSDHacked specification support
|
|
|
|
|
|
|
|
%prep
|
2022-03-30 21:26:29 +02:00
|
|
|
%setup -q
|
|
|
|
%patch -P 1 -P 2 -P 3 -p0
|
|
|
|
%if 0%{?sle_version} < 150400
|
|
|
|
%patch -P 4 -p0
|
|
|
|
%endif
|
2022-02-23 17:01:34 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
pushd prboom2/
|
|
|
|
%cmake -DDOOMWADDIR="%_datadir/doom"
|
|
|
|
%cmake_build
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd prboom2/
|
|
|
|
%cmake_install
|
|
|
|
b="%buildroot"
|
|
|
|
install -Dm0644 ICONS/dsda-doom.png "$b/%_datadir/icons/hicolor/apps/dsda-doom.png"
|
|
|
|
install -Dm0644 ICONS/dsda-doom.desktop "$b/%_datadir/applications/dsda-doom.desktop"
|
|
|
|
install -Dm0644 ICONS/dsda-doom.bash "$b/%_datadir/bash-completion/completions/dsda-doom.bash"
|
|
|
|
popd
|
|
|
|
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 1550
|
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%_bindir/*
|
|
|
|
%_datadir/doom/
|
|
|
|
%_datadir/applications/*.desktop
|
|
|
|
%_datadir/icons/hicolor/apps/
|
|
|
|
%_datadir/bash-completion/
|
|
|
|
%doc docs/*.md
|
|
|
|
|
|
|
|
%changelog
|