]>
Commit | Line | Data |
---|---|---|
d08b350a JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without alsa # without ALSA support for MIDI | |
4 | # | |
12a12710 | 5 | Summary: x86/DOS emulator with sound/graphics primarily for games |
2f8badcc | 6 | Summary(pl.UTF-8): Emulator x86/DOS z dźwiękiem/grafiką głównie dla gier |
12a12710 | 7 | Name: dosbox |
58493561 | 8 | Version: 0.73 |
16ff57a3 | 9 | Release: 1 |
607f52bb | 10 | License: GPL v2+ |
12a12710 | 11 | Group: Applications/Emulators |
45dc4d4a | 12 | Source0: http://dl.sourceforge.net/dosbox/%{name}-%{version}.tar.gz |
58493561 | 13 | # Source0-md5: 0823a11242db711ac3d6ebfff6aff572 |
d1a62cda | 14 | Source1: %{name}.desktop |
15 | Source2: %{name}.png | |
16 | Source3: %{name}.conf | |
1c647cf6 | 17 | URL: http://dosbox.sourceforge.net/ |
ee3338e4 JB |
18 | BuildRequires: OpenGL-devel |
19 | # because of SDL_opengl deps | |
20 | BuildRequires: OpenGL-GLU-devel | |
21 | BuildRequires: SDL-devel >= 1.2.0 | |
d08b350a | 22 | BuildRequires: SDL_net-devel |
0868dc72 | 23 | BuildRequires: SDL_sound-devel |
d08b350a JB |
24 | %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0} |
25 | BuildRequires: autoconf | |
26 | BuildRequires: automake | |
12a12710 | 27 | BuildRequires: libpng-devel |
65856a91 | 28 | BuildRequires: libstdc++-devel |
12a12710 | 29 | %{?debug:BuildRequires: ncurses-devel} |
12a12710 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
384ad7cd | 32 | %define specflags -fmerge-all-constants -ffast-math |
c7f436a2 | 33 | |
12a12710 | 34 | %description |
963bb6e4 | 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... | |
12a12710 | 39 | |
5261669d | 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! | |
12a12710 | 42 | |
8371508c | 43 | %description -l pl.UTF-8 |
963bb6e4 | 44 | DOSBox emuluje tryb rzeczywisty/chroniony procesora 286/386, system |
8371508c | 45 | plików z katalogami, pamięć XMS/EMS, karty graficzne |
963bb6e4 | 46 | Tandy/Hercules/CGA/EGA/VGA/VESA oraz karty muzyczne |
47 | SoundBlaster/Gravis Ultra Sound w celu zapewnienia znakomitej | |
8371508c | 48 | kompatybilności ze starymi grami. |
12a12710 | 49 | |
8371508c JR |
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 | |
5261669d | 52 | komputerach. |
12a12710 | 53 | |
54 | %prep | |
55 | %setup -q | |
56 | ||
57 | %build | |
d08b350a | 58 | # kill AM_PATH_SDL and AM_PATH_ALSA, leave only AH_{TOP,BOTTOM} |
1272adbe | 59 | tail -n +306 acinclude.m4 > acinclude.m4.tmp |
d08b350a JB |
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} | |
12a12710 | 68 | %configure \ |
69 | --enable-shots \ | |
70 | %{?debug:--enable-debug} | |
71 | ||
72 | %{__make} | |
73 | ||
74 | %install | |
5261669d | 75 | rm -rf $RPM_BUILD_ROOT |
c7f436a2 | 76 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
d1a62cda | 77 | |
cbfc030d PG |
78 | %{__make} install \ |
79 | DESTDIR=$RPM_BUILD_ROOT | |
12a12710 | 80 | |
d1a62cda | 81 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
82 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} | |
c7f436a2 | 83 | install %{SOURCE3} . |
d1a62cda | 84 | |
12a12710 | 85 | %clean |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
c7f436a2 | 90 | %doc AUTHORS NEWS README THANKS dosbox.conf |
12a12710 | 91 | %attr(755,root,root) %{_bindir}/* |
92 | %{_mandir}/man1/* | |
a1bb5f87 | 93 | %{_desktopdir}/*.desktop |
d1a62cda | 94 | %{_pixmapsdir}/* |