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