]>
Commit | Line | Data |
---|---|---|
cb8c4929 | 1 | # TODO: |
3912903f | 2 | # - more subpackages (plugins) |
28971182 | 3 | # |
a47f34bd | 4 | Summary: Portable x86 PC Emulator |
056cb83b | 5 | Summary(pl.UTF-8): Przenośny emulator x86 PC |
a47f34bd | 6 | Name: bochs |
60c9faba JB |
7 | Version: 2.8 |
8 | Release: 1 | |
9 | License: LGPL v2+ | |
a47f34bd | 10 | Group: Applications/Emulators |
60c9faba JB |
11 | Source0: https://downloads.sourceforge.net/bochs/%{name}-%{version}.tar.gz |
12 | # Source0-md5: c65bc348938b5677f86feaef51c43efe | |
13 | Patch0: %{name}-build.patch | |
14 | URL: https://bochs.sourceforge.net/ | |
15 | BuildRequires: SDL2-devel >= 2 | |
16 | BuildRequires: alsa-lib-devel | |
17 | BuildRequires: autoconf >= 2.71 | |
4f52c938 | 18 | BuildRequires: automake |
79bc089f | 19 | BuildRequires: docbook-dtd41-sgml |
60c9faba JB |
20 | BuildRequires: gtk+3-devel >= 3.0 |
21 | BuildRequires: libltdl-devel | |
22 | BuildRequires: libsamplerate-devel | |
47f0ac5c | 23 | BuildRequires: libstdc++-devel |
60c9faba JB |
24 | BuildRequires: libtool |
25 | BuildRequires: libvncserver-devel | |
63df024a | 26 | BuildRequires: ncurses-devel |
560465c4 | 27 | BuildRequires: pkgconfig |
60c9faba JB |
28 | BuildRequires: wxGTK3-unicode-devel |
29 | BuildRequires: xorg-lib-libX11-devel | |
30 | BuildRequires: xorg-lib-libXpm-devel | |
31 | BuildRequires: xorg-lib-libXrandr-devel | |
560465c4 | 32 | #Requires: xorg-font-??? |
a47f34bd | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
60c9faba JB |
35 | # plugins use symbols from executable |
36 | %define skip_post_check_so libbx_.* | |
37 | ||
a47f34bd | 38 | %description |
39 | Bochs is a portable x86 PC emulation software package that emulates | |
40 | enough of the x86 CPU, related AT hardware, and BIOS to run DOS, | |
41 | Windows '95, Minix 2.0, and other OS's, all on your workstation. | |
42 | ||
6b345bcc JR |
43 | %description -l pl.UTF-8 |
44 | Bochs jest przenośnym emulatorem x86 PC emulującym wystarczająco dużo | |
45 | architektury procesora x86 oraz hardware'u AT i BIOS-u żeby uruchomić | |
19437b6d | 46 | DOS-a, Windows 95, Minix 2.0 i inne systemy operacyjne, wszystkie na |
34857763 | 47 | Twoim komputerze. |
a47f34bd | 48 | |
49 | %prep | |
881a94e3 | 50 | %setup -q |
21393ca4 | 51 | %patch0 -p1 |
a47f34bd | 52 | |
53 | %build | |
4f52c938 | 54 | cp -f /usr/share/automake/config.sub . |
60c9faba JB |
55 | %{__libtoolize} |
56 | %{__aclocal} | |
80cb4805 | 57 | %{__autoconf} |
60c9faba | 58 | CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" |
eff64eef | 59 | %configure \ |
60c9faba JB |
60 | WX_CONFIG="wx-gtk3-unicode-config" \ |
61 | --enable-3dnow \ | |
62 | --enable-all-optimizations \ | |
63 | --enable-cdrom \ | |
64 | --enable-clgd54xx \ | |
63df024a | 65 | --enable-cpu-level=6 \ |
60c9faba JB |
66 | --enable-e1000 \ |
67 | --enable-es1370 \ | |
63df024a AM |
68 | %ifarch %{ix86} |
69 | --enable-fast-function-calls \ | |
70 | %endif | |
63df024a | 71 | --enable-fpu \ |
63df024a | 72 | --enable-gameport \ |
60c9faba JB |
73 | --enable-instrumentation \ |
74 | --enable-monitor-mwait \ | |
75 | --enable-ne2000 \ | |
76 | --enable-pci \ | |
77 | --enable-plugins \ | |
78 | --enable-readline \ | |
79 | --enable-repeat-speedups \ | |
80 | --enable-sb16 \ | |
81 | --enable-smp \ | |
82 | --enable-usb \ | |
83 | --enable-usb-ehci \ | |
84 | --enable-usb-xhci \ | |
85 | --enable-voodoo \ | |
86 | --enable-x86-64 \ | |
3912903f | 87 | --with-rfb \ |
60c9faba | 88 | --with-sdl2 \ |
80cb4805 | 89 | --with-term \ |
60c9faba JB |
90 | --with-vncsrv \ |
91 | --with-wx \ | |
92 | --with-x11 | |
75e08ea9 | 93 | |
a47f34bd | 94 | %{__make} |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
cb8c4929 | 99 | %{__make} install \ |
f5ed92ec JB |
100 | DESTDIR=$RPM_BUILD_ROOT \ |
101 | docdir=%{_docdir}/%{name}-%{version} | |
cb8c4929 | 102 | |
60c9faba JB |
103 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/bochs/VGABIOS*-{LICENSE,README} \ |
104 | $RPM_BUILD_ROOT%{_datadir}/bochs/Sea*BIOS-README \ | |
c9e015c3 | 105 | $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
4a222e90 | 106 | |
60c9faba | 107 | cp -pf TESTFORM.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
4a222e90 | 108 | |
60c9faba JB |
109 | # lt_dlopened by libbx_*.so names |
110 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.la | |
a47f34bd | 111 | |
112 | %clean | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | %files | |
116 | %defattr(644,root,root,755) | |
60c9faba JB |
117 | %attr(755,root,root) %{_bindir}/bochs |
118 | %attr(755,root,root) %{_bindir}/bxhub | |
119 | %attr(755,root,root) %{_bindir}/bximage | |
f5ed92ec JB |
120 | %dir %{_libdir}/%{name} |
121 | %dir %{_libdir}/%{name}/plugins | |
60c9faba JB |
122 | # -- gui plugins |
123 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_rfb_gui.so* | |
124 | # R: SDL2 | |
125 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_sdl2_gui.so* | |
126 | # R: ncurses | |
127 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_term_gui.so* | |
128 | # R: libvncserver | |
129 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_vncsrv_gui.so* | |
130 | # R: wxGTK3-unicode | |
131 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_wx_gui.so* | |
132 | # R: libX11 libXpm libXrandr | |
133 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_x_gui.so* | |
134 | # -- img plugins | |
135 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_vbox_img.so* | |
136 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_vmware3_img.so* | |
137 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_vmware4_img.so* | |
138 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_vpc_img.so* | |
139 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_vvfat_img.so* | |
140 | # -- eth plugins | |
141 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_eth_linux.so* | |
142 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_eth_null.so* | |
143 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_eth_slirp.so* | |
144 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_eth_socket.so* | |
145 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_eth_tuntap.so* | |
146 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_eth_vde.so* | |
147 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_eth_vnet.so* | |
148 | # -- sound plugins | |
149 | # R: alsa-lib | |
150 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_soundalsa.so* | |
151 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_sounddummy.so* | |
152 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_soundfile.so* | |
153 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_soundoss.so* | |
154 | # R: SDL2 | |
155 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_soundsdl.so* | |
156 | # -- generic plugins | |
157 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_acpi.so* | |
158 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_biosdev.so* | |
159 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_cmos.so* | |
160 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_dma.so* | |
161 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_e1000.so* | |
162 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_es1370.so* | |
163 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_extfpuirq.so* | |
164 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_floppy.so* | |
165 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_gameport.so* | |
166 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_harddrv.so* | |
167 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_hpet.so* | |
168 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_ioapic.so* | |
169 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_keyboard.so* | |
170 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_ne2k.so* | |
171 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_parallel.so* | |
172 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_pci.so* | |
173 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_pci2isa.so* | |
174 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_pci_ide.so* | |
175 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_pic.so* | |
176 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_pit.so* | |
177 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_sb16.so* | |
178 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_serial.so* | |
179 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_speaker.so* | |
180 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_svga_cirrus.so* | |
181 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_textconfig.so* | |
182 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_unmapped.so* | |
183 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_usb_ehci.so* | |
184 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_usb_floppy.so* | |
185 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_usb_hid.so* | |
186 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_usb_hub.so* | |
187 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_usb_msd.so* | |
188 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_usb_printer.so* | |
189 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_usb_uhci.so* | |
190 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_usb_xhci.so* | |
191 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_vga.so* | |
192 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libbx_voodoo.so* | |
f5ed92ec | 193 | %dir %{_datadir}/%{name} |
60c9faba JB |
194 | %{_datadir}/%{name}/keymaps |
195 | %{_datadir}/%{name}/BIOS-* | |
196 | %{_datadir}/%{name}/VGABIOS-* | |
197 | %{_datadir}/%{name}/bios.bin* | |
198 | %{_datadir}/%{name}/vgabios-*.bin* | |
199 | %{_mandir}/man1/bochs.1* | |
200 | %{_mandir}/man1/bochs-dlx.1* | |
201 | %{_mandir}/man1/bximage.1* | |
202 | %{_mandir}/man5/bochsrc.5* | |
cb8c4929 | 203 | %{_docdir}/%{name}-%{version} |