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