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: 80b10f438119f9d83b44dcf175493dcb
14 Source1: %{name}.desktop
17 Patch0: %{name}-hq2x.patch
18 URL: http://dosbox.sourceforge.net/
19 BuildRequires: SDL-devel >= 1.2.0
20 BuildRequires: SDL_net-devel
21 %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
22 BuildRequires: autoconf
23 BuildRequires: automake
24 BuildRequires: libpng-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
55 # kill AM_PATH_SDL and AM_PATH_ALSA, leave only AH_{TOP,BOTTOM}
56 tail -n +306 acinclude.m4 > acinclude.m4.tmp
57 mv -f acinclude.m4.tmp acinclude.m4
59 echo 'AC_DEFUN([AM_PATH_ALSA], [$3])' >> acinclude.m4
67 %{?debug:--enable-debug}
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
76 DESTDIR=$RPM_BUILD_ROOT
78 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
79 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
83 rm -rf $RPM_BUILD_ROOT
86 %defattr(644,root,root,755)
87 %doc AUTHORS NEWS README THANKS dosbox.conf
88 %attr(755,root,root) %{_bindir}/*