]> git.pld-linux.org Git - packages/bochs.git/blobdiff - bochs.spec
- now we have svgalib on all supported archs
[packages/bochs.git] / bochs.spec
index bc221f27ef484d011462f1ede2f220eae4fe06c6..b34982e1cb9c5d46da1df18001852b8a26b76688 100644 (file)
@@ -1,12 +1,14 @@
 # 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
@@ -16,10 +18,12 @@ URL:                http://bochs.sourceforge.net/
 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
@@ -41,6 +45,7 @@ Twoim komputerze.
 %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)
@@ -83,7 +88,7 @@ Twoim komputerze.
        --with-wx \
        --with-rfb \
        --with-sdl \
-       --with-svga \
+       %{?with_svga:-with-svga} \
        --with-x11 \
        --with-term \
        --with-rfb
This page took 0.142456 seconds and 4 git commands to generate.