mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-09 03:41:10 +08:00
65 lines
2.0 KiB
RPMSpec
65 lines
2.0 KiB
RPMSpec
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: @PACKAGE_DESCRIPTION@
|
|
License: GPL
|
|
URL: http://www.dosbox-x.com
|
|
Group: Applications/Emulators
|
|
Source0: @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.xz
|
|
Source1: dosbox-x.desktop
|
|
Source2: dosbox-x.png
|
|
Source3: dosbox-x.appdata.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/48x48/apps
|
|
install -p -m 0644 %SOURCE2 %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
|
|
mkdir -p %{buildroot}%{_datadir}/metainfo
|
|
install -p -m 0644 %SOURCE3 %{buildroot}%{_datadir}/metainfo
|
|
|
|
%files
|
|
%{_bindir}/*
|
|
%{_datadir}/applications/*
|
|
%{_datadir}/icons/hicolor/*/apps/dosbox-x.png
|
|
%{_datadir}/metainfo/*
|
|
%{_datadir}/dosbox-x
|
|
|
|
# Required for NE2000 networking support
|
|
%post
|
|
if [ -x /usr/sbin/setcap ]; then
|
|
setcap cap_net_raw+ep %{_bindir}/dosbox-x
|
|
fi
|
|
|