BuildRequires: libX11 libX11-devel libXext libXext-devel libpng libpng-devel BuildRequires: alsa-lib alsa-lib-devel ncurses ncurses-devel zlib zlib-devel BuildRequires: mesa-libGL mesa-libGL-devel pulseaudio-libs pulseaudio-libs-devel BuildRequires: fluidsynth-devel libpcap-devel make libtool gcc Requires: libX11 libXext libpng alsa-lib ncurses zlib mesa-libGL pulseaudio-libs Requires: fluid-soundfont-gm Name: @PACKAGE_NAME@ Version: @PACKAGE_VERSION@ Release: 0%{?dist} Summary: DOS emulator for running DOS games and applications including Windows 3.x/9x License: GPL URL: https://dosbox-x.com Group: Applications/Emulators Source0: @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.xz Source1: com.dosbox_x.DOSBox-X.desktop Source2: dosbox-x.svg Source3: com.dosbox_x.DOSBox-X.metainfo.xml %description DOSBox-X is a cross-platform DOS emulator based on DOSBox. Like DOSBox, it emulates a PC necessary for running many MS-DOS games and applications that simply cannot be run on modern PCs and operating systems. However, while the main focus of DOSBox is for running DOS games, DOSBox-X goes much further than this. Started as a fork of the DOSBox project, it retains compatibility with the wide base of DOS games and DOS gaming DOSBox was designed for. But it is also a platform for emulating DOS applications, including emulating the environments to run Windows 3.x, 9x and ME and software written for those versions of Windows. %prep %autosetup -n dosbox-x %build ./build-debug %check %install %make_install DESTDIR=%{buildroot} desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ %{SOURCE1} mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps install -p -m 0644 %SOURCE2 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps mkdir -p %{buildroot}%{_datadir}/metainfo install -p -m 0644 %SOURCE3 %{buildroot}%{_datadir}/metainfo mkdir -p %{buildroot}%{_datadir}/dosbox-x/glshaders install -p -m 0644 $RPM_BUILD_DIR/dosbox-x/contrib/glshaders/*.glsl %{buildroot}%{_datadir}/dosbox-x/glshaders %files %{_bindir}/* %{_datadir}/applications/* %{_datadir}/icons/hicolor/*/apps/dosbox-x.svg %{_datadir}/metainfo/* %{_datadir}/dosbox-x %{_datadir}/dosbox-x/* %{_datadir}/dosbox-x/glshaders %{_datadir}/dosbox-x/glshaders/* # Required for NE2000 networking support %post if [ -x /usr/sbin/setcap ]; then setcap cap_net_raw+ep %{_bindir}/dosbox-x fi