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