]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # plugins? (probes) | |
3 | # | |
4 | # Conditional build: | |
5 | %bcond_without sdl # SDL UI and audio support | |
6 | %bcond_without opengl # Don't require GL deps | |
7 | %bcond_without ceph # Ceph/RBD support | |
8 | %bcond_without glusterfs # GlusterFS backend | |
9 | %bcond_without rdma # RDMA-based migration support | |
10 | %bcond_without gtk3 # Do not build GTK+ UI | |
11 | %bcond_without vte # VTE support in GTK+ UI | |
12 | %bcond_without spice # SPICE support | |
13 | %bcond_without oss # OSS audio support | |
14 | %bcond_without pulseaudio # PulseAudio audio support | |
15 | %bcond_without xen # Xen backend driver support | |
16 | %bcond_without brlapi # brlapi support | |
17 | %bcond_without smartcard # smartcard-nss support | |
18 | %bcond_without iscsi # iscsi support | |
19 | %bcond_without libnfs # NFS support | |
20 | %bcond_without multipath # Multipath support | |
21 | %bcond_without pmem # libpmem (persistent memory) support | |
22 | %bcond_without seccomp # seccomp support | |
23 | %bcond_without usbredir # usb network redirection support | |
24 | %bcond_without system_seabios # system seabios binary | |
25 | %bcond_without snappy # snappy compression library | |
26 | %bcond_without user_static # build linux-user static packages | |
27 | %bcond_with lttng # lttng-ust trace backend support [needs update] | |
28 | %bcond_without systemtap # SystemTap/dtrace trace backend support | |
29 | %bcond_without virgl # build virgl support | |
30 | %bcond_without xkbcommon # xkbcommon support | |
31 | ||
32 | %if %{without gtk} | |
33 | %undefine with_vte | |
34 | %endif | |
35 | %ifarch x32 | |
36 | %undefine with_xen | |
37 | %endif | |
38 | %ifnarch %{x8664} aarch64 | |
39 | %undefine with_pmem | |
40 | %endif | |
41 | ||
42 | Summary: QEMU CPU Emulator | |
43 | Summary(pl.UTF-8): QEMU - emulator procesora | |
44 | Name: qemu | |
45 | Version: 5.2.0 | |
46 | Release: 7 | |
47 | License: GPL v2, BSD (edk2 firmware files) | |
48 | Group: Applications/Emulators | |
49 | Source0: https://download.qemu.org/%{name}-%{version}.tar.xz | |
50 | # Source0-md5: 179f86928835da857c237b42f4b2df73 | |
51 | # Loads kvm kernel modules at boot | |
52 | Source3: kvm-modules-load.conf | |
53 | # Creates /dev/kvm | |
54 | Source4: 80-kvm.rules | |
55 | # KSM control scripts | |
56 | Source5: ksm.service | |
57 | Source6: ksm.sysconfig | |
58 | Source7: ksmctl.c | |
59 | Source8: ksmtuned.service | |
60 | Source9: ksmtuned | |
61 | Source10: ksmtuned.conf | |
62 | Source11: %{name}-guest-agent.service | |
63 | Source12: 99-%{name}-guest-agent.rules | |
64 | Source13: %{name}-guest-agent.init | |
65 | Source14: %{name}-guest-agent.logrotate | |
66 | Source15: %{name}-pr-helper.service | |
67 | Source16: %{name}-pr-helper.socket | |
68 | Patch0: %{name}-cflags.patch | |
69 | Patch1: %{name}-user-execve.patch | |
70 | Patch2: %{name}-xattr.patch | |
71 | Patch3: libjpeg-boolean.patch | |
72 | Patch4: x32.patch | |
73 | Patch5: binutils-2.36.patch | |
74 | URL: https://www.qemu.org/ | |
75 | %{?with_opengl:BuildRequires: Mesa-libgbm-devel} | |
76 | %{?with_opengl:BuildRequires: OpenGL-GLX-devel} | |
77 | %{?with_opengl:BuildRequires: OpenGL-devel} | |
78 | %{?with_sdl:BuildRequires: SDL2-devel >= 2.0} | |
79 | %{?with_sdl:BuildRequires: SDL2_image-devel >= 2.0} | |
80 | BuildRequires: alsa-lib-devel | |
81 | %{?with_brlapi:BuildRequires: brlapi-devel} | |
82 | BuildRequires: bzip2-devel | |
83 | BuildRequires: capstone-devel >= 3.0.5 | |
84 | %{?with_ceph:BuildRequires: ceph-devel} | |
85 | BuildRequires: curl-devel | |
86 | BuildRequires: cyrus-sasl-devel >= 2 | |
87 | BuildRequires: gettext-tools | |
88 | BuildRequires: glib2-devel >= 1:2.48 | |
89 | # minimal is 3.4 but new features are used up to 6 | |
90 | %{?with_glusterfs:BuildRequires: glusterfs-devel >= 6} | |
91 | BuildRequires: gnutls-devel >= 3.1.18 | |
92 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.22.0} | |
93 | BuildRequires: libaio-devel | |
94 | %{?with_smartcard:BuildRequires: libcacard-devel >= 2.5.1} | |
95 | BuildRequires: libcap-ng-devel | |
96 | BuildRequires: libdrm-devel | |
97 | %{?with_opengl:BuildRequires: libepoxy-devel} | |
98 | BuildRequires: libfdt-devel >= 1.4.2 | |
99 | %{?with_rdma:BuildRequires: libibverbs-devel} | |
100 | %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0} | |
101 | %{?with_rdma:BuildRequires: libibumad-devel} | |
102 | BuildRequires: libjpeg-devel | |
103 | %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3} | |
104 | BuildRequires: libpng-devel | |
105 | %{?with_rdma:BuildRequires: librdmacm-devel} | |
106 | %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.3.0} | |
107 | BuildRequires: libssh-devel >= 0.8 | |
108 | BuildRequires: libslirp-devel >= 4.0.0 | |
109 | # for tests only | |
110 | #BuildRequires: libtasn1-devel | |
111 | BuildRequires: libusb-devel >= 1.0.22 | |
112 | BuildRequires: liburing-devel | |
113 | BuildRequires: libuuid-devel | |
114 | BuildRequires: libxml2-devel >= 2.0 | |
115 | %{?with_lttng:BuildRequires: lttng-ust-devel} | |
116 | BuildRequires: lzfse-devel | |
117 | BuildRequires: lzo-devel >= 2 | |
118 | BuildRequires: meson >= 0.55.0 | |
119 | %{?with_multipath:BuildRequires: multipath-tools-devel} | |
120 | BuildRequires: ncurses-devel | |
121 | # also libgcrypt-devel >= 1.5.0 possible, but gnutls already pulls nettle | |
122 | BuildRequires: nettle-devel >= 2.7.1 | |
123 | BuildRequires: ninja | |
124 | %{?with_smartcard:BuildRequires: nss-devel >= 1:3.12.8} | |
125 | BuildRequires: numactl-devel | |
126 | BuildRequires: pam-devel | |
127 | BuildRequires: perl-Encode | |
128 | BuildRequires: perl-tools-pod | |
129 | BuildRequires: pixman-devel >= 0.21.8 | |
130 | BuildRequires: pkgconfig | |
131 | %{?with_pmem:BuildRequires: pmdk-devel} | |
132 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel} | |
133 | BuildRequires: python3 >= 1:3.5 | |
134 | BuildRequires: rpmbuild(macros) >= 1.644 | |
135 | %{?with_system_seabios:BuildRequires: seabios} | |
136 | BuildRequires: sed >= 4.0 | |
137 | %{?with_snappy:BuildRequires: snappy-devel} | |
138 | BuildRequires: sphinx-pdg | |
139 | %if %{with spice} | |
140 | BuildRequires: spice-protocol >= 0.12.3 | |
141 | BuildRequires: spice-server-devel >= 0.12.5 | |
142 | %endif | |
143 | %{?with_systemtap:BuildRequires: systemtap-sdt-devel} | |
144 | BuildRequires: tar >= 1:1.22 | |
145 | BuildRequires: texi2html | |
146 | BuildRequires: texinfo | |
147 | %{?with_multipath:BuildRequires: udev-devel} | |
148 | %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6} | |
149 | %{?with_lttng:BuildRequires: userspace-rcu-devel} | |
150 | BuildRequires: vde2-devel | |
151 | BuildRequires: which | |
152 | %{?with_virgl:BuildRequires: virglrenderer-devel} | |
153 | %{?with_vte:BuildRequires: vte-devel >= 0.32.0} | |
154 | # xencontrol xenstore xenguest xenforeignmemory xengnttab xenevtchn xendevicemodel; xentoolcore for xen 4.10+ | |
155 | # min version is 4.2, more features up to 4.10 | |
156 | %{?with_xen:BuildRequires: xen-devel >= 4.10} | |
157 | BuildRequires: xfsprogs-devel | |
158 | %if %{with xkbcommon} | |
159 | BuildRequires: xkeyboard-config | |
160 | BuildRequires: xorg-lib-libxkbcommon-devel | |
161 | %endif | |
162 | BuildRequires: xorg-lib-libX11-devel | |
163 | BuildRequires: xz | |
164 | BuildRequires: zlib-devel | |
165 | BuildRequires: zstd-devel >= 1.4.0 | |
166 | %if %{with user_static} | |
167 | BuildRequires: glib2-static >= 1:2.48 | |
168 | BuildRequires: glibc-static | |
169 | BuildRequires: pcre-static | |
170 | BuildRequires: zlib-static | |
171 | %endif | |
172 | Requires: %{name}-img = %{version}-%{release} | |
173 | Requires: %{name}-system-aarch64 = %{version}-%{release} | |
174 | Requires: %{name}-system-alpha = %{version}-%{release} | |
175 | Requires: %{name}-system-arm = %{version}-%{release} | |
176 | Requires: %{name}-system-avr = %{version}-%{release} | |
177 | Requires: %{name}-system-cris = %{version}-%{release} | |
178 | Requires: %{name}-system-hppa = %{version}-%{release} | |
179 | Requires: %{name}-system-m68k = %{version}-%{release} | |
180 | Requires: %{name}-system-microblaze = %{version}-%{release} | |
181 | Requires: %{name}-system-mips = %{version}-%{release} | |
182 | Requires: %{name}-system-moxie = %{version}-%{release} | |
183 | Requires: %{name}-system-nios2 = %{version}-%{release} | |
184 | Requires: %{name}-system-or1k = %{version}-%{release} | |
185 | Requires: %{name}-system-ppc = %{version}-%{release} | |
186 | Requires: %{name}-system-riscv32 = %{version}-%{release} | |
187 | Requires: %{name}-system-riscv64 = %{version}-%{release} | |
188 | Requires: %{name}-system-rx = %{version}-%{release} | |
189 | Requires: %{name}-system-s390x = %{version}-%{release} | |
190 | Requires: %{name}-system-sh4 = %{version}-%{release} | |
191 | Requires: %{name}-system-sparc = %{version}-%{release} | |
192 | Requires: %{name}-system-tricore = %{version}-%{release} | |
193 | Requires: %{name}-system-x86 = %{version}-%{release} | |
194 | Requires: %{name}-system-xtensa = %{version}-%{release} | |
195 | Requires: %{name}-user = %{version}-%{release} | |
196 | Obsoletes: qemu-kvm < 2 | |
197 | ExcludeArch: i386 | |
198 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
199 | ||
200 | %define systempkg_req \ | |
201 | Requires: capstone >= 3.0.5 \ | |
202 | %{?with_smartcard:Requires: libcacard >= 2.5.1} \ | |
203 | Requires: libfdt >= 1.4.2 \ | |
204 | %if %{with seccomp} \ | |
205 | Requires: libseccomp >= 2.3.0 \ | |
206 | %endif \ | |
207 | Requires: libslirp >= 4.0.0 \ | |
208 | Requires: libusb >= 1.0.22 \ | |
209 | Requires: pixman >= 0.21.8 \ | |
210 | %if %{with spice} \ | |
211 | Requires: spice-server-libs >= 0.12.5 \ | |
212 | %endif \ | |
213 | %if %{with usbredir} \ | |
214 | Requires: usbredir >= 0.6 \ | |
215 | %endif \ | |
216 | Requires: zstd >= 1.4.0 | |
217 | ||
218 | # don't strip/chrpath anything in there; these are boot images, roms etc | |
219 | %define _noautostrip .*%{_datadir}/qemu/.* | |
220 | %define _noautochrpath .*%{_datadir}/qemu/.* | |
221 | ||
222 | %description | |
223 | QEMU is a FAST! processor emulator. By using dynamic translation it | |
224 | achieves a reasonnable speed while being easy to port on new host | |
225 | CPUs. QEMU has two operating modes: | |
226 | ||
227 | - User mode emulation. In this mode, QEMU can launch Linux processes | |
228 | compiled for one CPU on another CPU. Linux system calls are converted | |
229 | because of endianness and 32/64 bit mismatches. Wine (Windows | |
230 | emulation) and DOSEMU (DOS emulation) are the main targets for QEMU. | |
231 | ||
232 | - Full system emulation. In this mode, QEMU emulates a full system, | |
233 | including a processor and various peripherials. It can also be used to | |
234 | provide virtual hosting of several virtual PC on a single server. | |
235 | ||
236 | %description -l pl.UTF-8 | |
237 | QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego | |
238 | tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania, | |
239 | aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy: | |
240 | ||
241 | - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać | |
242 | procesy linuksowe skompilowane dla jednego procesora na innym | |
243 | procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na | |
244 | niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru | |
245 | słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne | |
246 | cele QEMU. | |
247 | ||
248 | - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system, | |
249 | włączając w to procesor i różne urządzenia peryferyjne. Może być także | |
250 | używane do wirtualnego hostowania kilku wirtualnych pecetów na | |
251 | pojedynczym serwerze. | |
252 | ||
253 | %package common | |
254 | Summary: QEMU common files needed by all QEMU targets | |
255 | Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU | |
256 | Group: Applications/Emulators | |
257 | Requires(post,preun,postun): systemd-units >= 38 | |
258 | Requires(postun): /usr/sbin/groupdel | |
259 | Requires(postun): /usr/sbin/userdel | |
260 | Requires(pre): /bin/id | |
261 | Requires(pre): /usr/bin/getgid | |
262 | Requires(pre): /usr/sbin/groupadd | |
263 | Requires(pre): /usr/sbin/useradd | |
264 | Requires: glib2 >= 1:2.48 | |
265 | Requires: gnutls-libs >= 3.1.18 | |
266 | %{?with_gtk3:Requires: gtk+3 >= 3.22.0} | |
267 | Requires: nettle >= 2.7.1 | |
268 | Requires: systemd-units >= 38 | |
269 | %{?with_vte:Requires: vte >= 0.32.0} | |
270 | Provides: group(qemu) | |
271 | Provides: user(qemu) | |
272 | Obsoletes: qemu-kvm-common < 2 | |
273 | Obsoletes: qemu-module-block-archipelago < 2.9.0 | |
274 | Conflicts: qemu < 1.0-2 | |
275 | ||
276 | %description common | |
277 | QEMU is a generic and open source processor emulator which achieves a | |
278 | good emulation speed by using dynamic translation. | |
279 | ||
280 | This package provides the common files needed by all QEMU targets. | |
281 | ||
282 | %description common -l pl.UTF-8 | |
283 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
284 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
285 | ||
286 | Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie | |
287 | środowiska QEMU. | |
288 | ||
289 | %package img | |
290 | Summary: QEMU command line tool for manipulating disk images | |
291 | Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków | |
292 | Group: Applications/Emulators | |
293 | Obsoletes: qemu-kvm-img < 2 | |
294 | Conflicts: qemu < 1.0-2 | |
295 | ||
296 | %description img | |
297 | This package provides a command line tool for manipulating disk | |
298 | images. | |
299 | ||
300 | %description img -l pl.UTF-8 | |
301 | Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji | |
302 | na obrazach dysków. | |
303 | ||
304 | %package user | |
305 | Summary: QEMU user mode emulation of qemu targets | |
306 | Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu | |
307 | Group: Applications/Emulators | |
308 | Requires: %{name}-common = %{version}-%{release} | |
309 | Requires(post,postun): systemd-units >= 38 | |
310 | Requires: systemd-units >= 38 | |
311 | Obsoletes: qemu-kvm-user < 2 | |
312 | ||
313 | %description user | |
314 | QEMU is a generic and open source processor emulator which achieves a | |
315 | good emulation speed by using dynamic translation. | |
316 | ||
317 | This package provides the user mode emulation of QEMU targets. | |
318 | ||
319 | %description user -l pl.UTF-8 | |
320 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
321 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
322 | ||
323 | Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU. | |
324 | ||
325 | %package user-static | |
326 | Summary: QEMU user mode emulation of qemu targets static build | |
327 | Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu - wersja statyczna | |
328 | Group: Applications/Emulators | |
329 | Requires(post,postun): systemd-units >= 38 | |
330 | Requires: systemd-units >= 38 | |
331 | ||
332 | %description user-static | |
333 | QEMU is a generic and open source processor emulator which achieves a | |
334 | good emulation speed by using dynamic translation. | |
335 | ||
336 | This package provides the user mode emulation of qemu targets built as | |
337 | static binaries. | |
338 | ||
339 | %description user-static -l pl.UTF-8 | |
340 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
341 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
342 | ||
343 | Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU w | |
344 | oparciu o programy wykonywalne zbudowane statycznie. | |
345 | ||
346 | %package system-aarch64 | |
347 | Summary: QEMU system emulator for AArch64 | |
348 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64 | |
349 | Group: Applications/Emulators | |
350 | Requires: %{name}-common = %{version}-%{release} | |
351 | %systempkg_req | |
352 | Obsoletes: qemu-kvm-system-aarch64 < 2 | |
353 | ||
354 | %description system-aarch64 | |
355 | QEMU is a generic and open source processor emulator which achieves a | |
356 | good emulation speed by using dynamic translation. | |
357 | ||
358 | This package provides the system emulator with AArch64 (ARM64) CPU. | |
359 | ||
360 | %description system-aarch64 -l pl.UTF-8 | |
361 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
362 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
363 | ||
364 | Ten pakiet zawiera emulator systemu z procesorem AArch64 (ARM64). | |
365 | ||
366 | %package system-alpha | |
367 | Summary: QEMU system emulator for Alpha | |
368 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha | |
369 | Group: Applications/Emulators | |
370 | Requires: %{name}-common = %{version}-%{release} | |
371 | %systempkg_req | |
372 | Obsoletes: qemu-kvm-system-alpha < 2 | |
373 | ||
374 | %description system-alpha | |
375 | QEMU is a generic and open source processor emulator which achieves a | |
376 | good emulation speed by using dynamic translation. | |
377 | ||
378 | This package provides the system emulator with Alpha CPU. | |
379 | ||
380 | %description system-alpha -l pl.UTF-8 | |
381 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
382 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
383 | ||
384 | Ten pakiet zawiera emulator systemu z procesorem Alpha. | |
385 | ||
386 | %package system-arm | |
387 | Summary: QEMU system emulator for 32-bit ARM | |
388 | Summary(pl.UTF-8): QEMU - emulator systemu z 32-bitowym procesorem ARM | |
389 | Group: Applications/Emulators | |
390 | Requires: %{name}-common = %{version}-%{release} | |
391 | %systempkg_req | |
392 | Obsoletes: qemu-kvm-system-arm < 2 | |
393 | ||
394 | %description system-arm | |
395 | QEMU is a generic and open source processor emulator which achieves a | |
396 | good emulation speed by using dynamic translation. | |
397 | ||
398 | This package provides the system emulator for 32-bit ARM. | |
399 | ||
400 | %description system-arm -l pl.UTF-8 | |
401 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
402 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
403 | ||
404 | Ten pakiet zawiera emulator systemu z 32-bitowym procesorem ARM. | |
405 | ||
406 | %package system-avr | |
407 | Summary: QEMU system emulator for AVR | |
408 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AVR | |
409 | Group: Applications/Emulators | |
410 | Requires: %{name}-common = %{version}-%{release} | |
411 | %systempkg_req | |
412 | Obsoletes: qemu-kvm-system-avr < 2 | |
413 | ||
414 | %description system-avr | |
415 | QEMU is a generic and open source processor emulator which achieves a | |
416 | good emulation speed by using dynamic translation. | |
417 | ||
418 | This package provides the system emulator for AVR. | |
419 | ||
420 | %description system-avr -l pl.UTF-8 | |
421 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
422 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
423 | ||
424 | Ten pakiet zawiera emulator systemu z procesorem AVR. | |
425 | ||
426 | %package system-cris | |
427 | Summary: QEMU system emulator for CRIS | |
428 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS | |
429 | Group: Applications/Emulators | |
430 | Requires: %{name}-common = %{version}-%{release} | |
431 | %systempkg_req | |
432 | Obsoletes: qemu-kvm-system-cris < 2 | |
433 | ||
434 | %description system-cris | |
435 | QEMU is a generic and open source processor emulator which achieves a | |
436 | good emulation speed by using dynamic translation. | |
437 | ||
438 | This package provides the system emulator with CRIS CPU. | |
439 | ||
440 | %description system-cris -l pl.UTF-8 | |
441 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
442 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
443 | ||
444 | Ten pakiet zawiera emulator systemu z procesorem CRIS. | |
445 | ||
446 | %package system-hppa | |
447 | Summary: QEMU system emulator for HP/PA | |
448 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem HP/PA | |
449 | Group: Applications/Emulators | |
450 | Requires: %{name}-common = %{version}-%{release} | |
451 | %systempkg_req | |
452 | ||
453 | %description system-hppa | |
454 | QEMU is a generic and open source processor emulator which achieves a | |
455 | good emulation speed by using dynamic translation. | |
456 | ||
457 | This package provides the system emulator with HP/PA (PA-RISC) CPU. | |
458 | ||
459 | %description system-hppa -l pl.UTF-8 | |
460 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
461 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
462 | ||
463 | Ten pakiet zawiera emulator systemu z procesorem HP/PA (PA-RISC). | |
464 | ||
465 | %package system-m68k | |
466 | Summary: QEMU system emulator for m68k | |
467 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k | |
468 | Group: Applications/Emulators | |
469 | Requires: %{name}-common = %{version}-%{release} | |
470 | %systempkg_req | |
471 | Obsoletes: qemu-kvm-system-m68k < 2 | |
472 | ||
473 | %description system-m68k | |
474 | QEMU is a generic and open source processor emulator which achieves a | |
475 | good emulation speed by using dynamic translation. | |
476 | ||
477 | This package provides the system emulator with m68k (Motorola 68xxx) | |
478 | CPU. | |
479 | ||
480 | %description system-m68k -l pl.UTF-8 | |
481 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
482 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
483 | ||
484 | Ten pakiet zawiera emulator systemu z procesorem m68k (Motorola | |
485 | 68xxx). | |
486 | ||
487 | %package system-microblaze | |
488 | Summary: QEMU system emulator for MicroBlaze | |
489 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze | |
490 | Group: Applications/Emulators | |
491 | Requires: %{name}-common = %{version}-%{release} | |
492 | %systempkg_req | |
493 | Obsoletes: qemu-kvm-system-microblaze < 2 | |
494 | ||
495 | %description system-microblaze | |
496 | QEMU is a generic and open source processor emulator which achieves a | |
497 | good emulation speed by using dynamic translation. | |
498 | ||
499 | This package provides the system emulator with MicroBlaze CPU. | |
500 | ||
501 | %description system-microblaze -l pl.UTF-8 | |
502 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
503 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
504 | ||
505 | Ten pakiet zawiera emulator systemu z procesorem MicroBlaze. | |
506 | ||
507 | %package system-mips | |
508 | Summary: QEMU system emulator for MIPS | |
509 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS | |
510 | Group: Applications/Emulators | |
511 | Requires: %{name}-common = %{version}-%{release} | |
512 | %systempkg_req | |
513 | Obsoletes: qemu-kvm-system-mips < 2 | |
514 | ||
515 | %description system-mips | |
516 | QEMU is a generic and open source processor emulator which achieves a | |
517 | good emulation speed by using dynamic translation. | |
518 | ||
519 | This package provides the system emulator with MIPS CPU. | |
520 | ||
521 | %description system-mips -l pl.UTF-8 | |
522 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
523 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
524 | ||
525 | Ten pakiet zawiera emulator systemu z procesorem MIPS. | |
526 | ||
527 | %package system-moxie | |
528 | Summary: QEMU system emulator for Moxie | |
529 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie | |
530 | Group: Applications/Emulators | |
531 | Requires: %{name}-common = %{version}-%{release} | |
532 | %systempkg_req | |
533 | ||
534 | %description system-moxie | |
535 | QEMU is a generic and open source processor emulator which achieves a | |
536 | good emulation speed by using dynamic translation. | |
537 | ||
538 | This package provides the system emulator with Moxie CPU. | |
539 | ||
540 | %description system-moxie -l pl.UTF-8 | |
541 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
542 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
543 | ||
544 | Ten pakiet zawiera emulator systemu z procesorem Moxie. | |
545 | ||
546 | %package system-nios2 | |
547 | Summary: QEMU system emulator for Nios II | |
548 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Nios II | |
549 | Group: Applications/Emulators | |
550 | Requires: %{name}-common = %{version}-%{release} | |
551 | %systempkg_req | |
552 | ||
553 | %description system-nios2 | |
554 | QEMU is a generic and open source processor emulator which achieves a | |
555 | good emulation speed by using dynamic translation. | |
556 | ||
557 | This package provides the system emulator with Nios II CPU. | |
558 | ||
559 | %description system-nios2 -l pl.UTF-8 | |
560 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
561 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
562 | ||
563 | Ten pakiet zawiera emulator systemu z procesorem Nios II. | |
564 | ||
565 | %package system-or1k | |
566 | Summary: QEMU system emulator for OpenRISC | |
567 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC | |
568 | Group: Applications/Emulators | |
569 | Requires: %{name}-common = %{version}-%{release} | |
570 | %systempkg_req | |
571 | Obsoletes: qemu-kvm-system-or1k < 2 | |
572 | Obsoletes: qemu-system-or32 < 2.9.0 | |
573 | ||
574 | %description system-or1k | |
575 | QEMU is a generic and open source processor emulator which achieves a | |
576 | good emulation speed by using dynamic translation. | |
577 | ||
578 | This package provides the system emulator with OpenRISC CPU. | |
579 | ||
580 | %description system-or1k -l pl.UTF-8 | |
581 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
582 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
583 | ||
584 | Ten pakiet zawiera emulator systemu z procesorem OpenRISC. | |
585 | ||
586 | %package system-ppc | |
587 | Summary: QEMU system emulator for PowerPC | |
588 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC | |
589 | Group: Applications/Emulators | |
590 | Requires: %{name}-common = %{version}-%{release} | |
591 | %systempkg_req | |
592 | Obsoletes: qemu-kvm-system-ppc < 2 | |
593 | ||
594 | %description system-ppc | |
595 | QEMU is a generic and open source processor emulator which achieves a | |
596 | good emulation speed by using dynamic translation. | |
597 | ||
598 | This package provides the system emulator with PowerPC CPU. | |
599 | ||
600 | %description system-ppc -l pl.UTF-8 | |
601 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
602 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
603 | ||
604 | Ten pakiet zawiera emulator systemu z procesorem PowerPC. | |
605 | ||
606 | %package system-riscv32 | |
607 | Summary: QEMU system emulator for RISC-V (32 bit) | |
608 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (32 bit) | |
609 | Group: Applications/Emulators | |
610 | Requires: %{name}-common = %{version}-%{release} | |
611 | %systempkg_req | |
612 | ||
613 | %description system-riscv32 | |
614 | QEMU is a generic and open source processor emulator which achieves a | |
615 | good emulation speed by using dynamic translation. | |
616 | ||
617 | This package provides the system emulator with RISC-V (32 bit) CPU. | |
618 | ||
619 | %description system-riscv32 -l pl.UTF-8 | |
620 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
621 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
622 | ||
623 | Ten pakiet zawiera emulator systemu z procesorem RISC-V (32 bit). | |
624 | ||
625 | %package system-riscv64 | |
626 | Summary: QEMU system emulator for RISC-V (64 bit) | |
627 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (64 bitowym) | |
628 | Group: Applications/Emulators | |
629 | Requires: %{name}-common = %{version}-%{release} | |
630 | %systempkg_req | |
631 | ||
632 | %description system-riscv64 | |
633 | QEMU is a generic and open source processor emulator which achieves a | |
634 | good emulation speed by using dynamic translation. | |
635 | ||
636 | This package provides the system emulator with RISC-V (64 bit) CPU. | |
637 | ||
638 | %description system-riscv64 -l pl.UTF-8 | |
639 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
640 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
641 | ||
642 | Ten pakiet zawiera emulator systemu z procesorem RISC-V (64-bitowym). | |
643 | ||
644 | %package system-rx | |
645 | Summary: QEMU system emulator for Renesas RX | |
646 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Renesas RX | |
647 | Group: Applications/Emulators | |
648 | Requires: %{name}-common = %{version}-%{release} | |
649 | %systempkg_req | |
650 | ||
651 | %description system-rx | |
652 | QEMU is a generic and open source processor emulator which achieves a | |
653 | good emulation speed by using dynamic translation. | |
654 | ||
655 | This package provides the system emulator with Renesas RX CPU. | |
656 | ||
657 | %description system-rx -l pl.UTF-8 | |
658 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
659 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
660 | ||
661 | Ten pakiet zawiera emulator systemu z procesorem Renesas RX. | |
662 | ||
663 | %package system-s390x | |
664 | Summary: QEMU system emulator for S390x (IBM Z) | |
665 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390x (IBM Z) | |
666 | Group: Applications/Emulators | |
667 | Requires: %{name}-common = %{version}-%{release} | |
668 | %systempkg_req | |
669 | Obsoletes: qemu-kvm-system-s390x < 2 | |
670 | ||
671 | %description system-s390x | |
672 | QEMU is a generic and open source processor emulator which achieves a | |
673 | good emulation speed by using dynamic translation. | |
674 | ||
675 | This package provides the system emulator with S390x (IBM Z) CPU. | |
676 | ||
677 | %description system-s390x -l pl.UTF-8 | |
678 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
679 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
680 | ||
681 | Ten pakiet zawiera emulator systemu z procesorem S390x (IBM Z). | |
682 | ||
683 | %package system-sh4 | |
684 | Summary: QEMU system emulator for SH4 | |
685 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4 | |
686 | Group: Applications/Emulators | |
687 | Requires: %{name}-common = %{version}-%{release} | |
688 | %systempkg_req | |
689 | Obsoletes: qemu-kvm-system-sh4 < 2 | |
690 | ||
691 | %description system-sh4 | |
692 | QEMU is a generic and open source processor emulator which achieves a | |
693 | good emulation speed by using dynamic translation. | |
694 | ||
695 | This package provides the system emulator with SH4 CPU. | |
696 | ||
697 | %description system-sh4 -l pl.UTF-8 | |
698 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
699 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
700 | ||
701 | Ten pakiet zawiera emulator systemu z procesorem SH4. | |
702 | ||
703 | %package system-sparc | |
704 | Summary: QEMU system emulator for SPARC | |
705 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC | |
706 | Group: Applications/Emulators | |
707 | Requires: %{name}-common = %{version}-%{release} | |
708 | %systempkg_req | |
709 | Obsoletes: qemu-kvm-system-sparc < 2 | |
710 | ||
711 | %description system-sparc | |
712 | QEMU is a generic and open source processor emulator which achieves a | |
713 | good emulation speed by using dynamic translation. | |
714 | ||
715 | This package provides the system emulator with SPARC/SPARC64 CPU. | |
716 | ||
717 | %description system-sparc -l pl.UTF-8 | |
718 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
719 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
720 | ||
721 | Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64. | |
722 | ||
723 | %package system-tricore | |
724 | Summary: QEMU system emulator for TriCore | |
725 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore | |
726 | Group: Applications/Emulators | |
727 | Requires: %{name}-common = %{version}-%{release} | |
728 | %systempkg_req | |
729 | ||
730 | %description system-tricore | |
731 | QEMU is a generic and open source processor emulator which achieves a | |
732 | good emulation speed by using dynamic translation. | |
733 | ||
734 | This package provides the system emulator with TriCore CPU. | |
735 | ||
736 | %description system-tricore -l pl.UTF-8 | |
737 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
738 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
739 | ||
740 | Ten pakiet zawiera emulator systemu z procesorem TriCore. | |
741 | ||
742 | %package system-x86 | |
743 | Summary: QEMU system emulator for x86 | |
744 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86 | |
745 | Group: Applications/Emulators | |
746 | Requires: %{name}-common = %{version}-%{release} | |
747 | %{?with_system_seabios:Requires: seabios} | |
748 | %systempkg_req | |
749 | Obsoletes: kvm < 89 | |
750 | Obsoletes: qemu-kvm-system-x86 < 2 | |
751 | ||
752 | %description system-x86 | |
753 | QEMU is a generic and open source processor emulator which achieves a | |
754 | good emulation speed by using dynamic translation. | |
755 | ||
756 | This package provides the system emulator with x86 CPU. | |
757 | ||
758 | %description system-x86 -l pl.UTF-8 | |
759 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
760 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
761 | ||
762 | Ten pakiet zawiera emulator systemu z procesorem x86. | |
763 | ||
764 | %package system-xtensa | |
765 | Summary: QEMU system emulator for Xtensa | |
766 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa | |
767 | Group: Applications/Emulators | |
768 | Requires: %{name}-common = %{version}-%{release} | |
769 | %systempkg_req | |
770 | Obsoletes: qemu-kvm-system-xtensa < 2 | |
771 | ||
772 | %description system-xtensa | |
773 | QEMU is a generic and open source processor emulator which achieves a | |
774 | good emulation speed by using dynamic translation. | |
775 | ||
776 | This package provides the system emulator with Xtensa CPU. | |
777 | ||
778 | %description system-xtensa -l pl.UTF-8 | |
779 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
780 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
781 | ||
782 | Ten pakiet zawiera emulator systemu z procesorem Xtensa. | |
783 | ||
784 | %package guest-agent | |
785 | Summary: QEMU guest agent | |
786 | Summary(pl.UTF-8): Agent gościa QEMU | |
787 | Group: Daemons | |
788 | Requires(post,preun,postun): systemd-units >= 38 | |
789 | Requires: glib2 >= 1:2.48 | |
790 | Requires: systemd-units >= 38 | |
791 | Obsoletes: qemu-kvm-guest-agent < 2 | |
792 | Conflicts: SysVinit < 2.96-2 | |
793 | ||
794 | %description guest-agent | |
795 | QEMU is a generic and open source processor emulator which achieves a | |
796 | good emulation speed by using dynamic translation. | |
797 | ||
798 | This package provides an agent to run inside guests, which | |
799 | communicates with the host over a virtio-serial channel named | |
800 | "org.qemu.guest_agent.0". | |
801 | ||
802 | This package does not need to be installed on the host OS. | |
803 | ||
804 | %description guest-agent -l pl.UTF-8 | |
805 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
806 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
807 | ||
808 | Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w | |
809 | systemach-gościach, komunikującego się kanałem virtio-serial o nazwie | |
810 | "org.qemu.guest_agent.0". | |
811 | ||
812 | Ten pakiet nie musi być zainstalowany w systemie hosta. | |
813 | ||
814 | %package module-block-curl | |
815 | Summary: QEMU module for 'curl' block devices | |
816 | Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl' | |
817 | Group: Applications/Emulators | |
818 | Requires: %{name}-common = %{version}-%{release} | |
819 | ||
820 | %description module-block-curl | |
821 | QEMU block device support for CURL. It allows to access remote disks | |
822 | over http, https, ftp and other transports provided by the CURL | |
823 | library. | |
824 | ||
825 | %description module-block-curl -l pl.UTF-8 | |
826 | Moduł QEMU dla urządeń blokowych CURL. Pozwala na dostęp do zdalnych | |
827 | dysków poprzez http, https, ftp i inne protokoły obsługiwane przez | |
828 | bibliotekę CURL. | |
829 | ||
830 | %package module-block-gluster | |
831 | Summary: QEMU module for 'gluster' block devices | |
832 | Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster' | |
833 | Group: Applications/Emulators | |
834 | Requires: %{name}-common = %{version}-%{release} | |
835 | Requires: glusterfs-libs >= 6 | |
836 | ||
837 | %description module-block-gluster | |
838 | QEMU block device support for remote Gluster storage. | |
839 | ||
840 | %description module-block-gluster -l pl.UTF-8 | |
841 | Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni | |
842 | dyskowej Gluster. | |
843 | ||
844 | %package module-block-iscsi | |
845 | Summary: QEMU module for 'iscsi' block devices | |
846 | Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi' | |
847 | Group: Applications/Emulators | |
848 | Requires: %{name}-common = %{version}-%{release} | |
849 | Requires: libiscsi >= 1.9.0 | |
850 | ||
851 | %description module-block-iscsi | |
852 | QEMU block device support for iSCSI volumes. | |
853 | ||
854 | %description module-block-iscsi -l pl.UTF-8 | |
855 | Moduł urządzeń blokowych QEMU do dostępu do wolumenów iSCSI. | |
856 | ||
857 | %package module-block-nfs | |
858 | Summary: QEMU module for 'nfs' block devices | |
859 | Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'nfs' | |
860 | Group: Applications/Emulators | |
861 | Requires: %{name}-common = %{version}-%{release} | |
862 | Requires: libnfs >= 1.9.3 | |
863 | ||
864 | %description module-block-nfs | |
865 | QEMU block device support for remote NFS storage. | |
866 | ||
867 | %description module-block-nfs -l pl.UTF-8 | |
868 | Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni po | |
869 | NFS. | |
870 | ||
871 | %package module-block-rbd | |
872 | Summary: QEMU module for 'rbd' block devices | |
873 | Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd' | |
874 | Group: Applications/Emulators | |
875 | Requires: %{name}-common = %{version}-%{release} | |
876 | ||
877 | %description module-block-rbd | |
878 | QEMU block device support for Ceph/RBD volumes. | |
879 | ||
880 | %description module-block-rbd -l pl.UTF-8 | |
881 | Moduł urządzeń blokowych QEMU do wolumenów Ceph/RBD. | |
882 | ||
883 | %package module-block-ssh | |
884 | Summary: QEMU module for 'ssh' block devices | |
885 | Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh' | |
886 | Group: Applications/Emulators | |
887 | Requires: %{name}-common = %{version}-%{release} | |
888 | Requires: libssh >= 0.8 | |
889 | ||
890 | %description module-block-ssh | |
891 | QEMU block device support for accessing remote disks using the Secure | |
892 | Shell (SSH) protocol. | |
893 | ||
894 | %description module-block-ssh -l pl.UTF-8 | |
895 | Moduł urządzeń blokowych QEMU do dostępu do zdalnych dysków poprzez | |
896 | protokół SSH (Secure Shell). | |
897 | ||
898 | %package module-ui-gtk | |
899 | Summary: QEMU GTK UI driver | |
900 | Summary(pl.UTF-8): Sterownik interfejsu użytkownika GTK dla QEMU | |
901 | Group: Applications/Emulators | |
902 | Requires: %{name}-common = %{version}-%{release} | |
903 | ||
904 | %description module-ui-gtk | |
905 | QEMU GTK UI driver. | |
906 | ||
907 | %description module-ui-gtk -l pl.UTF-8 | |
908 | Sterownik interfejsu użytkownika GTK dla QEMU. | |
909 | ||
910 | %package module-ui-sdl | |
911 | Summary: QEMU SDL UI and audio driver | |
912 | Summary(pl.UTF-8): Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU | |
913 | Group: Applications/Emulators | |
914 | Requires: %{name}-common = %{version}-%{release} | |
915 | ||
916 | %description module-ui-sdl | |
917 | QEMU SDL UI and audio driver. | |
918 | ||
919 | %description module-ui-sdl -l pl.UTF-8 | |
920 | Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU. | |
921 | ||
922 | %package -n systemtap-qemu | |
923 | Summary: systemtap/dtrace probes for QEMU | |
924 | Summary(pl.UTF-8): Sondy systemtap/dtrace dla QEMU | |
925 | Group: Development/Tools | |
926 | Requires: %{name}-common = %{version}-%{release} | |
927 | Requires: systemtap-client | |
928 | ||
929 | %description -n systemtap-qemu | |
930 | systemtap/dtrace probes for QEMU. | |
931 | ||
932 | %description -n systemtap-qemu -l pl.UTF-8 | |
933 | Sondy systemtap/dtrace dla QEMU. | |
934 | ||
935 | %prep | |
936 | %setup -q | |
937 | %patch0 -p1 | |
938 | %patch1 -p1 | |
939 | %patch2 -p1 | |
940 | %patch3 -p1 | |
941 | %patch4 -p1 | |
942 | %patch5 -p1 | |
943 | ||
944 | %{__sed} -i '1s,/usr/bin/env python3,%{__python3},' scripts/qemu-trace-stap | |
945 | ||
946 | %if %{with systemtap} | |
947 | # don't require stap binary during build | |
948 | %{__sed} -i -e "s/has 'stap'/true/" configure | |
949 | %endif | |
950 | %build | |
951 | ||
952 | build() { | |
953 | local target=$1 | |
954 | shift | |
955 | ||
956 | install -d build-$target | |
957 | cd build-$target | |
958 | ||
959 | ../configure \ | |
960 | --prefix=%{_prefix} \ | |
961 | --libdir=%{_libdir} \ | |
962 | --libexecdir=%{_libexecdir} \ | |
963 | --sysconfdir=%{_sysconfdir} \ | |
964 | --localstatedir=%{_localstatedir} \ | |
965 | --interp-prefix=%{_libdir}/qemu/lib-%%M \ | |
966 | --cc="%{__cc}" \ | |
967 | --cxx="%{__cxx}" \ | |
968 | --host-cc="%{__cc}" \ | |
969 | --disable-strip \ | |
970 | --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \ | |
971 | --enable-kvm \ | |
972 | "$@" | |
973 | ||
974 | %{__make} \ | |
975 | V=1 \ | |
976 | %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} | |
977 | ||
978 | cd .. | |
979 | } | |
980 | ||
981 | build dynamic \ | |
982 | --extra-cflags="%{rpmcflags} %{rpmcppflags}" \ | |
983 | --extra-ldflags="%{rpmldflags} -Wl,-z,relro -Wl,-z,now" \ | |
984 | --audio-drv-list="alsa%{?with_oss:,oss}%{?with_sdl:,sdl}%{?with_pulseaudio:,pa}" \ | |
985 | --enable-attr \ | |
986 | %{__enable_disable brlapi} \ | |
987 | --enable-cap-ng \ | |
988 | --enable-capstone=system \ | |
989 | --enable-curl \ | |
990 | --enable-curses \ | |
991 | --enable-docs \ | |
992 | --enable-fdt \ | |
993 | %{__enable_disable glusterfs} \ | |
994 | %{!?with_gtk3:--disable-gtk} \ | |
995 | %{__enable_disable iscsi libiscsi} \ | |
996 | %{__enable_disable libnfs} \ | |
997 | %{__enable_disable pmem libpmem} \ | |
998 | --enable-lzo \ | |
999 | %{__enable_disable multipath mpath} \ | |
1000 | --enable-modules \ | |
1001 | --disable-netmap \ | |
1002 | --enable-nettle \ | |
1003 | %{__enable_disable ceph rbd} \ | |
1004 | %{__enable_disable rdma} \ | |
1005 | %{__enable_disable sdl} \ | |
1006 | %{__enable_disable seccomp} \ | |
1007 | --enable-slirp=system \ | |
1008 | %{__enable_disable spice} \ | |
1009 | %{__enable_disable smartcard} \ | |
1010 | %{__enable_disable snappy} \ | |
1011 | --enable-tpm \ | |
1012 | %{__enable_disable usbredir usb-redir} \ | |
1013 | --enable-vde \ | |
1014 | %{__enable_disable virgl virglrenderer} \ | |
1015 | --enable-virtfs \ | |
1016 | --enable-vnc-jpeg \ | |
1017 | --enable-vnc-png \ | |
1018 | --enable-vnc-sasl \ | |
1019 | %{!?with_vte:--disable-vte} \ | |
1020 | %{__enable_disable xen} \ | |
1021 | %{__enable_disable xkbcommon} | |
1022 | ||
1023 | %if %{with user_static} | |
1024 | build static \ | |
1025 | --disable-brlapi \ | |
1026 | --disable-cap-ng \ | |
1027 | --disable-capstone \ | |
1028 | --disable-curl \ | |
1029 | --disable-curses \ | |
1030 | --disable-gcrypt \ | |
1031 | --disable-gnutls \ | |
1032 | --disable-gtk \ | |
1033 | --disable-guest-agent \ | |
1034 | --disable-guest-agent-msi \ | |
1035 | --disable-libnfs \ | |
1036 | --disable-linux-io-uring \ | |
1037 | --disable-mpath \ | |
1038 | --disable-nettle \ | |
1039 | --disable-pie \ | |
1040 | --disable-sdl \ | |
1041 | --disable-slirp \ | |
1042 | --disable-spice \ | |
1043 | --disable-system \ | |
1044 | --disable-tcmalloc \ | |
1045 | --disable-tools \ | |
1046 | --enable-user \ | |
1047 | --disable-xkbcommon \ | |
1048 | --disable-zstd \ | |
1049 | --static | |
1050 | %endif | |
1051 | ||
1052 | %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl | |
1053 | ||
1054 | %install | |
1055 | rm -rf $RPM_BUILD_ROOT | |
1056 | install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \ | |
1057 | $RPM_BUILD_ROOT/etc/{qemu,sysconfig,modules-load.d,rc.d/init.d,logrotate.d} \ | |
1058 | $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,/lib/udev/rules.d,%{_sbindir}} | |
1059 | ||
1060 | %if %{with user_static} | |
1061 | %{__make} -C build-static install \ | |
1062 | %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \ | |
1063 | DESTDIR=$RPM_BUILD_ROOT | |
1064 | ||
1065 | # Give all QEMU user emulators a -static suffix | |
1066 | for src in $RPM_BUILD_ROOT%{_bindir}/qemu-*; do | |
1067 | %{__mv} $src $src-static | |
1068 | done | |
1069 | ||
1070 | %endif | |
1071 | ||
1072 | %{__make} -C build-dynamic install \ | |
1073 | %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \ | |
1074 | DESTDIR=$RPM_BUILD_ROOT | |
1075 | ||
1076 | # let rpm generate dependencies | |
1077 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.so | |
1078 | ||
1079 | echo "#allow br0" > $RPM_BUILD_ROOT/etc/qemu/bridge.conf | |
1080 | ||
1081 | install -d $RPM_BUILD_ROOT%{_sysconfdir} | |
1082 | cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup | |
1083 | #!/bin/sh | |
1084 | ||
1085 | EOF | |
1086 | ||
1087 | install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf | |
1088 | ||
1089 | %ifarch %{ix86} %{x8664} x32 | |
1090 | install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf | |
1091 | install -p %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/rules.d | |
1092 | %endif | |
1093 | ||
1094 | install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service | |
1095 | install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm | |
1096 | install -p ksmctl $RPM_BUILD_ROOT%{_sbindir} | |
1097 | ||
1098 | install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service | |
1099 | install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned | |
1100 | install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf | |
1101 | ||
1102 | # For the qemu-guest-agent subpackage install the systemd | |
1103 | # service and udev rules. | |
1104 | install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir} | |
1105 | install -p %{SOURCE12} $RPM_BUILD_ROOT/lib/udev/rules.d | |
1106 | ||
1107 | install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga | |
1108 | install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga | |
1109 | ||
1110 | cp -p %{SOURCE15} %{SOURCE16} $RPM_BUILD_ROOT%{systemdunitdir} | |
1111 | ||
1112 | # Install binfmt | |
1113 | BINFMT_CPUS=" \ | |
1114 | %ifnarch %{ix86} %{x8664} x32 | |
1115 | i386 x86_64 \ | |
1116 | %endif | |
1117 | %ifnarch aarch64 | |
1118 | aarch64 \ | |
1119 | %endif | |
1120 | %ifnarch alpha | |
1121 | alpha \ | |
1122 | %endif | |
1123 | %ifnarch %{arm} | |
1124 | arm \ | |
1125 | %endif | |
1126 | aarch64_be \ | |
1127 | armeb \ | |
1128 | microblaze microblazeel \ | |
1129 | %ifnarch mips64 | |
1130 | mips64 \ | |
1131 | %ifnarch mips | |
1132 | mips \ | |
1133 | %endif | |
1134 | %endif | |
1135 | %ifnarch mips64el | |
1136 | mips64el \ | |
1137 | %ifnarch mipsel | |
1138 | mipsel \ | |
1139 | %endif | |
1140 | %endif | |
1141 | %ifnarch m68k | |
1142 | m68k \ | |
1143 | %endif | |
1144 | %ifnarch ppc ppc64 ppc64le | |
1145 | ppc ppc64 ppc64le \ | |
1146 | %endif | |
1147 | %ifnarch sparc sparc64 | |
1148 | sparc sparc32plus sparc64 \ | |
1149 | %endif | |
1150 | %ifnarch s390 s390x | |
1151 | s390x \ | |
1152 | %endif | |
1153 | %ifnarch sh4 | |
1154 | sh4 \ | |
1155 | %endif | |
1156 | sh4eb \ | |
1157 | " | |
1158 | ||
1159 | if [ -n "$BINFMT_CPUS" ]; then | |
1160 | for cpu in $BINFMT_CPUS; do | |
1161 | bash ./scripts/qemu-binfmt-conf.sh --systemd "$cpu" --exportdir $RPM_BUILD_ROOT/usr/lib/binfmt.d --qemu-path %{_bindir} | |
1162 | done | |
1163 | for i in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*.conf; do | |
1164 | %{__mv} $i ${i%.conf}-dynamic.conf | |
1165 | done | |
1166 | ||
1167 | %if %{with user_static} | |
1168 | for regularfmt in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*; do | |
1169 | staticfmt="${regularfmt%\-dynamic.conf}-static.conf" | |
1170 | cat $regularfmt | tr -d '\n' | sed "s/:$/-static:F/" > $staticfmt | |
1171 | done | |
1172 | %endif | |
1173 | fi | |
1174 | ||
1175 | %if %{with system_seabios} | |
1176 | ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin | |
1177 | # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it | |
1178 | for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do | |
1179 | bn="$(basename $f)" | |
1180 | if [ -e "/usr/share/seabios/$bn" ] ; then | |
1181 | ln -sf "/usr/share/seabios/$bn" "$f" | |
1182 | fi | |
1183 | done | |
1184 | %endif | |
1185 | ||
1186 | %if %{with gtk3} | |
1187 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de} | |
1188 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr} | |
1189 | %find_lang %{name} | |
1190 | %else | |
1191 | : > qemu.lang | |
1192 | %endif | |
1193 | ||
1194 | for t in client server; do | |
1195 | cp -p build-dynamic/contrib/ivshmem-$t/ivshmem-$t $RPM_BUILD_ROOT%{_bindir} | |
1196 | done | |
1197 | ||
1198 | # Windows installer icon, not used | |
1199 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/qemu-nsis.bmp | |
1200 | # packaged as %doc | |
1201 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/edk2-licenses.txt | |
1202 | ||
1203 | # cleanup Sphinx files | |
1204 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/{interop,specs,system,tools,user}/{.buildinfo,objects.inv} | |
1205 | ||
1206 | %clean | |
1207 | rm -rf $RPM_BUILD_ROOT | |
1208 | ||
1209 | %pre common | |
1210 | %groupadd -g 160 kvm | |
1211 | %groupadd -g 276 qemu | |
1212 | %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu | |
1213 | ||
1214 | %post common | |
1215 | %systemd_post ksm.service | |
1216 | %systemd_post ksmtuned.service | |
1217 | ||
1218 | %preun common | |
1219 | %systemd_preun ksm.service | |
1220 | %systemd_preun ksmtuned.service | |
1221 | ||
1222 | %postun common | |
1223 | if [ "$1" = "0" ]; then | |
1224 | %userremove qemu | |
1225 | %groupremove qemu | |
1226 | %groupremove kvm | |
1227 | fi | |
1228 | %systemd_reload | |
1229 | ||
1230 | %triggerpostun common -- qemu-common < 1.6.1-4 | |
1231 | %systemd_trigger ksm.service | |
1232 | %systemd_trigger ksmtuned.service | |
1233 | %systemd_trigger qemu-pr-helper.service | |
1234 | ||
1235 | %post user | |
1236 | %systemd_post systemd-binfmt.service | |
1237 | ||
1238 | %postun user | |
1239 | %systemd_post systemd-binfmt.service | |
1240 | ||
1241 | %post user-static | |
1242 | %systemd_post systemd-binfmt.service | |
1243 | ||
1244 | %postun user-static | |
1245 | %systemd_post systemd-binfmt.service | |
1246 | ||
1247 | %post guest-agent | |
1248 | /sbin/chkconfig --add qemu-ga | |
1249 | %service qemu-ga restart "qemu-ga" | |
1250 | %systemd_reload | |
1251 | ||
1252 | %preun guest-agent | |
1253 | if [ "$1" = "0" ]; then | |
1254 | %service qemu-ga stop | |
1255 | /sbin/chkconfig --del qemu-ga | |
1256 | fi | |
1257 | %systemd_preun qemu-guest-agent.service | |
1258 | ||
1259 | %postun guest-agent | |
1260 | %systemd_reload | |
1261 | ||
1262 | %files | |
1263 | %defattr(644,root,root,755) | |
1264 | ||
1265 | %files common -f %{name}.lang | |
1266 | %defattr(644,root,root,755) | |
1267 | %doc LICENSE README.rst pc-bios/edk2-licenses.txt | |
1268 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup | |
1269 | %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf | |
1270 | %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf | |
1271 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm | |
1272 | %dir /etc/qemu | |
1273 | %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf | |
1274 | %{systemdunitdir}/ksm.service | |
1275 | %{systemdunitdir}/ksmtuned.service | |
1276 | %{systemdunitdir}/qemu-pr-helper.service | |
1277 | %{systemdunitdir}/qemu-pr-helper.socket | |
1278 | %attr(755,root,root) %{_bindir}/elf2dmp | |
1279 | %attr(755,root,root) %{_bindir}/ivshmem-client | |
1280 | %attr(755,root,root) %{_bindir}/ivshmem-server | |
1281 | %attr(755,root,root) %{_bindir}/qemu-edid | |
1282 | %if %{with xkbcommon} | |
1283 | %attr(755,root,root) %{_bindir}/qemu-keymap | |
1284 | %endif | |
1285 | %attr(755,root,root) %{_bindir}/qemu-nbd | |
1286 | %attr(755,root,root) %{_bindir}/qemu-pr-helper | |
1287 | %attr(755,root,root) %{_bindir}/qemu-storage-daemon | |
1288 | %attr(755,root,root) %{_sbindir}/ksmctl | |
1289 | %attr(755,root,root) %{_sbindir}/ksmtuned | |
1290 | %attr(755,root,root) %{_libexecdir}/qemu-bridge-helper | |
1291 | %if %{with virgl} | |
1292 | %attr(755,root,root) %{_libexecdir}/vhost-user-gpu | |
1293 | %endif | |
1294 | %attr(755,root,root) %{_libexecdir}/virtfs-proxy-helper | |
1295 | %attr(755,root,root) %{_libexecdir}/virtiofsd | |
1296 | %dir %{_libdir}/%{name} | |
1297 | # modules without too many external dependencies | |
1298 | %attr(755,root,root) %{_libdir}/%{name}/block-dmg-bz2.so | |
1299 | %attr(755,root,root) %{_libdir}/%{name}/block-dmg-lzfse.so | |
1300 | %attr(755,root,root) %{_libdir}/%{name}/audio-alsa.so | |
1301 | %if %{with oss} | |
1302 | %attr(755,root,root) %{_libdir}/%{name}/audio-oss.so | |
1303 | %endif | |
1304 | %if %{with pulseaudio} | |
1305 | %attr(755,root,root) %{_libdir}/%{name}/audio-pa.so | |
1306 | %endif | |
1307 | %if %{with brlapi} | |
1308 | %attr(755,root,root) %{_libdir}/%{name}/chardev-baum.so | |
1309 | %endif | |
1310 | %attr(755,root,root) %{_libdir}/%{name}/hw-display-qxl.so | |
1311 | %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci.so | |
1312 | %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu.so | |
1313 | %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga.so | |
1314 | %attr(755,root,root) %{_libdir}/%{name}/ui-curses.so | |
1315 | %if %{with usbredir} | |
1316 | %attr(755,root,root) %{_libdir}/%{name}/hw-usb-redirect.so | |
1317 | %endif | |
1318 | %if %{with smartcard} | |
1319 | %attr(755,root,root) %{_libdir}/%{name}/hw-usb-smartcard.so | |
1320 | %endif | |
1321 | %if %{with opengl} | |
1322 | %attr(755,root,root) %{_libdir}/%{name}/ui-egl-headless.so | |
1323 | %attr(755,root,root) %{_libdir}/%{name}/ui-opengl.so | |
1324 | %endif | |
1325 | %if %{with spice} | |
1326 | %attr(755,root,root) %{_libdir}/%{name}/audio-spice.so | |
1327 | %attr(755,root,root) %{_libdir}/%{name}/chardev-spice.so | |
1328 | %attr(755,root,root) %{_libdir}/%{name}/ui-spice-app.so | |
1329 | %attr(755,root,root) %{_libdir}/%{name}/ui-spice-core.so | |
1330 | %endif | |
1331 | %dir %{_datadir}/%{name} | |
1332 | %dir %{_datadir}/%{name}/firmware | |
1333 | %{_datadir}/%{name}/keymaps | |
1334 | %{_datadir}/%{name}/trace-events-all | |
1335 | %dir %{_datadir}/%{name}/vhost-user | |
1336 | %if %{with virgl} | |
1337 | %{_datadir}/%{name}/vhost-user/50-qemu-gpu.json | |
1338 | %endif | |
1339 | %{_datadir}/%{name}/vhost-user/50-qemu-virtiofsd.json | |
1340 | %{_desktopdir}/qemu.desktop | |
1341 | %{_iconsdir}/hicolor/*x*/apps/qemu.png | |
1342 | %{_iconsdir}/hicolor/32x32/apps/qemu.bmp | |
1343 | %{_iconsdir}/hicolor/scalable/apps/qemu.svg | |
1344 | %{_mandir}/man1/qemu.1* | |
1345 | %{_mandir}/man1/virtfs-proxy-helper.1* | |
1346 | %{_mandir}/man1/virtiofsd.1* | |
1347 | %{_mandir}/man7/qemu-block-drivers.7* | |
1348 | %{_mandir}/man7/qemu-cpu-models.7* | |
1349 | %{_mandir}/man7/qemu-qmp-ref.7* | |
1350 | %{_mandir}/man8/qemu-nbd.8* | |
1351 | %{_mandir}/man8/qemu-pr-helper.8* | |
1352 | %{_docdir}/qemu | |
1353 | ||
1354 | %files img | |
1355 | %defattr(644,root,root,755) | |
1356 | %attr(755,root,root) %{_bindir}/qemu-img | |
1357 | %{_mandir}/man1/qemu-img.1* | |
1358 | ||
1359 | %files user | |
1360 | %defattr(644,root,root,755) | |
1361 | /usr/lib/binfmt.d/qemu-*-dynamic.conf | |
1362 | %attr(755,root,root) %{_bindir}/qemu-aarch64 | |
1363 | %attr(755,root,root) %{_bindir}/qemu-aarch64_be | |
1364 | %attr(755,root,root) %{_bindir}/qemu-alpha | |
1365 | %attr(755,root,root) %{_bindir}/qemu-arm | |
1366 | %attr(755,root,root) %{_bindir}/qemu-armeb | |
1367 | %attr(755,root,root) %{_bindir}/qemu-cris | |
1368 | %attr(755,root,root) %{_bindir}/qemu-hppa | |
1369 | %attr(755,root,root) %{_bindir}/qemu-i386 | |
1370 | %attr(755,root,root) %{_bindir}/qemu-io | |
1371 | %attr(755,root,root) %{_bindir}/qemu-m68k | |
1372 | %attr(755,root,root) %{_bindir}/qemu-microblaze | |
1373 | %attr(755,root,root) %{_bindir}/qemu-microblazeel | |
1374 | %attr(755,root,root) %{_bindir}/qemu-mips | |
1375 | %attr(755,root,root) %{_bindir}/qemu-mipsel | |
1376 | %attr(755,root,root) %{_bindir}/qemu-mips64 | |
1377 | %attr(755,root,root) %{_bindir}/qemu-mips64el | |
1378 | %attr(755,root,root) %{_bindir}/qemu-mipsn32 | |
1379 | %attr(755,root,root) %{_bindir}/qemu-mipsn32el | |
1380 | %attr(755,root,root) %{_bindir}/qemu-nios2 | |
1381 | %attr(755,root,root) %{_bindir}/qemu-or1k | |
1382 | %attr(755,root,root) %{_bindir}/qemu-ppc | |
1383 | %attr(755,root,root) %{_bindir}/qemu-ppc64 | |
1384 | %attr(755,root,root) %{_bindir}/qemu-ppc64le | |
1385 | %attr(755,root,root) %{_bindir}/qemu-riscv32 | |
1386 | %attr(755,root,root) %{_bindir}/qemu-riscv64 | |
1387 | %attr(755,root,root) %{_bindir}/qemu-s390x | |
1388 | %attr(755,root,root) %{_bindir}/qemu-sh4 | |
1389 | %attr(755,root,root) %{_bindir}/qemu-sh4eb | |
1390 | %attr(755,root,root) %{_bindir}/qemu-sparc | |
1391 | %attr(755,root,root) %{_bindir}/qemu-sparc32plus | |
1392 | %attr(755,root,root) %{_bindir}/qemu-sparc64 | |
1393 | %attr(755,root,root) %{_bindir}/qemu-x86_64 | |
1394 | %attr(755,root,root) %{_bindir}/qemu-xtensa | |
1395 | %attr(755,root,root) %{_bindir}/qemu-xtensaeb | |
1396 | ||
1397 | %if %{with user_static} | |
1398 | %files user-static | |
1399 | %defattr(644,root,root,755) | |
1400 | /usr/lib/binfmt.d/qemu-*-static.conf | |
1401 | %attr(755,root,root) %{_bindir}/qemu-aarch64-static | |
1402 | %attr(755,root,root) %{_bindir}/qemu-aarch64_be-static | |
1403 | %attr(755,root,root) %{_bindir}/qemu-alpha-static | |
1404 | %attr(755,root,root) %{_bindir}/qemu-arm-static | |
1405 | %attr(755,root,root) %{_bindir}/qemu-armeb-static | |
1406 | %attr(755,root,root) %{_bindir}/qemu-cris-static | |
1407 | %attr(755,root,root) %{_bindir}/qemu-hppa-static | |
1408 | %attr(755,root,root) %{_bindir}/qemu-i386-static | |
1409 | %attr(755,root,root) %{_bindir}/qemu-m68k-static | |
1410 | %attr(755,root,root) %{_bindir}/qemu-microblaze-static | |
1411 | %attr(755,root,root) %{_bindir}/qemu-microblazeel-static | |
1412 | %attr(755,root,root) %{_bindir}/qemu-mips-static | |
1413 | %attr(755,root,root) %{_bindir}/qemu-mips64-static | |
1414 | %attr(755,root,root) %{_bindir}/qemu-mips64el-static | |
1415 | %attr(755,root,root) %{_bindir}/qemu-mipsel-static | |
1416 | %attr(755,root,root) %{_bindir}/qemu-mipsn32-static | |
1417 | %attr(755,root,root) %{_bindir}/qemu-mipsn32el-static | |
1418 | %attr(755,root,root) %{_bindir}/qemu-nios2-static | |
1419 | %attr(755,root,root) %{_bindir}/qemu-or1k-static | |
1420 | %attr(755,root,root) %{_bindir}/qemu-ppc-static | |
1421 | %attr(755,root,root) %{_bindir}/qemu-ppc64-static | |
1422 | %attr(755,root,root) %{_bindir}/qemu-ppc64le-static | |
1423 | %attr(755,root,root) %{_bindir}/qemu-riscv32-static | |
1424 | %attr(755,root,root) %{_bindir}/qemu-riscv64-static | |
1425 | %attr(755,root,root) %{_bindir}/qemu-s390x-static | |
1426 | %attr(755,root,root) %{_bindir}/qemu-sh4-static | |
1427 | %attr(755,root,root) %{_bindir}/qemu-sh4eb-static | |
1428 | %attr(755,root,root) %{_bindir}/qemu-sparc-static | |
1429 | %attr(755,root,root) %{_bindir}/qemu-sparc32plus-static | |
1430 | %attr(755,root,root) %{_bindir}/qemu-sparc64-static | |
1431 | %attr(755,root,root) %{_bindir}/qemu-x86_64-static | |
1432 | %attr(755,root,root) %{_bindir}/qemu-xtensa-static | |
1433 | %attr(755,root,root) %{_bindir}/qemu-xtensaeb-static | |
1434 | %{?with_systemtap:%attr(755,root,root) %{_bindir}/qemu-trace-stap-static} | |
1435 | %endif | |
1436 | ||
1437 | %files system-aarch64 | |
1438 | %defattr(644,root,root,755) | |
1439 | %attr(755,root,root) %{_bindir}/qemu-system-aarch64 | |
1440 | %{_datadir}/%{name}/edk2-aarch64-code.fd | |
1441 | %{_datadir}/%{name}/firmware/60-edk2-aarch64.json | |
1442 | ||
1443 | %files system-alpha | |
1444 | %defattr(644,root,root,755) | |
1445 | %attr(755,root,root) %{_bindir}/qemu-system-alpha | |
1446 | %{_datadir}/%{name}/palcode-clipper | |
1447 | ||
1448 | %files system-arm | |
1449 | %defattr(644,root,root,755) | |
1450 | %attr(755,root,root) %{_bindir}/qemu-system-arm | |
1451 | %{_datadir}/%{name}/edk2-arm-code.fd | |
1452 | %{_datadir}/%{name}/edk2-arm-vars.fd | |
1453 | %{_datadir}/%{name}/firmware/60-edk2-arm.json | |
1454 | %{_datadir}/%{name}/npcm7xx_bootrom.bin | |
1455 | ||
1456 | %files system-avr | |
1457 | %defattr(644,root,root,755) | |
1458 | %attr(755,root,root) %{_bindir}/qemu-system-avr | |
1459 | ||
1460 | %files system-cris | |
1461 | %defattr(644,root,root,755) | |
1462 | %attr(755,root,root) %{_bindir}/qemu-system-cris | |
1463 | ||
1464 | %files system-hppa | |
1465 | %defattr(644,root,root,755) | |
1466 | %attr(755,root,root) %{_bindir}/qemu-system-hppa | |
1467 | %{_datadir}/%{name}/hppa-firmware.img | |
1468 | ||
1469 | %files system-m68k | |
1470 | %defattr(644,root,root,755) | |
1471 | %attr(755,root,root) %{_bindir}/qemu-system-m68k | |
1472 | ||
1473 | %files system-microblaze | |
1474 | %defattr(644,root,root,755) | |
1475 | %attr(755,root,root) %{_bindir}/qemu-system-microblaze | |
1476 | %attr(755,root,root) %{_bindir}/qemu-system-microblazeel | |
1477 | ||
1478 | %files system-mips | |
1479 | %defattr(644,root,root,755) | |
1480 | %attr(755,root,root) %{_bindir}/qemu-system-mips | |
1481 | %attr(755,root,root) %{_bindir}/qemu-system-mipsel | |
1482 | %attr(755,root,root) %{_bindir}/qemu-system-mips64 | |
1483 | %attr(755,root,root) %{_bindir}/qemu-system-mips64el | |
1484 | ||
1485 | %files system-moxie | |
1486 | %defattr(644,root,root,755) | |
1487 | %attr(755,root,root) %{_bindir}/qemu-system-moxie | |
1488 | ||
1489 | %files system-nios2 | |
1490 | %defattr(644,root,root,755) | |
1491 | %attr(755,root,root) %{_bindir}/qemu-system-nios2 | |
1492 | ||
1493 | %files system-or1k | |
1494 | %defattr(644,root,root,755) | |
1495 | %attr(755,root,root) %{_bindir}/qemu-system-or1k | |
1496 | ||
1497 | %files system-ppc | |
1498 | %defattr(644,root,root,755) | |
1499 | %attr(755,root,root) %{_bindir}/qemu-system-ppc | |
1500 | %attr(755,root,root) %{_bindir}/qemu-system-ppc64 | |
1501 | %{_datadir}/%{name}/bamboo.dtb | |
1502 | %{_datadir}/%{name}/canyonlands.dtb | |
1503 | %{_datadir}/%{name}/openbios-ppc | |
1504 | %{_datadir}/%{name}/petalogix-ml605.dtb | |
1505 | %{_datadir}/%{name}/petalogix-s3adsp1800.dtb | |
1506 | %{_datadir}/%{name}/qemu_vga.ndrv | |
1507 | %{_datadir}/%{name}/skiboot.lid | |
1508 | %{_datadir}/%{name}/slof.bin | |
1509 | %{_datadir}/%{name}/u-boot.e500 | |
1510 | %{_datadir}/%{name}/u-boot-sam460-20100605.bin | |
1511 | ||
1512 | %files system-riscv32 | |
1513 | %defattr(644,root,root,755) | |
1514 | %attr(755,root,root) %{_bindir}/qemu-system-riscv32 | |
1515 | %{_datadir}/%{name}/opensbi-riscv32-generic-fw_dynamic.bin | |
1516 | %{_datadir}/%{name}/opensbi-riscv32-generic-fw_dynamic.elf | |
1517 | ||
1518 | %files system-riscv64 | |
1519 | %defattr(644,root,root,755) | |
1520 | %attr(755,root,root) %{_bindir}/qemu-system-riscv64 | |
1521 | %{_datadir}/%{name}/opensbi-riscv64-generic-fw_dynamic.bin | |
1522 | %{_datadir}/%{name}/opensbi-riscv64-generic-fw_dynamic.elf | |
1523 | ||
1524 | %files system-rx | |
1525 | %defattr(644,root,root,755) | |
1526 | %attr(755,root,root) %{_bindir}/qemu-system-rx | |
1527 | ||
1528 | %files system-s390x | |
1529 | %defattr(644,root,root,755) | |
1530 | %attr(755,root,root) %{_bindir}/qemu-system-s390x | |
1531 | %{_datadir}/%{name}/s390-ccw.img | |
1532 | %{_datadir}/%{name}/s390-netboot.img | |
1533 | ||
1534 | %files system-sh4 | |
1535 | %defattr(644,root,root,755) | |
1536 | %attr(755,root,root) %{_bindir}/qemu-system-sh4 | |
1537 | %attr(755,root,root) %{_bindir}/qemu-system-sh4eb | |
1538 | ||
1539 | %files system-sparc | |
1540 | %defattr(644,root,root,755) | |
1541 | %attr(755,root,root) %{_bindir}/qemu-system-sparc | |
1542 | %attr(755,root,root) %{_bindir}/qemu-system-sparc64 | |
1543 | %{_datadir}/%{name}/QEMU,cgthree.bin | |
1544 | %{_datadir}/%{name}/QEMU,tcx.bin | |
1545 | %{_datadir}/%{name}/openbios-sparc32 | |
1546 | %{_datadir}/%{name}/openbios-sparc64 | |
1547 | ||
1548 | %files system-tricore | |
1549 | %defattr(644,root,root,755) | |
1550 | %attr(755,root,root) %{_bindir}/qemu-system-tricore | |
1551 | ||
1552 | %files system-x86 | |
1553 | %defattr(644,root,root,755) | |
1554 | %attr(755,root,root) %{_bindir}/qemu-system-i386 | |
1555 | %attr(755,root,root) %{_bindir}/qemu-system-x86_64 | |
1556 | %ifarch %{ix86} %{x8664} x32 | |
1557 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf | |
1558 | /lib/udev/rules.d/80-kvm.rules | |
1559 | %endif | |
1560 | %{_datadir}/%{name}/bios.bin | |
1561 | %{_datadir}/%{name}/bios-256k.bin | |
1562 | %{_datadir}/%{name}/bios-microvm.bin | |
1563 | %{_datadir}/%{name}/edk2-i386-code.fd | |
1564 | %{_datadir}/%{name}/edk2-i386-secure-code.fd | |
1565 | %{_datadir}/%{name}/edk2-i386-vars.fd | |
1566 | %{_datadir}/%{name}/edk2-x86_64-code.fd | |
1567 | %{_datadir}/%{name}/edk2-x86_64-secure-code.fd | |
1568 | %{_datadir}/%{name}/efi-e1000e.rom | |
1569 | %{_datadir}/%{name}/efi-e1000.rom | |
1570 | %{_datadir}/%{name}/efi-eepro100.rom | |
1571 | %{_datadir}/%{name}/efi-ne2k_pci.rom | |
1572 | %{_datadir}/%{name}/efi-pcnet.rom | |
1573 | %{_datadir}/%{name}/efi-rtl8139.rom | |
1574 | %{_datadir}/%{name}/efi-virtio.rom | |
1575 | %{_datadir}/%{name}/efi-vmxnet3.rom | |
1576 | %{_datadir}/%{name}/kvmvapic.bin | |
1577 | %{_datadir}/%{name}/linuxboot.bin | |
1578 | %{_datadir}/%{name}/linuxboot_dma.bin | |
1579 | %{_datadir}/%{name}/multiboot.bin | |
1580 | %{_datadir}/%{name}/pvh.bin | |
1581 | %{_datadir}/%{name}/pxe-e1000.rom | |
1582 | %{_datadir}/%{name}/pxe-eepro100.rom | |
1583 | %{_datadir}/%{name}/pxe-ne2k_pci.rom | |
1584 | %{_datadir}/%{name}/pxe-pcnet.rom | |
1585 | %{_datadir}/%{name}/pxe-rtl8139.rom | |
1586 | %{_datadir}/%{name}/pxe-virtio.rom | |
1587 | %{_datadir}/%{name}/qboot.rom | |
1588 | %{_datadir}/%{name}/sgabios.bin | |
1589 | %{_datadir}/%{name}/vgabios.bin | |
1590 | %{_datadir}/%{name}/vgabios-ati.bin | |
1591 | %{_datadir}/%{name}/vgabios-bochs-display.bin | |
1592 | %{_datadir}/%{name}/vgabios-cirrus.bin | |
1593 | %{_datadir}/%{name}/vgabios-qxl.bin | |
1594 | %{_datadir}/%{name}/vgabios-ramfb.bin | |
1595 | %{_datadir}/%{name}/vgabios-stdvga.bin | |
1596 | %{_datadir}/%{name}/vgabios-virtio.bin | |
1597 | %{_datadir}/%{name}/vgabios-vmware.bin | |
1598 | %{_datadir}/%{name}/firmware/50-edk2-i386-secure.json | |
1599 | %{_datadir}/%{name}/firmware/50-edk2-x86_64-secure.json | |
1600 | %{_datadir}/%{name}/firmware/60-edk2-i386.json | |
1601 | %{_datadir}/%{name}/firmware/60-edk2-x86_64.json | |
1602 | ||
1603 | %files system-xtensa | |
1604 | %defattr(644,root,root,755) | |
1605 | %attr(755,root,root) %{_bindir}/qemu-system-xtensa | |
1606 | %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb | |
1607 | ||
1608 | %files guest-agent | |
1609 | %defattr(644,root,root,755) | |
1610 | %attr(755,root,root) %{_bindir}/qemu-ga | |
1611 | /lib/udev/rules.d/99-qemu-guest-agent.rules | |
1612 | %{systemdunitdir}/qemu-guest-agent.service | |
1613 | %attr(754,root,root) /etc/rc.d/init.d/qemu-ga | |
1614 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/qemu-ga | |
1615 | %{_mandir}/man7/qemu-ga-ref.7* | |
1616 | %{_mandir}/man8/qemu-ga.8* | |
1617 | ||
1618 | %files module-block-curl | |
1619 | %defattr(644,root,root,755) | |
1620 | %attr(755,root,root) %{_libdir}/%{name}/block-curl.so | |
1621 | ||
1622 | %if %{with glusterfs} | |
1623 | %files module-block-gluster | |
1624 | %defattr(644,root,root,755) | |
1625 | %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so | |
1626 | %endif | |
1627 | ||
1628 | %if %{with iscsi} | |
1629 | %files module-block-iscsi | |
1630 | %defattr(644,root,root,755) | |
1631 | %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so | |
1632 | %endif | |
1633 | ||
1634 | %if %{with libnfs} | |
1635 | %files module-block-nfs | |
1636 | %defattr(644,root,root,755) | |
1637 | %attr(755,root,root) %{_libdir}/%{name}/block-nfs.so | |
1638 | %endif | |
1639 | ||
1640 | %if %{with ceph} | |
1641 | %files module-block-rbd | |
1642 | %defattr(644,root,root,755) | |
1643 | %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so | |
1644 | %endif | |
1645 | ||
1646 | %files module-block-ssh | |
1647 | %defattr(644,root,root,755) | |
1648 | %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so | |
1649 | ||
1650 | %if %{with gtk3} | |
1651 | %files module-ui-gtk | |
1652 | %defattr(644,root,root,755) | |
1653 | %attr(755,root,root) %{_libdir}/%{name}/ui-gtk.so | |
1654 | %endif | |
1655 | ||
1656 | %if %{with sdl} | |
1657 | %files module-ui-sdl | |
1658 | %defattr(644,root,root,755) | |
1659 | %attr(755,root,root) %{_libdir}/%{name}/audio-sdl.so | |
1660 | %attr(755,root,root) %{_libdir}/%{name}/ui-sdl.so | |
1661 | %endif | |
1662 | ||
1663 | %if %{with systemtap} | |
1664 | %files -n systemtap-qemu | |
1665 | %defattr(644,root,root,755) | |
1666 | %attr(755,root,root) %{_bindir}/qemu-trace-stap | |
1667 | %{_datadir}/systemtap/tapset/qemu-*.stp | |
1668 | %{_mandir}/man1/qemu-trace-stap.1* | |
1669 | %endif |