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