## START: Set by rpmautospec ## (rpmautospec version 0.3.8) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: dosbox-staging Version: 0.81.0~rc2 Release: %autorelease Summary: DOS/x86 emulator focusing on ease of use URL: https://dosbox-staging.github.io/ %global gh_version %(echo %{version} | tr '~' '-') # Bundled dependencies bring their licenses with them. # Breakdown is given here. # # src/libs/decoders/std.h is another bundled dependency, # but apparently not used. # It is removed in %%prep to be sure. # # Main license: GPL-2.0-or-later # archive: Unlicense # dr_libs: MIT-0 OR Unlicense # enet: MIT # gulrak-filesystem: MIT # src/libs/gui_tk: GPL-3.0-or-later # libsidplayfp: GPL-2.0-or-later # src/lib/loguru: LicenseRef-Fedora-Public-Domain # src/lib/ppscale: Fair # src/lib/nuked: LGPL-2.1-or-later # stb_vorbis: MIT OR Unlicense # src/libs/whereami: MIT OR WTFPL # xxhash.h: BSD-2-Clause License: GPL-2.0-or-later AND Unlicense AND (MIT-0 OR Unlicense) AND MIT AND GPL-3.0-or-later AND LicenseRef-Fedora-Public-Domain AND Fair AND LGPL-2.1-or-later AND (MIT OR Unlicense) AND (MIT OR WTFPL) AND BSD-2-Clause Source: https://github.com/dosbox-staging/dosbox-staging/archive/v%{gh_version}/%{name}-%{gh_version}.tar.gz # This package is a drop-in replacement for dosbox Provides: dosbox = %{version}-%{release} Obsoletes: dosbox < 0.74.4 BuildRequires: alsa-lib-devel BuildRequires: desktop-file-utils BuildRequires: fluidsynth-devel >= 2.0 BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: git BuildRequires: gmock-devel BuildRequires: gtest-devel BuildRequires: iir1-devel BuildRequires: libappstream-glib BuildRequires: libatomic BuildRequires: libpng-devel BuildRequires: libslirp-devel BuildRequires: libXi-devel BuildRequires: make BuildRequires: meson BuildRequires: mt32emu-devel BuildRequires: opusfile-devel BuildRequires: SDL2-devel >= 2.0.5 BuildRequires: SDL2_image-devel BuildRequires: SDL2_net-devel BuildRequires: speexdsp-devel Requires: hicolor-icon-theme Requires: fluid-soundfont-gm # Some libraries are loadewd at runtime, see rhbz#2176658 Requires: mesa-dri-drivers Requires: mesa-libEGL # src/lib/enet # Based on fork github.com/lsalzman/enet Provides: bundled(enet) # src/lib/ghc Provides: bundled(gulrak-filesystem) # src/lib/gui_tk # Not in Fedora, upstream seems to have disappeared completely Provides: bundled(gui_tk) # src/lib/loguru # Not in Fedora, upstream https://github.com/emilk/loguru Provides: bundled(loguru) # src/lib/nuked # Not in Fedora, upstream https://github.com/nukeykt/Nuked-OPL3 Provides: bundled(nuked-opl3) # src/lib/residfp # Not the whole library, just the residfp part Provides: bundled(libsidplayfp) # src/lib/whereami # Not in Fedora, upstream https://github.com/gpakosz/whereami Provides: bundled(gpakosz-whereami) # src/lib/decoders/archive.h # Not in Fedora, upstream github.com/voidah/archive Provides: bundled(archive) # src/lib/decoders/dr_{flac,mp3,wav}.h Provides: bundled(dr_libs) # src/lib/decoders/stb_vorbis.h Provides: bundled(stb_vorbis) # src/lib/decoders/xxhash.h Provides: bundled(xxhash) # Automated Tests in Bodhi failed the textrel test for i686, see # https://sourceware.org/annobin/annobin.html/Test-textrel.html ExcludeArch: %{ix86} %description DOSBox Staging is full x86 CPU emulator (independent of host architecture), capable of running DOS programs that require real or protected mode. It features built-in DOS-like shell terminal, emulation of several PC variants (IBM PC, IBM PCjr, Tandy 1000), CPUs (286, 386, 486, Pentium I), graphic chipsets (Hercules, CGA, EGA, VGA, SVGA), audio solutions (Sound Blaster, Gravis UltraSound, Disney Sound Source, Tandy Sound System), CD Digital Audio emulation (also with audio encoded as FLAC, Opus, OGG/Vorbis, MP3 or WAV), joystick emulation (supports modern game controllers), serial port emulation, IPX over UDP, GLSL shaders, and more. DOSBox Staging is highly configurable, well-optimized and fast enough to run any old DOS game using modern hardware. %prep %autosetup -p1 -n %{name}-%{gh_version} # Remove unused file rm src/libs/decoders/stb.h %build %meson %meson_build %install %meson_install # Install bash completion files mkdir -p %{buildroot}%{_datadir}/bash-completion/completions cp contrib/linux/bash-completion/dosbox %{buildroot}%{_datadir}/bash-completion/completions %check %meson_test appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml %files %license %{_datadir}/licenses/%{name}/* %doc AUTHORS README THANKS %{_bindir}/dosbox %{_mandir}/man1/dosbox.* %{_datadir}/applications/* %dir %{_datadir}/bash-completion %dir %{_datadir}/bash-completion/completions %{_datadir}/bash-completion/completions/dosbox %{_datadir}/%{name} %{_datadir}/icons/hicolor/*/apps/dosbox-staging.* %{_metainfodir}/* %changelog ## START: Generated by rpmautospec * Sat Jan 20 2024 Otto Liljalaakso - 0.81.0~rc2-1 - Uncommitted changes * Wed Dec 27 2023 Otto Liljalaakso - 0.81.0~rc1-1 - Update to 0.81.0~rc1 * Wed Jul 19 2023 Fedora Release Engineering - 0.80.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Apr 02 2023 Otto Liljalaakso - 0.80.1-3 - Add missing Requires for minimal environments (rhbz#2176658) * Thu Jan 19 2023 Fedora Release Engineering - 0.80.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Jan 08 2023 Otto Liljalaakso - 0.80.1-1 - Update to 0.80.1 (rhbz#2159057) * Tue Dec 27 2022 Otto Liljalaakso - 0.80.0-2 - Update source tarball * Thu Dec 22 2022 Otto Liljalaakso - 0.80.0-1 - Update to 0.80.0 (rhbz#2155399) * Thu Nov 10 2022 Otto Liljalaakso - 0.79.1-4 - Avoid wide globs in %%files * Mon Oct 24 2022 Otto Liljalaakso - 0.79.1-3 - Exclude i686 architecture * Sat Oct 08 2022 Otto Liljalaakso - 0.79.1-2 - Add missing sources * Sat Oct 08 2022 Otto Liljalaakso - 0.79.1-1 - Update to 0.79.1 (rhbz#2128116) * Tue Aug 09 2022 Otto Liljalaakso - 0.78.1-6 - Switch to SPDX license ids * Thu Jul 21 2022 Fedora Release Engineering - 0.78.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 0.78.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Jan 08 2022 Otto Urpelainen - 0.78.1-1 - Update to 0.78.1 * Mon Jan 03 2022 Otto Urpelainen - 0.78.0-3 - Patch crash when calling EXIT in fullscreen mode - Add virtual provides for bundled dependencies - Update license to comply with bundled dependencies' licenses * Sun Jan 02 2022 Otto Urpelainen - 0.78.0-2 - Fix build on 32 bit arches * Sat Jan 01 2022 Otto Urpelainen - 0.78.0-1 - Update to 0.78.0 - Add translations - Add bash completion * Mon Sep 20 2021 Otto Urpelainen - 0.77.1-1 - Update to 0.77.1 - Resolves rhbz#2001461 * Fri Jul 23 2021 Otto Urpelainen - 0.77.0-4 - Use system mt32emu instead of bundling it * Wed Jul 21 2021 Fedora Release Engineering - 0.77.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun Jul 04 2021 Patryk Obara (pbo) - 0.77.0-2 - Indicate bundled mt32emu library via "Provides" tag - Raise minimum SDL version to 2.0.5 * Sat Jul 03 2021 Patryk Obara (pbo) - 0.77.0-1 - Update to 0.77.0 - Replace Autotools with Meson * Mon Jun 21 2021 Gwyn Ciesla - 0.76.0-3 - Fluidsynth rebuild. * Tue Jan 26 2021 Patryk Obara (pbo) - 0.76.0-2 - Tighten dependencies checks * Mon Jan 25 2021 Patryk Obara (pbo) - 0.76.0-1 - Update to 0.76.0 - Add fluidsynth-devel build dependency (new feature) - Add fluid-soundfont-gm runtime dependency (default soundfont) * Tue Oct 27 2020 Patryk Obara (pbo) - 0.75.2-1 - Update to 0.75.2 * Thu Oct 01 2020 Patryk Obara (pbo) - 0.75.1-1 - Initial release. ## END: Generated by rpmautospec