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