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