File doomretro.spec of Package doomretro
#
# spec file for package doomretro
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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: doomretro
Version: 5.7.2
Release: 0
Summary: Classic, refined DOOM source port
License: GPL-3.0-or-later
Group: Amusements/Games/3D/Shoot
URL: https://www.doomretro.com/
Source: https://github.com/bradharding/doomretro/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source2: %{name}.desktop
BuildRequires: ImageMagick
BuildRequires: cmake >= 3.4
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: pkgconfig(SDL2_image)
BuildRequires: pkgconfig(SDL2_mixer)
BuildRequires: pkgconfig(sdl2) >= 2.0.9
Requires: timidity
Recommends: freedoom
%description
DOOM Retro is deliberately minimalist by design, and does a few things
differently when compared with other source ports. It supports vanilla, limit
removing and BOOM-compatible maps.
%prep
%autosetup -p1
%build
%cmake
%make_build
%install
%cmake_install
install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/applications/doomretro.desktop
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,24x24,32x32,48x48,256x256}/apps
convert res/doomretro.ico[0] -strip %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/doomretro.png
convert res/doomretro.ico[1] -strip %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/doomretro.png
convert res/doomretro.ico[2] -strip %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/doomretro.png
convert res/doomretro.ico[3] -strip %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/doomretro.png
%fdupes %{buildroot}%{_datadir}
%files
%license LICENSE.md
%doc README.md README.md releasenotes.md
%{_bindir}/doomretro
%{_datadir}/doomretro/
%{_datadir}/icons/hicolor/*x*/apps/doomretro.png
%{_datadir}/applications/doomretro.desktop
%changelog