File dosbox-x.spec of Package dosbox-x
#
# spec file for package dosbox-x
#
# Copyright (c) 2023 Javier S. Pedro <dev.rpm@javispedro.com>
#
# 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: dosbox-x
Version: 2025.10.07
Release: 0
Summary: DOS emulator derived from DOSBox
License: GPL-2.0-or-later
URL: https://dosbox-x.com/
Source0: https://github.com/joncampbell123/dosbox-x/archive/refs/tags/%{name}-v%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++ >= 5.0
BuildRequires: ncurses-devel
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(SDL2_net)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(fluidsynth)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(slirp)
BuildRequires: pkgconfig(libpcap)
BuildRequires: pkgconfig(xkbfile)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(zlib)
Recommends: fluid-soundfont-gm
%description
DOSBox-X is a DOS emulator derived from DOSBox that is designed to support different types of DOS software and systems,
including serious DOS application usages (such as those requiring printing and SHARE functions) and East Asian systems
(such as DOS/V and PC-98).
It focuses on implementing accurate emulations (especially accurate reproduction of hardware behavior) and various ways
to tweak and configure the DOS virtual machine, and also intends to be a great platform for emulating DOS-based Windows
such as Windows 3.x and 9x/Me and software written for those versions of Windows.
DOSBox-X implements various features needed by DOS programs and also to support the development of new DOS software.
%prep
%autosetup -n %{name}-%{name}-v%{version}
sed -i 's/\r$//' CHANGELOG
autoreconf -i
%build
%configure --enable-sdl2 --enable-debug
make %{?_smp_mflags}
%install
%make_install
%suse_update_desktop_file com.dosbox_x.DOSBox-X
# we package these files ourselves
rm -v %{buildroot}/%{_datadir}/dosbox-x/{CHANGELOG,dosbox-x.reference.conf,dosbox-x.reference.full.conf}
%files
%license COPYING
%doc CHANGELOG
%doc dosbox-x.reference.conf
%doc dosbox-x.reference.full.conf
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/com.dosbox_x.DOSBox-X.desktop
%{_datadir}/icons/hicolor/scalable/apps/dosbox-x.svg
%{_datadir}/metainfo/com.dosbox_x.DOSBox-X.metainfo.xml
%{_mandir}/man1/dosbox-x.1%{ext_man}
%{_datadir}/bash-completion/completions/dosbox-x
%changelog