Files
doomsday/doomsday.spec

120 lines
3.5 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package doomsday
#
2025-03-22 11:28:19 +01:00
# Copyright (c) 2025 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: doomsday
Accepting request 878335 from home:vCat:branches:games I've upgraded doomsday to version 2.3.1 - the change-log is below - Updated to release 2.3.1 - What's new in 2.3.1: * This version improves support for vanilla DOOM render hacks and adds more script bindings to manipulate things in the map. DOOM render hacks. TNT: Evilution and The Plutonia Experiment use several render/map hacks to take advantage of quirks in the original DOOM renderer. Many of these effects are now supported (or fixed) in Doomsday. Examples: TNT MAP02 deep water, TNT MAP02 windows overlooking the deep water, TNT MAP09 transparent window, TNT MAP31 Arachnotrons inside pillars. Scripting. Several new Doomsday Script bindings were added, allowing access to game, player, and thing properties. In addition to spawning things, one can now list things by type, check their state and flags, and perform state changes on them. Things can also have an “On death” script that gets run when the thing dies. Bitwise operators are now available in scripts. Modding. Sprite renaming is supported via DeHackEd. In Heretic, ambient sound sequences can be redefined and new ones can be added via the Audio module. Changing the sequences is also possible during gameplay. The earthquake effect from Hexen is now also available in Heretic. It can be controlled via scripts. Renderer. Player HUD weapon models may specify a custom FOV value for rendering so that model authors have more control over the appearance, for instance to replicate a 2D sprite appearance more faithfully. * Patch release for 2.3 that fixes some incorrect behavior: Heretic: Sky textures are only partially visible. Hexen: Sky textures are sized incorrectly. Alignment of floor/ceiling textures whose size is not 64×64. OBS-URL: https://build.opensuse.org/request/show/878335 OBS-URL: https://build.opensuse.org/package/show/games/doomsday?expand=0&rev=76
2021-03-11 15:09:56 +00:00
Version: 2.3.1
Release: 0
Summary: The Doomsday Engine: DOOM/Hertic/Hexen port with pretty graphics
License: BSD-3-Clause AND GPL-2.0-only AND GPL-2.0-or-later AND SUSE-GPL-2.0-with-linking-exception AND LGPL-3.0-or-later
Group: Amusements/Games/3D/Shoot
URL: http://dengine.net/
Source: Doomsday-Engine-%version.tar.xz
Source2: %name-rpmlintrc
Patch1: doomsday-no-abs-icon.patch
Patch2: doomsday-libs.diff
Patch3: doomsday-notime.diff
BuildRequires: Mesa-devel
BuildRequires: cmake
BuildRequires: gcc-c++ >= 6
BuildRequires: libcurl4
BuildRequires: libpng-devel
BuildRequires: ncurses-devel
BuildRequires: zlib-devel
BuildRequires: zziplib-devel
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5OpenGLExtensions)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(SDL2_mixer)
2025-03-22 11:37:12 +01:00
BuildRequires: pkgconfig(assimp)
BuildRequires: pkgconfig(fluidsynth)
BuildRequires: pkgconfig(ice)
BuildRequires: pkgconfig(minizip)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xxf86vm)
# Mesa 9.2 has OpenGL 3.1, and doomsday 2.0 needs that.
Requires: Mesa-libGL1 >= 9.2
Provides: jdoom = %version-%release
Provides: jheretic = %version-%release
Provides: jhexen = %version-%release
Obsoletes: deng < %version-%release
Provides: deng = %version-%release
%description
The Doomsday Engine is a source port with support for Doom, Heretic,
and Hexen. It does not support BOOM extensions.
%prep
%autosetup -p1 -n Doomsday-Engine-%version
%build
2025-03-22 11:28:19 +01:00
cd doomsday
%cmake \
%ifarch aarch64 %arm
-DDENG_OPENGL_API=GLES3 \
%endif
2025-03-22 11:37:12 +01:00
-DDENG_ASSIMP_EMBEDDED:BOOL=OFF \
-DCMAKE_SKIP_RPATH:BOOL=ON
%make_build -O
%install
b="%buildroot"
2025-03-22 11:28:19 +01:00
cd doomsday/
%cmake_install
2025-03-22 11:28:19 +01:00
d="$b/%_libdir/doomsday"
rm -Rf "$b/%_includedir" "$b/%_libdir/cmake" "$b/%_datadir/doc/texc" \
"$d/cmake" "$d/pkgconfig" "$d"/*.a
mkdir -p "$b/%_datadir/pixmaps"
ln -s "%_datadir/%name/deng-shell-logo-256.png" "$b/%_datadir/pixmaps/"
ln -s "%_datadir/%name/deng-logo-256.png" "$b/%_datadir/pixmaps/"
mkdir -p "$b/%_sysconfdir/doomsday";
cat >"$b/%_sysconfdir/doomsday/paths" <<-EOF
basedir: %_datadir/doomsday
libdir: %_libdir/doomsday
iwaddir: %_datadir/doom
EOF
%post
echo "INFO: %name: The global IWAD directory is %_datadir/doom.";
/sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%dir %_sysconfdir/doomsday
%config %_sysconfdir/doomsday/paths
%_bindir/*
%_libdir/libdeng*.so*
%_libdir/%name/
%_datadir/%name/
%_datadir/applications/*.desktop
%_datadir/metainfo/
%_datadir/icons/*
%_datadir/pixmaps/*.png
%changelog