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/dosbox/%{name}-%{version}.tar.gz
13 # Source0-md5: fef84c292c3aeae747368b9875c1575a
14 Source1: %{name}.desktop
17 URL: http://dosbox.sourceforge.net/
18 BuildRequires: SDL_net-devel
19 BuildRequires: SDL_sound-devel
20 %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
21 BuildRequires: autoconf
22 BuildRequires: automake
23 BuildRequires: libpng-devel
24 BuildRequires: libstdc++-devel
25 %{?debug:BuildRequires: ncurses-devel}
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define specflags -fmerge-all-constants -ffast-math
31 DOSBox emulates a 286/386 realmode/protected mode CPU, Directory
32 FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
33 SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility
36 You can "re-live" the good old days with the help of DOSBox, it can
37 run plenty of the old classics that don't run on your new computer!
40 DOSBox emuluje tryb rzeczywisty/chroniony procesora 286/386, system
41 plików z katalogami, pamiêæ XMS/EMS, karty graficzne
42 Tandy/Hercules/CGA/EGA/VGA/VESA oraz karty muzyczne
43 SoundBlaster/Gravis Ultra Sound w celu zapewnienia znakomitej
44 kompatybilno¶ci ze starymi grami.
46 Stare wspomnienia od¿yj± z pomoc± DOSBoksa. Dziêki niemu mo¿na
47 uruchomiæ mnóstwo klasyków, które nie odpalaj± siê na nowych
54 # kill AM_PATH_SDL and AM_PATH_ALSA, leave only AH_{TOP,BOTTOM}
55 tail -n +306 acinclude.m4 > acinclude.m4.tmp
56 mv -f acinclude.m4.tmp acinclude.m4
58 echo 'AC_DEFUN([AM_PATH_ALSA], [$3])' >> acinclude.m4
66 %{?debug:--enable-debug}
71 rm -rf $RPM_BUILD_ROOT
72 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
75 DESTDIR=$RPM_BUILD_ROOT
77 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
78 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
82 rm -rf $RPM_BUILD_ROOT
85 %defattr(644,root,root,755)
86 %doc AUTHORS NEWS README THANKS dosbox.conf
87 %attr(755,root,root) %{_bindir}/*