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