3 %bcond_without alsa # without ALSA support for MIDI
5 Summary: x86/DOS emulator with sound/graphics primarily for games
6 Summary(pl.UTF-8): 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: 262939cc28966c1f9b07c2bc472b699f
14 Source1: %{name}.desktop
17 URL: http://dosbox.sourceforge.net/
18 BuildRequires: OpenGL-devel
19 # because of SDL_opengl deps
20 BuildRequires: OpenGL-GLU-devel
21 BuildRequires: SDL-devel >= 1.2.0
22 BuildRequires: SDL_net-devel
23 BuildRequires: SDL_sound-devel
24 %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
25 BuildRequires: autoconf
26 BuildRequires: automake
27 BuildRequires: libpng-devel
28 BuildRequires: libstdc++-devel
29 %{?debug:BuildRequires: ncurses-devel}
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %define specflags -fmerge-all-constants -ffast-math
35 DOSBox emulates a 286/386 realmode/protected mode CPU, Directory
36 FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
37 SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility
40 You can "re-live" the good old days with the help of DOSBox, it can
41 run plenty of the old classics that don't run on your new computer!
43 %description -l pl.UTF-8
44 DOSBox emuluje tryb rzeczywisty/chroniony procesora 286/386, system
45 plików z katalogami, pamięć XMS/EMS, karty graficzne
46 Tandy/Hercules/CGA/EGA/VGA/VESA oraz karty muzyczne
47 SoundBlaster/Gravis Ultra Sound w celu zapewnienia znakomitej
48 kompatybilności ze starymi grami.
50 Stare wspomnienia odżyją z pomocą DOSBoksa. Dzięki niemu można
51 uruchomić mnóstwo klasyków, które nie odpalają się na nowych
58 # kill AM_PATH_SDL and AM_PATH_ALSA, leave only AH_{TOP,BOTTOM}
59 tail -n +306 acinclude.m4 > acinclude.m4.tmp
60 mv -f acinclude.m4.tmp acinclude.m4
62 echo 'AC_DEFUN([AM_PATH_ALSA], [$3])' >> acinclude.m4
70 %{?debug:--enable-debug}
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
79 DESTDIR=$RPM_BUILD_ROOT
81 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
82 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
86 rm -rf $RPM_BUILD_ROOT
89 %defattr(644,root,root,755)
90 %doc AUTHORS NEWS README THANKS dosbox.conf
91 %attr(755,root,root) %{_bindir}/*
93 %{_desktopdir}/*.desktop