]> git.pld-linux.org Git - packages/dosbox.git/blob - dosbox.spec
Categories fix
[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.61
9 Release:        1
10 License:        GPL
11 Group:          Applications/Emulators
12 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
13 # Source0-md5:  dcb549eb2a9e6fe6995b973ef9ac6e9f
14 Source1:        %{name}.desktop
15 Source2:        %{name}.png
16 Source3:        %{name}.conf
17 URL:            http://dosbox.sourceforge.net/
18 BuildRequires:  SDL-devel >= 1.2.0
19 BuildRequires:  SDL_net-devel
20 %{?with_alsa:BuildRequires:     alsa-lib-devel >= 0.9.0}
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 BuildRequires:  libpng-devel
24 %{?debug:BuildRequires: ncurses-devel}
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 DOSBox emulates a 286/386 realmode CPU, Directory FileSystem/XMS/EMS,
29 a SoundBlaster card for excellent sound compatibility with older
30 games...
31
32 You can "re-live" the good old days with the help of DOSBox, it can
33 run plenty of the old classics that don't run on your new computer!
34
35 %description -l pl
36 DOSBox emuluje tryb rzeczywisty procesora 286/386, system plików z
37 katalogami, pamiêæ XMS/EMS oraz kartê SoundBlaster w celu zapewnienia
38 znakomitej kompatybilno¶ci ze starymi grami.
39
40 Stare wspomnienia od¿yj± z pomoc± DOSBoksa. Dziêki niemu mo¿na
41 uruchomiæ mnóstwo klasyków, które nie odpalaj± siê na nowych
42 komputerach.
43
44 %prep
45 %setup -q
46
47 %build
48 # kill AM_PATH_SDL and AM_PATH_ALSA, leave only AH_{TOP,BOTTOM}
49 tail -n +306 acinclude.m4 > acinclude.m4.tmp
50 mv -f acinclude.m4.tmp acinclude.m4
51 %if !%{with alsa}
52 echo 'AC_DEFUN([AM_PATH_ALSA], [$3])' >> acinclude.m4
53 %endif
54 %{__aclocal}
55 %{__autoconf}
56 %{__autoheader}
57 %{__automake}
58 %configure \
59         --enable-shots \
60         %{?debug:--enable-debug}
61
62 %{__make}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_sysconfdir}}
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
72 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
73 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %doc AUTHORS ChangeLog NEWS README THANKS
81 %attr(755,root,root) %{_bindir}/*
82 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dosbox.conf
83 %{_mandir}/man1/*
84 %{_desktopdir}/*
85 %{_pixmapsdir}/*
This page took 0.079823 seconds and 3 git commands to generate.