SHA256
1
0
forked from pool/RigelEngine
Files
RigelEngine/RigelEngine.spec

75 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package RigelEngine
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2019-2023, Martin Hauke <mardnh@gmx.de>
#
# 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: RigelEngine
Accepting request 1042015 from home:mnhauke:games - Update to version 0.9.1 Bug fixes * Fixed a crash that could occur in level 1 of episode 2, in theory also in other levels but it was so far only observed in E2L1. * Fixed being able to shoot destructible walls through 4-tile wide walls using the regular shot. - Update to version 0.9.0 New features * Added a "Classic" gameplay style/mode. It doesn't support widescreen mode or smooth motion, but is 100% accurate to the original. Quick-saving and high-resolution mods are still supported. See Classic Mode vs. Enhanced Mode for more details. * Implemented the gameplay demo (plays during the attract mode loop at the beginning of the game or after waiting for 30 seconds in the main menu). * Implemented the original game's cloak effect, replacing the previously used alpha transparency. * Implemented the original game's slide-in animation when showing message boxes. * Added an option to disable the radar overlay when using the "Remixed 1" HUD style. * Added an option to disable aspect ratio correction when using pixel-perfect upscaling (aka integer scaling). This is to allow running RigelEngine on a 4:3 CRT at original (or close to) resolution. * It's now possible to confirm quitting by pressing enter instead of Y (but the latter also still works). * Pressing ESC while in-game now brings up the in-game menu (this was previously only accessible by using a gamepad). Pressing Q OBS-URL: https://build.opensuse.org/request/show/1042015 OBS-URL: https://build.opensuse.org/package/show/games/RigelEngine?expand=0&rev=26
2022-12-12 10:01:34 +00:00
Version: 0.9.1
Release: 0
Summary: A modern reimplementation of the game Duke Nukem II
License: GPL-2.0-only
Group: Amusements/Games/Action/Arcade
URL: https://github.com/lethal-guitar/RigelEngine
Source: %{name}-%{version}.tar.xz
Patch0: RigelEngine-fix-build-with-gcc13.patch
BuildRequires: cmake >= 3.12
BuildRequires: pkgconfig
BuildRequires: pkgconfig(SDL2_mixer)
BuildRequires: pkgconfig(sdl2)
%if 0%{?sle_version} >= 150100 && 0%{?sle_version} < 160000 && 0%{?is_opensuse}
BuildRequires: gcc9
BuildRequires: gcc9-c++
%else
BuildRequires: gcc-c++
%endif
%description
A modern reimplementation of the game Duke Nukem II, originally released in
1993 for MS-DOS by Apogee Software.
You need the original game's data files in order to play, e.g. the freely
available shareware version.
%prep
%autosetup -p1
%build
%if 0%{?sle_version} >= 150100 && 0%{?is_opensuse}
export CC="gcc-9"
export CXX="g++-9"
%endif
Accepting request 932817 from home:mnhauke:games - Update to version 0.8.2 New features * Added a smooth scrolling and movement mode. When this is enabled, the game is taking full advantage of the display framerate (60 FPS or higher) by interpolating object and camera movement during rendering (internal game logic is still running at 15 FPS). This is currently still work in progress, see known issues. * The engine has a built-in screenshot function now. Press F12 to take a screenshot. It will be saved as PNG in either your Duke Nukem II game files directory, or in the user profile directory if the former is not writable. * It's now possible to skip the bonus screen after finishing a level by pressing Enter or Esc (or controller button A or B). * Added an option to the Enhancements tab to skip the intro when RigelEngine starts (same as the -s command line option). * Added information about currently active gamepads to the options menu Improvements * In widescreen mode, out of bounds areas are now drawn in black instead of showing the background. * Replacement backgrounds (mods) can now be wider than the original art they are replacing, and will be displayed correctly (without distortion) * For auto-scrolling backgrounds, the scroll position is now saved/restored when quick saving/loading. * The game will now run even if the intro movie files (NUKEM2.F1, .F2 etc.) are missing. The movies will be skipped instead of exiting the game. * Game physics are more correct now w.r.t. the original code OBS-URL: https://build.opensuse.org/request/show/932817 OBS-URL: https://build.opensuse.org/package/show/games/RigelEngine?expand=0&rev=19
2021-11-25 19:22:48 +00:00
%cmake -DBUILD_TESTS=ON \
-DBUILD_MODDING_TOOLS=ON \
%ifarch %arm aarch64
-DUSE_GL_ES=1 \
%endif
%make_jobs
%install
install -D -m0755 build/src/RigelEngine %{buildroot}%{_bindir}/RigelEngine
%check
%ctest
%files
%license LICENSE.md
%license AUTHORS.md README.md
%{_bindir}/RigelEngine
%changelog