File CatacombGL.spec of Package CatacombGL
#
# spec file for package CatacombGL
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2024-2025, 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/
#
%if 0%{?sle_version} && 0%{?sle_version} < 160000
%global force_gcc_version 13
%endif
Name: CatacombGL
Version: 0.5.7
Release: 0
Summary: A source port of Catacomb 3D
License: GPL-3.0-only
Group: Amusements/Games/3D/Shoot
URL: https://github.com/ArnoAnsems/CatacombGL/
#Git-Clone: https://github.com/ArnoAnsems/CatacombGL.git
Source: https://github.com/ArnoAnsems/CatacombGL/archive/refs/tags/v%{version}-beta.tar.gz
BuildRequires: ImageMagick
BuildRequires: cmake
BuildRequires: gcc%{?force_gcc_version}-c++
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(sdl2)
%description
CatacombGL is a source port of Catacomb 3D and the Catacomb Adventure series.
Features
* Hardware accelerated 3D rendering via OpenGL, supporting widescreen
resolutions, a customizable field of view and an uncapp ed frame rate.
* Player, projectile and monster movement with floating point precision.
* Configurable mouse and keyboard controls.
* Supports all four Catacomb 3D games as included in the Catacombs Pack
from GOG.com.
* Supports The Catacomb Abyss version 1.13 (shareware).
Note:
You need the original game data (levels, pictures, sounds, etc) files
to play the supported games with CatacombGL.
%prep
%autosetup -p1 -n CatacombGL-%{version}-beta
convert -strip res/win/CatacombGL.ico CatacombGL.png
%build
%if 0%{?force_gcc_version}
export CXX="g++-%{force_gcc_version}"
%endif
%cmake
%cmake_build
%install
%cmake_install
%suse_update_desktop_file -c %{name} %{name} "A Catacomb 3D source port" %{name} %{name} Game ActionGame
install -D -m0644 %{name}-4.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
%files
%license LICENSE
%doc README.md
%{_bindir}/CatacombGL
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%changelog