]> 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.UTF-8):      Emulator x86/DOS z dźwiękiem/grafiką głównie dla gier
7 Name:           dosbox
8 Version:        0.74
9 Release:        6
10 License:        GPL v2+
11 Group:          Applications/Emulators
12 Source0:        http://downloads.sourceforge.net/dosbox/%{name}-%{version}.tar.gz
13 # Source0-md5:  b9b240fa87104421962d14eee71351e8
14 Source1:        %{name}.desktop
15 Source2:        %{name}.png
16 Source3:        %{name}.conf
17 Patch0:         %{name}-gcc46.patch
18 URL:            http://dosbox.sourceforge.net/
19 BuildRequires:  OpenGL-devel
20 # because of SDL_opengl deps
21 BuildRequires:  OpenGL-GLU-devel
22 BuildRequires:  SDL-devel >= 1.2.0
23 BuildRequires:  SDL_net-devel
24 BuildRequires:  SDL_sound-devel
25 %{?with_alsa:BuildRequires:     alsa-lib-devel >= 0.9.0}
26 BuildRequires:  autoconf
27 BuildRequires:  automake
28 BuildRequires:  libpng-devel
29 BuildRequires:  libstdc++-devel
30 %{?debug:BuildRequires: ncurses-devel}
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %define         specflags       -fmerge-all-constants -ffast-math
34
35 %description
36 DOSBox emulates a 286/386 realmode/protected mode CPU, Directory
37 FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
38 SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility
39 with older games...
40
41 You can "re-live" the good old days with the help of DOSBox, it can
42 run plenty of the old classics that don't run on your new computer!
43
44 %description -l pl.UTF-8
45 DOSBox emuluje tryb rzeczywisty/chroniony procesora 286/386, system
46 plików z katalogami, pamięć XMS/EMS, karty graficzne
47 Tandy/Hercules/CGA/EGA/VGA/VESA oraz karty muzyczne
48 SoundBlaster/Gravis Ultra Sound w celu zapewnienia znakomitej
49 kompatybilności ze starymi grami.
50
51 Stare wspomnienia odżyją z pomocą DOSBoksa. Dzięki niemu można
52 uruchomić mnóstwo klasyków, które nie odpalają się na nowych
53 komputerach.
54
55 %prep
56 %setup -q
57 %patch0 -p1
58
59 %build
60 # kill AM_PATH_SDL and AM_PATH_ALSA, leave only AH_{TOP,BOTTOM}
61 tail -n +306 acinclude.m4 > acinclude.m4.tmp
62 mv -f acinclude.m4.tmp acinclude.m4
63 %if !%{with alsa}
64 echo 'AC_DEFUN([AM_PATH_ALSA], [$3])' >> acinclude.m4
65 %endif
66 %{__aclocal}
67 %{__autoconf}
68 %{__autoheader}
69 %{__automake}
70 %configure \
71         --enable-shots \
72         %{?debug:--enable-debug}
73
74 %{__make}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
84 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
85 install %{SOURCE3} .
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %files
91 %defattr(644,root,root,755)
92 %doc AUTHORS NEWS README THANKS dosbox.conf
93 %attr(755,root,root) %{_bindir}/*
94 %{_mandir}/man1/dosbox.1.gz
95 %{_desktopdir}/*.desktop
96 %{_pixmapsdir}/dosbox.png
This page took 0.044803 seconds and 3 git commands to generate.