# TODO:
# - more subpackages (plugins)
-
-#%define pre pre3
+#
+# Conditional build:
+%bcond_without svga # without svgalib support
+#
Summary: Portable x86 PC Emulator
Summary(pl): Przeno¶ny emulator x86 PC
Name: bochs
Version: 2.1.1
-Release: 1
+Release: 2
License: GPL
Group: Applications/Emulators
Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires: SDL-devel
BuildRequires: XFree86-devel
BuildRequires: autoconf
+BuildRequires: automake
BuildRequires: docbook-dtd41-sgml
+BuildRequires: gtk+-devel
BuildRequires: libstdc++-devel
BuildRequires: ncurses-devel
-BuildRequires: svgalib-devel
+%{?with_svga:BuildRequires: svgalib-devel}
BuildRequires: wxGTK2-devel
BuildRequires: zlib-devel
Requires: XFree86-fonts
%patch0 -p1
%build
+cp -f /usr/share/automake/config.sub .
%{__autoconf}
# --enable-x86-64 (not supported together with --enable-sep)
# --enable-debugger --enable-iodebug --enable-x86-debugger (slowdowns emulation)
--with-wx \
--with-rfb \
--with-sdl \
- --with-svga \
+ %{?with_svga:-with-svga} \
--with-x11 \
--with-term \
--with-rfb