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://downloads.sourceforge.net/dosbox/%{name}-%{version}.tar.gz
13 # Source0-md5: b9b240fa87104421962d14eee71351e8
14 Source1: %{name}.desktop
17 Patch0: %{name}-gcc46.patch
18 URL: http://dosbox.sourceforge.net/
19 BuildRequires: OpenGL-devel
20 # because of SDL_opengl deps
21 BuildRequires: OpenGL-GLU-devel
22 BuildRequires: SDL-devel >= 1.2.0
23 BuildRequires: SDL_net-devel
24 BuildRequires: SDL_sound-devel
25 %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
26 BuildRequires: autoconf
27 BuildRequires: automake
28 BuildRequires: libpng-devel
29 BuildRequires: libstdc++-devel
30 %{?debug:BuildRequires: ncurses-devel}
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define specflags -fmerge-all-constants -ffast-math
36 DOSBox emulates a 286/386 realmode/protected mode CPU, Directory
37 FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
38 SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility
41 You can "re-live" the good old days with the help of DOSBox, it can
42 run plenty of the old classics that don't run on your new computer!
44 %description -l pl.UTF-8
45 DOSBox emuluje tryb rzeczywisty/chroniony procesora 286/386, system
46 plików z katalogami, pamięć XMS/EMS, karty graficzne
47 Tandy/Hercules/CGA/EGA/VGA/VESA oraz karty muzyczne
48 SoundBlaster/Gravis Ultra Sound w celu zapewnienia znakomitej
49 kompatybilności ze starymi grami.
51 Stare wspomnienia odżyją z pomocą DOSBoksa. Dzięki niemu można
52 uruchomić mnóstwo klasyków, które nie odpalają się na nowych
60 # kill AM_PATH_SDL and AM_PATH_ALSA, leave only AH_{TOP,BOTTOM}
61 tail -n +306 acinclude.m4 > acinclude.m4.tmp
62 mv -f acinclude.m4.tmp acinclude.m4
64 echo 'AC_DEFUN([AM_PATH_ALSA], [$3])' >> acinclude.m4
72 %{?debug:--enable-debug}
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
81 DESTDIR=$RPM_BUILD_ROOT
83 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
84 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
88 rm -rf $RPM_BUILD_ROOT
91 %defattr(644,root,root,755)
92 %doc AUTHORS NEWS README THANKS dosbox.conf
93 %attr(755,root,root) %{_bindir}/*
94 %{_mandir}/man1/dosbox.1.gz
95 %{_desktopdir}/*.desktop
96 %{_pixmapsdir}/dosbox.png