3 %bcond_without alsa # without ALSA support for MIDI
5 Summary: x86/DOS emulator with sound/graphics primarily for games
6 Summary(pl): Emulator x86/DOS z d¼wiêkiem/grafik± g³ównie dla gier
11 Group: Applications/Emulators
12 Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
13 # Source0-md5: dcb549eb2a9e6fe6995b973ef9ac6e9f
14 Source1: %{name}.desktop
17 URL: http://dosbox.sourceforge.net/
18 BuildRequires: SDL-devel >= 1.2.0
19 BuildRequires: SDL_net-devel
20 %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
21 BuildRequires: autoconf
22 BuildRequires: automake
23 BuildRequires: libpng-devel
24 %{?debug:BuildRequires: ncurses-devel}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 DOSBox emulates a 286/386 realmode CPU, Directory FileSystem/XMS/EMS,
29 a SoundBlaster card for excellent sound compatibility with older
32 You can "re-live" the good old days with the help of DOSBox, it can
33 run plenty of the old classics that don't run on your new computer!
36 DOSBox emuluje tryb rzeczywisty procesora 286/386, system plików z
37 katalogami, pamiêæ XMS/EMS oraz kartê SoundBlaster w celu zapewnienia
38 znakomitej kompatybilno¶ci ze starymi grami.
40 Stare wspomnienia od¿yj± z pomoc± DOSBoksa. Dziêki niemu mo¿na
41 uruchomiæ mnóstwo klasyków, które nie odpalaj± siê na nowych
48 # kill AM_PATH_SDL and AM_PATH_ALSA, leave only AH_{TOP,BOTTOM}
49 tail -n +306 acinclude.m4 > acinclude.m4.tmp
50 mv -f acinclude.m4.tmp acinclude.m4
52 echo 'AC_DEFUN([AM_PATH_ALSA], [$3])' >> acinclude.m4
60 %{?debug:--enable-debug}
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_sysconfdir}}
69 DESTDIR=$RPM_BUILD_ROOT
71 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
72 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
73 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
76 rm -rf $RPM_BUILD_ROOT
79 %defattr(644,root,root,755)
80 %doc AUTHORS ChangeLog NEWS README THANKS
81 %attr(755,root,root) %{_bindir}/*
82 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosbox.conf