]> git.pld-linux.org Git - packages/dosbox.git/blob - dosbox.spec
- rel 3
[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.62
9 Release:        3
10 License:        GPL
11 Group:          Applications/Emulators
12 Source0:        http://dl.sourceforge.net/dosbox/%{name}-%{version}.tar.gz
13 # Source0-md5:  80b10f438119f9d83b44dcf175493dcb
14 Source1:        %{name}.desktop
15 Source2:        %{name}.png
16 Source3:        %{name}.conf
17 Patch0:         %{name}-hq2x.patch
18 URL:            http://dosbox.sourceforge.net/
19 BuildRequires:  SDL-devel >= 1.2.0
20 BuildRequires:  SDL_net-devel
21 %{?with_alsa:BuildRequires:     alsa-lib-devel >= 0.9.0}
22 BuildRequires:  autoconf
23 BuildRequires:  automake
24 BuildRequires:  libpng-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 %patch0 -p1
53
54 %build
55 # kill AM_PATH_SDL and AM_PATH_ALSA, leave only AH_{TOP,BOTTOM}
56 tail -n +306 acinclude.m4 > acinclude.m4.tmp
57 mv -f acinclude.m4.tmp acinclude.m4
58 %if !%{with alsa}
59 echo 'AC_DEFUN([AM_PATH_ALSA], [$3])' >> acinclude.m4
60 %endif
61 %{__aclocal}
62 %{__autoconf}
63 %{__autoheader}
64 %{__automake}
65 %configure \
66         --enable-shots \
67         %{?debug:--enable-debug}
68
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
74
75 %{__make} install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
79 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
80 install %{SOURCE3} .
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files
86 %defattr(644,root,root,755)
87 %doc AUTHORS NEWS README THANKS dosbox.conf
88 %attr(755,root,root) %{_bindir}/*
89 %{_mandir}/man1/*
90 %{_desktopdir}/*
91 %{_pixmapsdir}/*
This page took 0.056131 seconds and 3 git commands to generate.