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