2 # - more subpackages (plugins)
5 Summary: Portable x86 PC Emulator
6 Summary(pl): Przeno¶ny emulator x86 PC
11 Group: Applications/Emulators
12 Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.%{pre}.tar.gz
13 # Source0-md5: d9cf6b0373c40e636368f73859544269
14 Patch0: %{name}-ncurses.patch
15 Patch1: %{name}-wxGTK.patch
16 URL: http://bochs.sourceforge.net/
17 BuildRequires: SDL-devel
18 BuildRequires: XFree86-devel
19 BuildRequires: autoconf
20 BuildRequires: docbook-dtd41-sgml
21 BuildRequires: libstdc++-devel
22 BuildRequires: ncurses-devel
23 BuildRequires: svgalib-devel
24 BuildRequires: wxGTK-devel
25 BuildRequires: zlib-devel
26 Requires: XFree86-fonts
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Bochs is a portable x86 PC emulation software package that emulates
31 enough of the x86 CPU, related AT hardware, and BIOS to run DOS,
32 Windows '95, Minix 2.0, and other OS's, all on your workstation.
35 Bochs jest przeno¶nym emulatorem x86 PC emuluj±cym wystarczaj±co du¿o
36 architektury procesora x86 oraz hardware'u AT i BIOS-u ¿eby uruchomiæ
37 DOS-a, Windows 95, Minix 2.0 i inne systemu operacyjne, wszystkie na
41 %setup -q -n %{name}-%{version}.%{pre}
47 # --enable-x86-64 (not supported together with --enable-sep)
48 # --enable-debugger --enable-iodebug --enable-x86-debugger (slowdowns emulation)
49 # --enable-apic (no need to specify, configure will choose best depending on nr cpus)
51 --enable-config-interface \
54 --enable-cpu-level=6 \
55 --enable-compressed-hd \
61 --enable-guest2host-tlb \
62 --enable-repeat-speedups \
65 --enable-fast-function-calls \
67 --enable-global-pages \
68 --enable-host-specific-asms \
69 --enable-ignore-bad-msr \
71 --enable-all-optimizations \
73 --enable-instrumentation \
95 rm -rf $RPM_BUILD_ROOT
98 DESTDIR=$RPM_BUILD_ROOT \
99 docdir=%{_docdir}/%{name}-%{version}
101 mv -f $RPM_BUILD_ROOT%{_datadir}/bochs/VGABIOS*{LICENSE,README,latest} \
102 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
104 cp -f TESTFORM.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
106 rm -f $RPM_BUILD_ROOT%{_datadir}/bochs/*fonts
107 rm -f $RPM_BUILD_ROOT%{_datadir}/bochs/*pcf
109 find $RPM_BUILD_ROOT -type d -name CVS | xargs rm -rf
112 rm -rf $RPM_BUILD_ROOT
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_bindir}/*
117 %dir %{_libdir}/%{name}
118 %dir %{_libdir}/%{name}/plugins
119 %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so.*
120 %{_libdir}/%{name}/plugins/*.la
121 %dir %{_datadir}/%{name}
122 %dir %{_datadir}/%{name}/keymaps
123 %attr(755,root,root) %{_datadir}/%{name}/keymaps/convertmap.pl
124 %{_datadir}/%{name}/keymaps/*.map
125 %{_datadir}/%{name}/*BIOS*
127 %{_docdir}/%{name}-%{version}