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