2 # - more subpackages (plugins)
5 %bcond_without svga # without svgalib support
7 Summary: Portable x86 PC Emulator
8 Summary(pl): Przeno¶ny emulator x86 PC
13 Group: Applications/Emulators
14 Source0: http://dl.sourceforge.net/bochs/%{name}-%{version}.tar.gz
15 # Source0-md5: 961482eb78b55fe3e0e0639e34b4c2c1
16 URL: http://bochs.sourceforge.net/
17 BuildRequires: SDL-devel
18 BuildRequires: XFree86-devel
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: docbook-dtd41-sgml
22 BuildRequires: gtk+2-devel
23 BuildRequires: libstdc++-devel
24 BuildRequires: ncurses-devel
25 %{?with_svga:BuildRequires: svgalib-devel}
26 BuildRequires: wxGTK2-devel
27 BuildRequires: zlib-devel
28 BuildRequires: pkgconfig
29 Requires: XFree86-fonts
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 Bochs is a portable x86 PC emulation software package that emulates
34 enough of the x86 CPU, related AT hardware, and BIOS to run DOS,
35 Windows '95, Minix 2.0, and other OS's, all on your workstation.
38 Bochs jest przeno¶nym emulatorem x86 PC emuluj±cym wystarczaj±co du¿o
39 architektury procesora x86 oraz hardware'u AT i BIOS-u ¿eby uruchomiæ
40 DOS-a, Windows 95, Minix 2.0 i inne systemy operacyjne, wszystkie na
47 cp -f /usr/share/automake/config.sub .
49 CXXFLAGS="%{rpmcflags} -I/usr/include/ncurses `pkg-config gdk-2.0 --cflags`"
50 LDFLAGS=`pkg-config gdk-2.0 --libs`
51 export CXXFLAGS LDFLAGS
52 # --enable-x86-64 (not supported together with --enable-sep)
53 # --enable-debugger --enable-iodebug --enable-x86-debugger (slowdowns emulation)
54 # --enable-apic (no need to specify, configure will choose best depending on nr cpus)
57 [ -x /usr/bin/wx-gtk2-ansi-config ] && WXGTK2CONFIG=wx-gtk2-ansi-config
58 [ -x /usr/bin/wxgtk-2.4-config ] && WXGTK2CONFIG=wxgtk-2.4-config
60 [ "x$WXGTK2CONFIG" == "x" ] && echo "Can't find wxGTK2 config file!" && exit 1
63 WX_CONFIG=$WXGTK2CONFIG \
66 --enable-cpu-level=6 \
67 --enable-compressed-hd \
73 --enable-guest2host-tlb \
74 --enable-repeat-speedups \
77 --enable-fast-function-calls \
79 --enable-global-pages \
80 --enable-host-specific-asms \
81 --enable-ignore-bad-msr \
83 --enable-all-optimizations \
85 --enable-instrumentation \
99 %{?with_svga:-with-svga} \
107 rm -rf $RPM_BUILD_ROOT
110 DESTDIR=$RPM_BUILD_ROOT \
111 docdir=%{_docdir}/%{name}-%{version}
113 mv -f $RPM_BUILD_ROOT%{_datadir}/bochs/VGABIOS*{LICENSE,README} \
114 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
116 cp -f TESTFORM.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
118 #rm -f $RPM_BUILD_ROOT%{_datadir}/bochs/*fonts
119 #rm -f $RPM_BUILD_ROOT%{_datadir}/bochs/*pcf
121 #find $RPM_BUILD_ROOT -type d -name CVS | xargs rm -rf
124 rm -rf $RPM_BUILD_ROOT
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_bindir}/*
129 %dir %{_libdir}/%{name}
130 %dir %{_libdir}/%{name}/plugins
131 %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so.*
132 %{_libdir}/%{name}/plugins/*.la
133 %dir %{_datadir}/%{name}
134 %dir %{_datadir}/%{name}/keymaps
135 %{_datadir}/%{name}/keymaps/*.map
136 %{_datadir}/%{name}/*BIOS*
138 %{_docdir}/%{name}-%{version}