]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without alsa # without ALSA support for MIDI | |
4 | # | |
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 | |
7 | Name: dosbox | |
8 | Version: 0.73 | |
9 | Release: 1 | |
10 | License: GPL v2+ | |
11 | Group: Applications/Emulators | |
12 | Source0: http://dl.sourceforge.net/dosbox/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: 0823a11242db711ac3d6ebfff6aff572 | |
14 | Source1: %{name}.desktop | |
15 | Source2: %{name}.png | |
16 | Source3: %{name}.conf | |
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) | |
31 | ||
32 | %define specflags -fmerge-all-constants -ffast-math | |
33 | ||
34 | %description | |
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 | |
38 | with older games... | |
39 | ||
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! | |
42 | ||
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. | |
49 | ||
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 | |
52 | komputerach. | |
53 | ||
54 | %prep | |
55 | %setup -q | |
56 | ||
57 | %build | |
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 | |
61 | %if !%{with alsa} | |
62 | echo 'AC_DEFUN([AM_PATH_ALSA], [$3])' >> acinclude.m4 | |
63 | %endif | |
64 | %{__aclocal} | |
65 | %{__autoconf} | |
66 | %{__autoheader} | |
67 | %{__automake} | |
68 | %configure \ | |
69 | --enable-shots \ | |
70 | %{?debug:--enable-debug} | |
71 | ||
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} | |
77 | ||
78 | %{__make} install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
80 | ||
81 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
82 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} | |
83 | install %{SOURCE3} . | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %doc AUTHORS NEWS README THANKS dosbox.conf | |
91 | %attr(755,root,root) %{_bindir}/* | |
92 | %{_mandir}/man1/* | |
93 | %{_desktopdir}/*.desktop | |
94 | %{_pixmapsdir}/* |