]> git.pld-linux.org Git - packages/dosbox.git/blob - dosbox.spec
- BR: libstdc++-devel
[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.63
9 Release:        1
10 License:        GPL
11 Group:          Applications/Emulators
12 Source0:        http://dl.sourceforge.net/dosbox/%{name}-%{version}.tar.gz
13 # Source0-md5:  629413e41224ae9cdd115fdafd55cbdc
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 BuildRequires:  libstdc++-devel
26 %{?debug:BuildRequires: ncurses-devel}
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         specflags       -fmerge-all-constants -ffast-math
30
31 %description
32 DOSBox emulates a 286/386 realmode/protected mode CPU, Directory
33 FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
34 SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility
35 with older games...
36
37 You can "re-live" the good old days with the help of DOSBox, it can
38 run plenty of the old classics that don't run on your new computer!
39
40 %description -l pl
41 DOSBox emuluje tryb rzeczywisty/chroniony procesora 286/386, system
42 plików z katalogami, pamiêæ XMS/EMS, karty graficzne
43 Tandy/Hercules/CGA/EGA/VGA/VESA oraz karty muzyczne
44 SoundBlaster/Gravis Ultra Sound w celu zapewnienia znakomitej
45 kompatybilno¶ci ze starymi grami.
46
47 Stare wspomnienia od¿yj± z pomoc± DOSBoksa. Dziêki niemu mo¿na
48 uruchomiæ mnóstwo klasyków, które nie odpalaj± siê na nowych
49 komputerach.
50
51 %prep
52 %setup -q
53 %patch0 -p1
54
55 %build
56 # kill AM_PATH_SDL and AM_PATH_ALSA, leave only AH_{TOP,BOTTOM}
57 tail -n +306 acinclude.m4 > acinclude.m4.tmp
58 mv -f acinclude.m4.tmp acinclude.m4
59 %if !%{with alsa}
60 echo 'AC_DEFUN([AM_PATH_ALSA], [$3])' >> acinclude.m4
61 %endif
62 %{__aclocal}
63 %{__autoconf}
64 %{__autoheader}
65 %{__automake}
66 %configure \
67         --enable-shots \
68         %{?debug:--enable-debug}
69
70 %{__make}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
75
76 %{__make} install \
77         DESTDIR=$RPM_BUILD_ROOT
78
79 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
80 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
81 install %{SOURCE3} .
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %files
87 %defattr(644,root,root,755)
88 %doc AUTHORS NEWS README THANKS dosbox.conf
89 %attr(755,root,root) %{_bindir}/*
90 %{_mandir}/man1/*
91 %{_desktopdir}/*
92 %{_pixmapsdir}/*
This page took 0.047168 seconds and 3 git commands to generate.