#
# Conditional build:
# _without_alsa - without ALSA
+# _without_svga - without SVGAlib support
#
Summary: 3D game engine based on id Software's Quake engine
Summary(pl): Silnik gry 3D bazuj±cy na silniku Quake id Software
Patch1: %{name}-ac_fix.patch
Patch2: %{name}-acconfig.h.patch
Patch3: %{name}-ah_fixes.patch
+Patch4: %{name}-compat.patch
Icon: quakeforge.xpm
URL: http://www.quakeforge.net/
BuildRequires: SDL-devel
BuildRequires: OpenGL-devel
BuildRequires: autoconf
BuildRequires: automake
-%ifnarch sparc
%{!?_without_alsa:BuildRequires: alsa-lib-devel}
-%endif
-BuildRequires: svgalib-devel
+BuildRequires: libtool
+%{!?_without_svgalib:BuildRequires: svgalib-devel}
BuildRequires: texinfo
BuildRequires: zlib-devel
Requires: OpenGL
%define _noautoreqdep libGL.so.1 libGLU.so.1
+%ifarch sparc
+%define _without_alsa 1
+%endif
+
+%ifnarch %{ix86}
+%define _without_svga 1
+%endif
+
%description
3D game engine server based on id Software's Quake engine.
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%build
+%{__libtoolize}
autoheader
aclocal
%{__autoconf}
--with-global-cfg=%{_sysconfdir}/%{name}.conf \
--with-server \
--with-newstyle \
- %{?_without_alsa:--disable-alsa}
+ %{?_without_alsa:--disable-alsa} \
+ %{?_without_svga:--without-svga}
%{__make}
%{_infodir}/*info*
%{_mandir}/man*/*
-%files svgalib
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/qf-client-svga
+%{?!_without_svga:%files svgalib}
+%{?!_without_svga:%defattr(644,root,root,755)}
+%{?!_without_svga:%attr(755,root,root) %{_bindir}/qf-client-svga}
%files sdl
%defattr(644,root,root,755)