File mingw64-dosbox.spec of Package mingw64-dosbox
#
# spec file for package mingw64-dosbox
#
# Copyright (c) 2025-2026, 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 dosbox
Name: mingw64-%{realname}
Version: 0.82.2
Release: 0
Summary: DOS/x86 emulator to run old DOS games
License: GPL-2.0-or-later
URL: https://dosbox-staging.github.io
Source: https://github.com/dosbox-staging/dosbox-staging/archive/v%{version}.tar.gz#/dosbox-staging-%{version}.tar.gz
Patch0: mingw64-dosbox-fix-windres-ico-path.patch
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-meson
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-iir-devel
BuildRequires: mingw64-opusfile-devel
BuildRequires: mingw64-libpng-devel
BuildRequires: mingw64-zlib-devel
BuildRequires: mingw64-speexdsp-devel
BuildRequires: mingw64-SDL2_net-devel
BuildRequires: mingw64-libslirp-devel
BuildRequires: mingw64-gmock
# FIXME: fluidsynth is currently broken
BuildRequires: mingw64-fluidsynth-devel
# TODO: package mt32
BuildRequires: mingw64-libSDL2-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
dosbox-staging is DOS/x86 emulator focusing on ease of use.
Based on DOSBox, it is a fork which use modern library (e.g.: sdl2) and
practice in an attempt to revitalize the development process.
DOSBox Staging is an attempt to revitalize DOSBox's development process.
It's not a rewrite, but a continuation and improvement on the existing
DOSBox codebase while leveraging modern development tools and practices.
Added support: Opus, FLAC, MT32, GM, GUS, Raw mouse input and more.
https://github.com/dosbox-staging/dosbox-staging#readme
%_mingw64_debug_package
%prep
%autosetup -p1 -n dosbox-staging-%{version}
%build
%{_mingw64_meson} -Duse_fluidsynth=false -Duse_mt32emu=false
%{_mingw64_meson_build}
%install
%{_mingw64_meson_install}
rm -Rv %{buildroot}%{_mingw64_datadir}/licenses
rm -Rv %{buildroot}%{_mingw64_datadir}/doc/dosbox-staging
%files
%license LICENSE
%doc AUTHORS README README.md docs/README.video THANKS
%{_mingw64_bindir}/dosbox.exe
%{_mingw64_mandir}/man1/dosbox.1%{?ext_man}
%dir %{_mingw64_datadir}/applications
%{_mingw64_datadir}/applications/org.dosbox-staging.dosbox-staging.desktop
%dir %{_mingw64_datadir}/icons
%dir %{_mingw64_datadir}/icons/hicolor
%dir %{_mingw64_datadir}/icons/hicolor/1024x1024
%dir %{_mingw64_datadir}/icons/hicolor/1024x1024/apps
%dir %{_mingw64_datadir}/icons/hicolor/128x128
%dir %{_mingw64_datadir}/icons/hicolor/128x128/apps
%dir %{_mingw64_datadir}/icons/hicolor/16x16
%dir %{_mingw64_datadir}/icons/hicolor/16x16/apps
%dir %{_mingw64_datadir}/icons/hicolor/22x22
%dir %{_mingw64_datadir}/icons/hicolor/22x22/apps
%dir %{_mingw64_datadir}/icons/hicolor/24x24
%dir %{_mingw64_datadir}/icons/hicolor/24x24/apps
%dir %{_mingw64_datadir}/icons/hicolor/256x256
%dir %{_mingw64_datadir}/icons/hicolor/256x256/apps
%dir %{_mingw64_datadir}/icons/hicolor/32x32
%dir %{_mingw64_datadir}/icons/hicolor/32x32/apps
%dir %{_mingw64_datadir}/icons/hicolor/48x48
%dir %{_mingw64_datadir}/icons/hicolor/48x48/apps
%dir %{_mingw64_datadir}/icons/hicolor/512x512
%dir %{_mingw64_datadir}/icons/hicolor/512x512/apps
%dir %{_mingw64_datadir}/icons/hicolor/96x96
%dir %{_mingw64_datadir}/icons/hicolor/96x96/apps
%dir %{_mingw64_datadir}/icons/hicolor/scalable
%dir %{_mingw64_datadir}/icons/hicolor/scalable/apps
%{_mingw64_datadir}/icons/hicolor/*/apps/org.dosbox-staging.dosbox-staging.{png,svg}
%dir %{_mingw64_datadir}/metainfo
%{_mingw64_datadir}/metainfo/org.dosbox-staging.dosbox-staging.metainfo.xml
%{_mingw64_datadir}/dosbox-staging
%changelog