]> git.pld-linux.org Git - packages/dosbox.git/blob - dosbox.spec
- obsolete
[packages/dosbox.git] / dosbox.spec
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):    Emulator x86/DOS z d¼wiêkiem/grafik± g³ównie dla gier
7 Name:           dosbox
8 Version:        0.65
9 Release:        1
10 License:        GPL
11 Group:          Applications/Emulators
12 Source0:        http://dl.sourceforge.net/dosbox/%{name}-%{version}.tar.gz
13 # Source0-md5:  fef84c292c3aeae747368b9875c1575a
14 Source1:        %{name}.desktop
15 Source2:        %{name}.png
16 Source3:        %{name}.conf
17 URL:            http://dosbox.sourceforge.net/
18 BuildRequires:  SDL_net-devel
19 BuildRequires:  SDL_sound-devel
20 %{?with_alsa:BuildRequires:     alsa-lib-devel >= 0.9.0}
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 BuildRequires:  libpng-devel
24 BuildRequires:  libstdc++-devel
25 %{?debug:BuildRequires: ncurses-devel}
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         specflags       -fmerge-all-constants -ffast-math
29
30 %description
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
34 with older games...
35
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!
38
39 %description -l pl
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.
45
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
48 komputerach.
49
50 %prep
51 %setup -q
52
53 %build
54 # kill AM_PATH_SDL and AM_PATH_ALSA, leave only AH_{TOP,BOTTOM}
55 tail -n +306 acinclude.m4 > acinclude.m4.tmp
56 mv -f acinclude.m4.tmp acinclude.m4
57 %if !%{with alsa}
58 echo 'AC_DEFUN([AM_PATH_ALSA], [$3])' >> acinclude.m4
59 %endif
60 %{__aclocal}
61 %{__autoconf}
62 %{__autoheader}
63 %{__automake}
64 %configure \
65         --enable-shots \
66         %{?debug:--enable-debug}
67
68 %{__make}
69
70 %install
71 rm -rf $RPM_BUILD_ROOT
72 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
73
74 %{__make} install \
75         DESTDIR=$RPM_BUILD_ROOT
76
77 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
78 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
79 install %{SOURCE3} .
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %files
85 %defattr(644,root,root,755)
86 %doc AUTHORS NEWS README THANKS dosbox.conf
87 %attr(755,root,root) %{_bindir}/*
88 %{_mandir}/man1/*
89 %{_desktopdir}/*
90 %{_pixmapsdir}/*
This page took 0.054637 seconds and 3 git commands to generate.