File mingw64-ironwail.spec of Package mingw64-ironwail
#
# spec file for package mingw64-ironwail
#
# Copyright (c) 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 http://bugs.opensuse.org/
#
%define realname ironwail
Name: mingw64-%{realname}
Version: 0.8.1
Release: 0
Summary: High-performance QuakeSpasm fork
License: GPL-2.0-or-later
Group: Amusements/Games/3D/Shoot
URL: https://github.com/andrei-drexler/ironwail
Source: https://github.com/andrei-drexler/ironwail/archive/refs/tags/v%{version}.tar.gz#/%{realname}-%{version}.tar.gz
#Patch0: x.patch
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-flac-devel
BuildRequires: mingw64-libSDL2-devel
BuildRequires: mingw64-libcurl-devel
BuildRequires: mingw64-libmad-devel
BuildRequires: mingw64-libmikmod-devel
BuildRequires: mingw64-libvorbis-devel
BuildRequires: mingw64-libxmp-devel
BuildRequires: mingw64-mpg123-devel
BuildRequires: mingw64-opusfile-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
A fork of the popular GLQuake descendant QuakeSpasm with a focus
on high performance instead of maximum compatibility,
with a few extra features sprinkled on top.
Quake game files (id1 directory containing pak files) must be found
for ironquake to start:
- automatically found if the Quake Steam remaster is installed
- id1 directory can be copied into ~/.ironwail
- start ironwail with option -basedir <install_dir>, where <install_dir>
is the directory containing the id1 folder
%_mingw64_debug_package
%prep
%autosetup -p1 -n %{realname}-%{version}
%build
### FIXME: use cmake and use proper dependencies
#%%{_mingw64_cmake}
#%%{_mingw64_cmake_build}
cd Quake
./build_cross_win64-sdl2.sh
%install
install -D -m0755 Quake/ironwail.exe %{buildroot}/%{_mingw64_bindir}/ironwail.exe
install -D -m0644 Quake/ironwail.pak %{buildroot}/%{_mingw64_datadir}/ironwail/ironwail.pak
find . -name "*.dll"
#./Windows/curl/lib/x64/libcurl.dll
#./Windows/SDL2/lib64/SDL2.dll
#./Windows/zlib/x64/zlib1.dll
#./Windows/codecs/x64/libopusfile-0.dll
#./Windows/codecs/x64/libvorbisfile-3.dll
#./Windows/codecs/x64/libmpg123-0.dll
#./Windows/codecs/x64/libopus-0.dll
#./Windows/codecs/x64/libxmp.dll
#./Windows/codecs/x64/libFLAC-8.dll
#./Windows/codecs/x64/libogg-0.dll
#./Windows/codecs/x64/libvorbis-0.dll
#./Windows/codecs/x64/libmikmod-3.dll
%files
%license LICENSE.txt
%doc README.md Quakespasm.txt Quakespasm-Music.txt
%{_mingw64_bindir}/ironwail.exe
%dir %{_mingw64_datadir}/ironwail
%{_mingw64_datadir}/ironwail/ironwail.pak
%changelog