File woof.spec of Package woof-doom
Name: woof-doom
Version: 14.5.0
Release: %autorelease
Summary: A continuation of the MBF source port for modern systems
License: GPLv2+
URL: https://github.com/fabiangreffrath/woof
Source0: https://github.com/fabiangreffrath/woof/archive/refs/tags/woof_%{version}.tar.gz
Patch1: woof-doom-suse.patch
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: pkgconfig(SDL2_image)
BuildRequires: pkgconfig(SDL2_mixer)
BuildRequires: pkgconfig(SDL2_net)
BuildRequires: pkgconfig(sdl2) >= 2.0.9
BuildRequires: openal-soft-devel
BuildRequires: pkgconfig(sndfile)
BuildRequires: pkgconfig(fluidsynth)
BuildRequires: fluidsynth
BuildRequires: ImageMagick
BuildRequires: pkgconfig(libxmp)
BuildRequires: update-desktop-files
#Requires: openal-soft
#Requires: libsndfile1
Requires: fluidsynth
#Requires: libxmp4
%description
MBF stands for "Marine's Best Friend" and is widely regarded as the successor of the Boom source port by TeamTNT. It serves as the code base for popular Doom source ports such as PrBoom+/DSDA-Doom or The Eternity Engine. As the original engine was limited to run only under MS-DOS, it has been ported to Windows by Team Eternity under the name WinMBF in 2004. Woof! is developed based on the WinMBF code with the aim to make MBF more widely available and convenient to use on modern systems.
To achieve this goal, this source port is less strict regarding its faithfulness to the original MBF. It is focused on quality-of-life enhancements, bug fixes and compatibility improvements. However, all changes have been introduced in good faith that they are in line with the original author's intentions and even for the trained eye, this source port should still look very familiar to the original MBF.
In summary, this project's goal is to fast-forward MBF.EXE from DOS to 21st century and remove all the stumbling blocks on the way. Furthermore, just as MBF was ahead of its time, this project dedicates itself to early adoption of new modding features such as DEHEXTRA+DSDHacked, UMAPINFO and MBF21.
%prep
%setup -n woof-woof_%{version}
%build
%cmake -DCMAKE_BUILD_TYPE=Release
%cmake_build
%install
%cmake_install
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,20x20,24x24,32x32,40x40,48x48,64x64,256x256}/apps
magick convert data/woof.ico[5] -strip %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/woof.png
magick convert data/woof.ico[6] -strip %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/woof.png
magick convert data/woof.ico[7] -strip %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/woof.png
magick convert data/woof.ico[8] -strip %{buildroot}%{_datadir}/icons/hicolor/40x40/apps/woof.png
magick convert data/woof.ico[9] -strip %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/woof.png
magick convert data/woof.ico[10] -strip %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/woof.png
magick convert data/woof.ico[11] -strip %{buildroot}%{_datadir}/icons/hicolor/20x20/apps/woof.png
magick convert data/woof.ico[12] -strip %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/woof.png
magick convert data/setup.ico[6] -strip %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/woof-setup.png
magick convert data/setup.ico[8] -strip %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/woof-setup.png
magick convert data/setup.ico[9] -strip %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/woof-setup.png
magick convert data/setup.ico[10] -strip %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/woof-setup.png
%files
%{_bindir}/woof
%{_bindir}/woof-setup
%{_datadir}/*
%{_datadir}/icons/hicolor/*x*/apps/woof.png
%{_datadir}/icons/hicolor/*x*/apps/woof-setup.png
%changelog
* Sun Mar 10 2024 Danilo Soares <deudzdev@gmail.com> - 14.2.0
- Initial release