]> git.pld-linux.org Git - packages/qemu.git/blame - qemu.spec
- updated dependencies, use system libslirp, drop obsolete esd bcond
[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
c218d8d3 105BuildRequires: libusb-devel >= 1.0.13
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
fabf5a9c
ER
258Conflicts: qemu < 1.0-2
259
260%description common
261QEMU is a generic and open source processor emulator which achieves a
262good emulation speed by using dynamic translation.
263
264This package provides the common files needed by all QEMU targets.
265
d86014ba
JB
266%description common -l pl.UTF-8
267QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
268dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
269
270Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
271środowiska QEMU.
272
273%package img
fabf5a9c 274Summary: QEMU command line tool for manipulating disk images
d86014ba 275Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
fabf5a9c 276Group: Development/Tools
e03112c2 277Obsoletes: qemu-kvm-img
008c880e 278Conflicts: qemu < 1.0-2
fabf5a9c
ER
279
280%description img
d86014ba
JB
281This package provides a command line tool for manipulating disk
282images.
283
284%description img -l pl.UTF-8
285Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
286na obrazach dysków.
fabf5a9c
ER
287
288%package user
289Summary: QEMU user mode emulation of qemu targets
d86014ba 290Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
fabf5a9c
ER
291Group: Development/Tools
292Requires: %{name}-common = %{version}-%{release}
1c6a7aa7
JR
293Requires(post,postun): systemd-units >= 38
294Requires: systemd-units >= 38
e03112c2 295Obsoletes: qemu-kvm-user
fabf5a9c
ER
296
297%description user
298QEMU is a generic and open source processor emulator which achieves a
299good emulation speed by using dynamic translation.
300
301This package provides the user mode emulation of QEMU targets.
302
d86014ba
JB
303%description user -l pl.UTF-8
304QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
305dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
306
307Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
308
a75bdea7
ER
309%package user-static
310Summary: QEMU user mode emulation of qemu targets static build
311Group: Development/Tools
a75bdea7
ER
312Requires(post,postun): systemd-units >= 38
313Requires: systemd-units >= 38
314
315%description user-static
316QEMU is a generic and open source processor emulator which achieves a
317good emulation speed by using dynamic translation.
318
319This package provides the user mode emulation of qemu targets built as
320static binaries
321
ae1c5c71 322%package system-aarch64
c218d8d3
JB
323Summary: QEMU system emulator for AArch64
324Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
ae1c5c71
JK
325Group: Development/Tools
326Requires: %{name}-common = %{version}-%{release}
327%systempkg_req
328Obsoletes: qemu-kvm-system-aarch64
329
330%description system-aarch64
331QEMU is a generic and open source processor emulator which achieves a
332good emulation speed by using dynamic translation.
333
c218d8d3 334This package provides the system emulator with AArch64 CPU.
ae1c5c71
JK
335
336%description system-aarch64 -l pl.UTF-8
337QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
338dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
339
c218d8d3 340Ten pakiet zawiera emulator systemu z procesorem AArch64.
ae1c5c71 341
fabf5a9c 342%package system-alpha
d86014ba
JB
343Summary: QEMU system emulator for Alpha
344Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
fabf5a9c
ER
345Group: Development/Tools
346Requires: %{name}-common = %{version}-%{release}
78a71650 347%systempkg_req
e03112c2 348Obsoletes: qemu-kvm-system-alpha
fabf5a9c
ER
349
350%description system-alpha
351QEMU is a generic and open source processor emulator which achieves a
352good emulation speed by using dynamic translation.
353
d86014ba
JB
354This package provides the system emulator with Alpha CPU.
355
356%description system-alpha -l pl.UTF-8
357QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
358dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
359
360Ten pakiet zawiera emulator systemu z procesorem Alpha.
fabf5a9c
ER
361
362%package system-arm
d86014ba
JB
363Summary: QEMU system emulator for ARM
364Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
fabf5a9c
ER
365Group: Development/Tools
366Requires: %{name}-common = %{version}-%{release}
78a71650 367%systempkg_req
e03112c2 368Obsoletes: qemu-kvm-system-arm
fabf5a9c
ER
369
370%description system-arm
371QEMU is a generic and open source processor emulator which achieves a
372good emulation speed by using dynamic translation.
373
d86014ba
JB
374This package provides the system emulator for ARM.
375
376%description system-arm -l pl.UTF-8
377QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
378dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
379
380Ten pakiet zawiera emulator systemu z procesorem ARM.
fabf5a9c
ER
381
382%package system-cris
59bc1300 383Summary: QEMU system emulator for CRIS
d86014ba 384Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
fabf5a9c
ER
385Group: Development/Tools
386Requires: %{name}-common = %{version}-%{release}
78a71650 387%systempkg_req
e03112c2 388Obsoletes: qemu-kvm-system-cris
fabf5a9c
ER
389
390%description system-cris
391QEMU is a generic and open source processor emulator which achieves a
392good emulation speed by using dynamic translation.
393
d86014ba
JB
394This package provides the system emulator with CRIS CPU.
395
396%description system-cris -l pl.UTF-8
397QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
398dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
399
400Ten pakiet zawiera emulator systemu z procesorem CRIS.
fabf5a9c 401
1777be93
JP
402%package system-hppa
403Summary: QEMU system emulator for HP/PA
404Summary(pl.UTF-8): QEMU - emulator systemu z procesorem HP/PA
405Group: Development/Tools
406Requires: %{name}-common = %{version}-%{release}
407%systempkg_req
408
409%description system-hppa
410QEMU is a generic and open source processor emulator which achieves a
411good emulation speed by using dynamic translation.
412
413This package provides the system emulator with HP/PA CPU.
414
415%description system-hppa -l pl.UTF-8
416QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
417dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
418
419Ten pakiet zawiera emulator systemu z procesorem HP/PA.
420
fabf5a9c 421%package system-lm32
d86014ba
JB
422Summary: QEMU system emulator for LM32
423Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
fabf5a9c
ER
424Group: Development/Tools
425Requires: %{name}-common = %{version}-%{release}
78a71650 426%systempkg_req
e03112c2 427Obsoletes: qemu-kvm-system-lm32
fabf5a9c
ER
428
429%description system-lm32
430QEMU is a generic and open source processor emulator which achieves a
431good emulation speed by using dynamic translation.
432
d86014ba
JB
433This package provides the system emulator with LM32 CPU.
434
435%description system-lm32 -l pl.UTF-8
436QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
437dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
438
439Ten pakiet zawiera emulator systemu z procesorem LM32.
fabf5a9c
ER
440
441%package system-m68k
442Summary: QEMU system emulator for m68k
d86014ba 443Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
fabf5a9c
ER
444Group: Development/Tools
445Requires: %{name}-common = %{version}-%{release}
78a71650 446%systempkg_req
e03112c2 447Obsoletes: qemu-kvm-system-m68k
fabf5a9c
ER
448
449%description system-m68k
450QEMU is a generic and open source processor emulator which achieves a
451good emulation speed by using dynamic translation.
452
d86014ba
JB
453This package provides the system emulator with m68k CPU.
454
455%description system-m68k -l pl.UTF-8
456QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
457dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
458
459Ten pakiet zawiera emulator systemu z procesorem m68k.
fabf5a9c
ER
460
461%package system-microblaze
d86014ba
JB
462Summary: QEMU system emulator for MicroBlaze
463Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
fabf5a9c
ER
464Group: Development/Tools
465Requires: %{name}-common = %{version}-%{release}
78a71650 466%systempkg_req
e03112c2 467Obsoletes: qemu-kvm-system-microblaze
fabf5a9c
ER
468
469%description system-microblaze
470QEMU is a generic and open source processor emulator which achieves a
471good emulation speed by using dynamic translation.
472
d86014ba
JB
473This package provides the system emulator with MicroBlaze CPU.
474
475%description system-microblaze -l pl.UTF-8
476QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
477dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
478
479Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
fabf5a9c
ER
480
481%package system-mips
d86014ba
JB
482Summary: QEMU system emulator for MIPS
483Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
fabf5a9c
ER
484Group: Development/Tools
485Requires: %{name}-common = %{version}-%{release}
78a71650 486%systempkg_req
e03112c2 487Obsoletes: qemu-kvm-system-mips
fabf5a9c
ER
488
489%description system-mips
490QEMU is a generic and open source processor emulator which achieves a
491good emulation speed by using dynamic translation.
492
d86014ba
JB
493This package provides the system emulator with MIPS CPU.
494
495%description system-mips -l pl.UTF-8
496QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
497dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
498
499Ten pakiet zawiera emulator systemu z procesorem MIPS.
fabf5a9c 500
a56d4cfd
JB
501%package system-moxie
502Summary: QEMU system emulator for Moxie
503Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
504Group: Development/Tools
505Requires: %{name}-common = %{version}-%{release}
506%systempkg_req
507
508%description system-moxie
509QEMU is a generic and open source processor emulator which achieves a
510good emulation speed by using dynamic translation.
511
512This package provides the system emulator with Moxie CPU.
513
514%description system-moxie -l pl.UTF-8
515QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
516dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
517
518Ten pakiet zawiera emulator systemu z procesorem Moxie.
519
cdd6b92f
JP
520%package system-nios2
521Summary: QEMU system emulator for Nios II
522Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Nios II
523Group: Development/Tools
524Requires: %{name}-common = %{version}-%{release}
525%systempkg_req
526
527%description system-nios2
528QEMU is a generic and open source processor emulator which achieves a
529good emulation speed by using dynamic translation.
530
531This package provides the system emulator with Nios II CPU.
532
533%description system-nios2 -l pl.UTF-8
534QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
535dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
536
537Ten pakiet zawiera emulator systemu z procesorem Nios II.
538
05e8f0a4 539%package system-or1k
d86014ba
JB
540Summary: QEMU system emulator for OpenRISC
541Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
92c357d4
PS
542Group: Development/Tools
543Requires: %{name}-common = %{version}-%{release}
78a71650 544%systempkg_req
05e8f0a4 545Obsoletes: qemu-kvm-system-or1k
0eeac48d 546Obsoletes: qemu-system-or32
92c357d4 547
05e8f0a4 548%description system-or1k
92c357d4
PS
549QEMU is a generic and open source processor emulator which achieves a
550good emulation speed by using dynamic translation.
551
d86014ba
JB
552This package provides the system emulator with OpenRISC CPU.
553
05e8f0a4 554%description system-or1k -l pl.UTF-8
d86014ba
JB
555QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
556dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
557
558Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
92c357d4 559
fabf5a9c 560%package system-ppc
d86014ba
JB
561Summary: QEMU system emulator for PowerPC
562Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
fabf5a9c
ER
563Group: Development/Tools
564Requires: %{name}-common = %{version}-%{release}
78a71650 565%systempkg_req
e03112c2 566Obsoletes: qemu-kvm-system-ppc
fabf5a9c
ER
567
568%description system-ppc
569QEMU is a generic and open source processor emulator which achieves a
570good emulation speed by using dynamic translation.
571
d86014ba
JB
572This package provides the system emulator with PowerPC CPU.
573
574%description system-ppc -l pl.UTF-8
575QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
576dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
577
578Ten pakiet zawiera emulator systemu z procesorem PowerPC.
fabf5a9c 579
1777be93
JP
580%package system-riscv32
581Summary: QEMU system emulator for RISC-V (32 bit)
582Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (32 bit)
583Group: Development/Tools
584Requires: %{name}-common = %{version}-%{release}
585%systempkg_req
586
587%description system-riscv32
588QEMU is a generic and open source processor emulator which achieves a
589good emulation speed by using dynamic translation.
590
591This package provides the system emulator with RISC-V (32 bit) CPU.
592
593%description system-riscv32 -l pl.UTF-8
594QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
595dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
596
597Ten pakiet zawiera emulator systemu z procesorem RISC-V (32 bit).
598
599%package system-riscv64
600Summary: QEMU system emulator for RISC-V (64 bit)
601Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (64 bit)
602Group: Development/Tools
603Requires: %{name}-common = %{version}-%{release}
604%systempkg_req
605
606%description system-riscv64
607QEMU is a generic and open source processor emulator which achieves a
608good emulation speed by using dynamic translation.
609
610This package provides the system emulator with RISC-V (64 bit) CPU.
611
612%description system-riscv64 -l pl.UTF-8
613QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
614dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
615
616Ten pakiet zawiera emulator systemu z procesorem RISC-V (64 bit).
617
fabf5a9c 618%package system-s390x
d86014ba
JB
619Summary: QEMU system emulator for S390
620Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
fabf5a9c
ER
621Group: Development/Tools
622Requires: %{name}-common = %{version}-%{release}
78a71650 623%systempkg_req
e03112c2 624Obsoletes: qemu-kvm-system-s390x
fabf5a9c
ER
625
626%description system-s390x
627QEMU is a generic and open source processor emulator which achieves a
628good emulation speed by using dynamic translation.
629
d86014ba
JB
630This package provides the system emulator with S390 CPU.
631
632%description system-s390x -l pl.UTF-8
633QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
634dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
635
636Ten pakiet zawiera emulator systemu z procesorem S390.
fabf5a9c
ER
637
638%package system-sh4
d86014ba
JB
639Summary: QEMU system emulator for SH4
640Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
fabf5a9c
ER
641Group: Development/Tools
642Requires: %{name}-common = %{version}-%{release}
78a71650 643%systempkg_req
e03112c2 644Obsoletes: qemu-kvm-system-sh4
fabf5a9c
ER
645
646%description system-sh4
647QEMU is a generic and open source processor emulator which achieves a
648good emulation speed by using dynamic translation.
649
d86014ba
JB
650This package provides the system emulator with SH4 CPU.
651
652%description system-sh4 -l pl.UTF-8
653QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
654dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
655
656Ten pakiet zawiera emulator systemu z procesorem SH4.
fabf5a9c
ER
657
658%package system-sparc
d86014ba
JB
659Summary: QEMU system emulator for SPARC
660Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
fabf5a9c
ER
661Group: Development/Tools
662Requires: %{name}-common = %{version}-%{release}
78a71650 663%systempkg_req
e03112c2 664Obsoletes: qemu-kvm-system-sparc
fabf5a9c
ER
665
666%description system-sparc
667QEMU is a generic and open source processor emulator which achieves a
668good emulation speed by using dynamic translation.
669
d86014ba
JB
670This package provides the system emulator with SPARC/SPARC64 CPU.
671
672%description system-sparc -l pl.UTF-8
673QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
674dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
675
676Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
fabf5a9c 677
112b8450 678%package system-tricore
3187b8cc
JB
679Summary: QEMU system emulator for TriCore
680Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
112b8450
AM
681Group: Development/Tools
682Requires: %{name}-common = %{version}-%{release}
683%systempkg_req
684
685%description system-tricore
686QEMU is a generic and open source processor emulator which achieves a
687good emulation speed by using dynamic translation.
688
3187b8cc 689This package provides the system emulator with TriCore CPU.
112b8450
AM
690
691%description system-sparc -l pl.UTF-8
692QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
693dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
694
3187b8cc 695Ten pakiet zawiera emulator systemu z procesorem TriCore.
112b8450 696
72ddf007 697%package system-unicore32
d86014ba
JB
698Summary: QEMU system emulator for UniCore32
699Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
72ddf007
PS
700Group: Development/Tools
701Requires: %{name}-common = %{version}-%{release}
78a71650 702%systempkg_req
e03112c2 703Obsoletes: qemu-kvm-system-unicore32
72ddf007
PS
704
705%description system-unicore32
706QEMU is a generic and open source processor emulator which achieves a
707good emulation speed by using dynamic translation.
708
d86014ba
JB
709This package provides the system emulator with UniCore32 CPU.
710
711%description system-unicore32 -l pl.UTF-8
712QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
713dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
714
715Ten pakiet zawiera emulator systemu z procesorem UniCore32.
72ddf007 716
fabf5a9c
ER
717%package system-x86
718Summary: QEMU system emulator for x86
d86014ba 719Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
fabf5a9c
ER
720Group: Development/Tools
721Requires: %{name}-common = %{version}-%{release}
af556ac1 722%{?with_system_seabios:Requires: seabios}
78a71650 723%systempkg_req
1c6a7aa7 724Obsoletes: kvm
e03112c2 725Obsoletes: qemu-kvm-system-x86
fabf5a9c
ER
726
727%description system-x86
728QEMU is a generic and open source processor emulator which achieves a
729good emulation speed by using dynamic translation.
730
c43b327d
TP
731This package provides the system emulator with x86 CPU.
732
d86014ba
JB
733%description system-x86 -l pl.UTF-8
734QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
735dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
736
c43b327d
TP
737Ten pakiet zawiera emulator systemu z procesorem x86.
738
fabf5a9c 739%package system-xtensa
d86014ba
JB
740Summary: QEMU system emulator for Xtensa
741Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
fabf5a9c
ER
742Group: Development/Tools
743Requires: %{name}-common = %{version}-%{release}
78a71650 744%systempkg_req
e03112c2 745Obsoletes: qemu-kvm-system-xtensa
fabf5a9c
ER
746
747%description system-xtensa
748QEMU is a generic and open source processor emulator which achieves a
749good emulation speed by using dynamic translation.
750
d86014ba
JB
751This package provides the system emulator with Xtensa CPU.
752
753%description system-xtensa -l pl.UTF-8
754QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
755dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
756
757Ten pakiet zawiera emulator systemu z procesorem Xtensa.
fabf5a9c 758
93473205
JR
759%package guest-agent
760Summary: QEMU guest agent
761Summary(pl.UTF-8): Agent gościa QEMU
762Group: Daemons
763Requires(post,preun,postun): systemd-units >= 38
81e9a720 764Requires: glib2 >= 1:2.48
93473205
JR
765Requires: systemd-units >= 38
766Obsoletes: qemu-kvm-guest-agent
26472534 767Conflicts: SysVinit < 2.96-2
93473205
JR
768
769%description guest-agent
008c880e
ER
770QEMU is a generic and open source processor emulator which achieves a
771good emulation speed by using dynamic translation.
93473205
JR
772
773This package provides an agent to run inside guests, which
774communicates with the host over a virtio-serial channel named
775"org.qemu.guest_agent.0".
776
777This package does not need to be installed on the host OS.
778
779%description guest-agent -l pl.UTF-8
780QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
781dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
782
783Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
784systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
785"org.qemu.guest_agent.0".
786
787Ten pakiet nie musi być zainstalowany w systemie hosta.
788
ae1c5c71
JK
789%package module-block-curl
790Summary: QEMU module for 'curl' block devices
791Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
792Group: Development/Tools
793Requires: %{name}-common = %{version}-%{release}
794
795%description module-block-curl
796'curl' block device support for QEMU.
797
798%description module-block-curl -l pl.UTF-8
799Moduł QEMU dla urządeń blokowych typu 'curl'.
800
801%package module-block-gluster
802Summary: QEMU module for 'gluster' block devices
803Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
804Group: Development/Tools
805Requires: %{name}-common = %{version}-%{release}
81e9a720 806Requires: glusterfs-libs >= 6
ae1c5c71
JK
807
808%description module-block-gluster
809'gluster' block device support for QEMU.
810
811%description module-block-gluster -l pl.UTF-8
812Moduł QEMU dla urządeń blokowych typu 'gluster'.
813
814%package module-block-iscsi
815Summary: QEMU module for 'iscsi' block devices
816Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
817Group: Development/Tools
818Requires: %{name}-common = %{version}-%{release}
3187b8cc 819Requires: libiscsi >= 1.9.0
ae1c5c71
JK
820
821%description module-block-iscsi
822'iscsi' block device support for QEMU.
823
824%description module-block-iscsi -l pl.UTF-8
825Moduł QEMU dla urządeń blokowych typu 'iscsi'.
826
827%package module-block-rbd
828Summary: QEMU module for 'rbd' block devices
829Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
830Group: Development/Tools
831Requires: %{name}-common = %{version}-%{release}
832
833%description module-block-rbd
834'rbd' block device support for QEMU.
835
836%description module-block-rbd -l pl.UTF-8
837Moduł QEMU dla urządeń blokowych typu 'rbd'.
838
839%package module-block-ssh
840Summary: QEMU module for 'ssh' block devices
841Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
842Group: Development/Tools
843Requires: %{name}-common = %{version}-%{release}
844
845%description module-block-ssh
846'ssh' block device support for QEMU.
847
848%description module-block-ssh -l pl.UTF-8
849Moduł QEMU dla urządeń blokowych typu 'ssh'.
850
cd19124e 851%prep
c21a255a 852%setup -q
3c6e2290 853%patch0 -p1
a782bf0f
JP
854%patch1 -p0
855%patch2 -p1
99df371e 856%patch3 -p1
008c880e 857%patch4 -p1
4e8ae6f9 858%patch5 -p1
c18e9cf6 859
bd30ad73
GP
860# workaround for conflict with alsa/error.h
861ln -s ../error.h qapi/error.h
862
80bac37e 863%build
a75bdea7
ER
864
865build() {
866 local target=$1
867 shift
868
869 install -d build-$target
870 cd build-$target
871
872 ../configure \
8bd2aee2 873 --prefix=%{_prefix} \
ae1c5c71
JK
874 --libdir=%{_libdir} \
875 --libexecdir=%{_libexecdir} \
87364910 876 --sysconfdir=%{_sysconfdir} \
a75bdea7
ER
877 --localstatedir=%{_localstatedir} \
878 --interp-prefix=%{_libdir}/qemu/lib-%%M \
98a1a188
AM
879 --cc="%{__cc}" \
880 --host-cc="%{__cc}" \
5263f8f5 881 --disable-strip \
a75bdea7
ER
882 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
883 --enable-kvm \
884 "$@"
885
886 %{__make} \
887 V=1 \
888 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
889
890 cd ..
891}
892
893build dynamic \
894 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
895 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
81e9a720 896 --audio-drv-list="alsa%{?with_oss:,oss}%{?with_sdl:,sdl}%{?with_pulseaudio:,pa}" \
78a71650 897 --enable-attr \
78ff8fc0
JK
898 %{__enable_disable bluetooth bluez} \
899 %{__enable_disable brlapi} \
78a71650
JB
900 --enable-cap-ng \
901 --enable-curl \
902 --enable-curses \
87364910 903 --enable-docs \
78a71650 904 --enable-fdt \
449d43aa 905 %{__enable_disable glusterfs} \
81e9a720 906 %{!?with_gtk3:--disable-gtk} \
78ff8fc0 907 %{__enable_disable iscsi libiscsi} \
81e9a720
JB
908 %{__enable_disable libnfs} \
909 --enable-lzo \
910 %{__enable_disable multipath mpath} \
911 --enable-modules \
912 --disable-netmap \
913 --enable-nettle \
78a71650 914 %{__enable_disable ceph rbd} \
80dbeed1 915 %{__enable_disable rdma} \
78a71650 916 %{__enable_disable sdl} \
78ff8fc0 917 %{__enable_disable seccomp} \
81e9a720 918 --enable-slirp=system \
59bc1300 919 %{__enable_disable spice} \
f9d90a34 920 %{__enable_disable smartcard smartcard} \
81e9a720 921 %{__enable_disable snappy} \
ce44b534 922 --enable-tpm \
78ff8fc0 923 %{__enable_disable usbredir usb-redir} \
78a71650 924 --enable-vde \
81e9a720 925 %{__enable_disable virgl virglrenderer} \
78a71650
JB
926 --enable-virtfs \
927 --enable-vnc-jpeg \
87364910 928 --enable-vnc-png \
78a71650 929 --enable-vnc-sasl \
3187b8cc 930 %{!?with_vte:--disable-vte} \
78a71650 931 %{__enable_disable xen} \
81e9a720 932 %{__enable_disable xkbcommon}
ce44b534 933
a75bdea7
ER
934%if %{with user_static}
935build static \
936 --disable-brlapi \
937 --disable-cap-ng \
938 --disable-curl \
939 --disable-curses \
940 --disable-gcrypt \
941 --disable-gnutls \
942 --disable-gtk \
943 --disable-guest-agent \
944 --disable-guest-agent-msi \
945 --disable-libnfs \
81e9a720 946 --disable-mpath \
a75bdea7
ER
947 --disable-nettle \
948 --disable-pie \
949 --disable-sdl \
81e9a720 950 --enable-slirp=internal \
a75bdea7 951 --disable-spice \
81e9a720 952 --disable-system \
a75bdea7
ER
953 --disable-tcmalloc \
954 --disable-tools \
a75bdea7 955 --enable-user \
81e9a720 956 --disable-xkbcommon \
a75bdea7 957 --static
a75bdea7 958%endif
cd19124e 959
9fdf235e
JR
960%{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
961
cd19124e 962%install
963rm -rf $RPM_BUILD_ROOT
51327cc0 964install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
ccb0f0ea 965 $RPM_BUILD_ROOT/etc/{qemu,sysconfig,udev/rules.d,modules-load.d,rc.d/init.d,logrotate.d} \
51327cc0 966 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
5a2da1d0 967
a75bdea7
ER
968%if %{with user_static}
969%{__make} -C build-static install \
970 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
971 DESTDIR=$RPM_BUILD_ROOT
972
973# Give all QEMU user emulators a -static suffix
974for src in $RPM_BUILD_ROOT%{_bindir}/qemu-*; do
81e9a720 975 %{__mv} $src $src-static
a75bdea7
ER
976done
977
978%endif
979
980%{__make} -C build-dynamic install \
471d1276 981 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
ae1c5c71 982 DESTDIR=$RPM_BUILD_ROOT
ac6e5743 983
81e9a720
JB
984# let rpm generate dependencies
985chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.so
986
b418165e
MM
987echo "#allow br0" > $RPM_BUILD_ROOT/etc/qemu/bridge.conf
988
a91fea76 989install -d $RPM_BUILD_ROOT%{_sysconfdir}
990cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
ac6e5743 991#!/bin/sh
a91fea76 992
ac6e5743 993EOF
a62a2d89 994
5ed67169
JR
995install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
996
e53a3a53 997%ifarch %{ix86} %{x8664} x32
41ed6e2c
JR
998install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
999install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
1000%endif
1001
9fdf235e
JR
1002install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
1003install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
1004install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
1005
1006install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
1007install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
1008install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
1009
93473205
JR
1010# For the qemu-guest-agent subpackage install the systemd
1011# service and udev rules.
1012install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
1013install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
1014
ccb0f0ea
AM
1015install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga
1016install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga
1017
7babf190 1018# Install binfmt
e02a00f9 1019BINFMT_CPUS=" \
e53a3a53 1020%ifnarch %{ix86} %{x8664} x32
e02a00f9
JP
1021 i386 x86_64 \
1022%endif
1023%ifnarch aarch64
1024 aarch64 \
a78c5672 1025%endif
7babf190 1026%ifnarch alpha
e02a00f9 1027 alpha \
7babf190
ER
1028%endif
1029%ifnarch %{arm}
e02a00f9 1030 arm \
a78c5672 1031%endif
e02a00f9
JP
1032 aarch64_be \
1033 armeb \
1034 microblaze microblazeel \
7babf190 1035%ifnarch mips64
e02a00f9 1036 mips64 \
7babf190 1037%ifnarch mips
e02a00f9 1038 mips \
7babf190
ER
1039%endif
1040%endif
1041%ifnarch mips64el
e02a00f9 1042 mips64el \
7babf190 1043%ifnarch mipsel
e02a00f9 1044 mipsel \
7babf190
ER
1045%endif
1046%endif
1047%ifnarch m68k
e02a00f9 1048 m68k \
7babf190
ER
1049%endif
1050%ifnarch ppc ppc64 ppc64le
e02a00f9 1051 ppc ppc64 ppc64le \
a78c5672
JR
1052%endif
1053%ifnarch sparc sparc64
e02a00f9 1054 sparc sparc32plus sparc64 \
7babf190
ER
1055%endif
1056%ifnarch s390 s390x
e02a00f9 1057 s390x \
a78c5672
JR
1058%endif
1059%ifnarch sh4
e02a00f9 1060 sh4 \
a78c5672 1061%endif
e02a00f9
JP
1062 sh4eb \
1063"
1064
1065if [ -n "$BINFMT_CPUS" ]; then
1066 for cpu in $BINFMT_CPUS; do
1067 bash ./scripts/qemu-binfmt-conf.sh --systemd "$cpu" --exportdir $RPM_BUILD_ROOT/usr/lib/binfmt.d --qemu-path %{_bindir}
1068 done
1069 for i in /$RPM_BUILD_ROOT/usr/lib/binfmt.d/*.conf; do
1070 mv $i ${i%.conf}-dynamic.conf
1071 done
e14b0c24
ER
1072
1073 %if %{with user_static}
e02a00f9
JP
1074 for regularfmt in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*; do
1075 staticfmt="${regularfmt%\-dynamic.conf}-static.conf"
1076 cat $regularfmt | tr -d '\n' | sed "s/:$/-static:F/" > $staticfmt
1077 done
e14b0c24 1078 %endif
e02a00f9 1079fi
a78c5672 1080
68eb235d 1081# packaged as %doc
67bf71fa 1082%{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-doc.html
c33439fc 1083
af556ac1 1084%if %{with system_seabios}
ae1c5c71
JK
1085ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
1086# bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
af556ac1
JK
1087for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
1088 bn="$(basename $f)"
1089 if [ -e "/usr/share/seabios/$bn" ] ; then
1090 ln -sf "/usr/share/seabios/$bn" "$f"
1091 fi
1092done
1093%endif
1094
f4914ae2 1095%if %{with gtk3}
008c880e
ER
1096%{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
1097%{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
a56d4cfd 1098%find_lang %{name}
78ff8fc0
JK
1099%else
1100: > qemu.lang
1101%endif
a56d4cfd 1102
81e9a720
JB
1103# Windows installed icon, not used
1104%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/qemu-nsis.bmp
1105# packaged as %doc
1106%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/edk2-licenses.txt
2f80d753
JP
1107%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/qemu
1108
cd19124e 1109%clean
1110rm -rf $RPM_BUILD_ROOT
1111
c1d653f6 1112%pre common
a45c10b6 1113%groupadd -g 160 kvm
c1d653f6 1114%groupadd -g 276 qemu
a45c10b6 1115%useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
c1d653f6 1116
9fdf235e
JR
1117%post common
1118%systemd_post ksm.service
1119%systemd_post ksmtuned.service
1120
1121%preun common
1122%systemd_preun ksm.service
1123%systemd_preun ksmtuned.service
1124
c1d653f6
AG
1125%postun common
1126if [ "$1" = "0" ]; then
1127 %userremove qemu
1128 %groupremove qemu
a45c10b6 1129 %groupremove kvm
c1d653f6 1130fi
9fdf235e
JR
1131%systemd_reload
1132
1133%triggerpostun common -- qemu-common < 1.6.1-4
1134%systemd_trigger ksm.service
1135%systemd_trigger ksmtuned.service
c1d653f6 1136
a78c5672
JR
1137%post user
1138%systemd_service_restart systemd-binfmt.service
1139
1140%postun user
1141%systemd_service_restart systemd-binfmt.service
1142
e14b0c24
ER
1143%post user-static
1144%systemd_service_restart systemd-binfmt.service
1145
1146%postun user-static
1147%systemd_service_restart systemd-binfmt.service
1148
93473205 1149%post guest-agent
ccb0f0ea
AM
1150/sbin/chkconfig --add qemu-ga
1151%service qemu-ga restart "qemu-ga"
93473205
JR
1152%systemd_reload
1153
1154%preun guest-agent
ccb0f0ea 1155if [ "$1" = "0" ]; then
c43b327d
TP
1156 %service qemu-ga stop
1157 /sbin/chkconfig --del qemu-ga
ccb0f0ea 1158fi
93473205
JR
1159%systemd_preun qemu-guest-agent.service
1160
1161%postun guest-agent
1162%systemd_reload
1163
cd19124e 1164%files
1165%defattr(644,root,root,755)
fabf5a9c 1166
a56d4cfd 1167%files common -f %{name}.lang
fabf5a9c 1168%defattr(644,root,root,755)
81e9a720 1169%doc LICENSE README.rst build-dynamic/qemu-doc.html pc-bios/edk2-licenses.txt
a91fea76 1170%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
c980f439 1171%config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
5ed67169 1172%config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
c980f439 1173%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
b418165e
MM
1174%dir /etc/qemu
1175%attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf
c980f439
JR
1176%{systemdunitdir}/ksm.service
1177%{systemdunitdir}/ksmtuned.service
2f80d753 1178%attr(755,root,root) %{_bindir}/elf2dmp
56eebfcf
AM
1179%attr(755,root,root) %{_bindir}/ivshmem-client
1180%attr(755,root,root) %{_bindir}/ivshmem-server
5263f8f5 1181%attr(755,root,root) %{_bindir}/virtfs-proxy-helper
2f80d753 1182%attr(755,root,root) %{_bindir}/qemu-edid
81e9a720
JB
1183%if %{with xkbcommon}
1184%attr(755,root,root) %{_bindir}/qemu-keymap
1185%endif
fabf5a9c 1186%attr(755,root,root) %{_bindir}/qemu-nbd
1f265cee 1187%attr(755,root,root) %{_bindir}/qemu-pr-helper
56eebfcf 1188%attr(755,root,root) %{_bindir}/qemu-tilegx
c980f439
JR
1189%attr(755,root,root) %{_sbindir}/ksmctl
1190%attr(755,root,root) %{_sbindir}/ksmtuned
81e9a720 1191%attr(755,root,root) %{_libexecdir}/qemu-bridge-helper
cd19124e 1192%{_mandir}/man1/qemu.1*
5263f8f5 1193%{_mandir}/man1/virtfs-proxy-helper.1*
2f80d753 1194%{_mandir}/man7/qemu-cpu-models.7*
1f265cee 1195%{_mandir}/man7/qemu-block-drivers.7*
81e9a720 1196%{_mandir}/man7/qemu-qmp-ref.7*
98a1a188 1197%{_mandir}/man8/qemu-nbd.8*
fabf5a9c 1198
81e9a720 1199%dir %{_datadir}/%{name}
290ffd23 1200%dir %{_datadir}/%{name}/firmware
fabf5a9c 1201%{_datadir}/%{name}/keymaps
3ae34e73 1202%{_datadir}/%{name}/trace-events-all
81e9a720
JB
1203%{_desktopdir}/qemu.desktop
1204%{_iconsdir}/hicolor/*x*/apps/qemu.png
1205%{_iconsdir}/hicolor/32x32/apps/qemu.bmp
1206%{_iconsdir}/hicolor/scalable/apps/qemu.svg
fabf5a9c 1207
ae1c5c71
JK
1208%dir %{_libdir}/%{name}
1209
54b666b7 1210# modules without too many external dependencies
67bf71fa 1211%attr(755,root,root) %{_libdir}/%{name}/block-dmg-bz2.so
81e9a720
JB
1212%attr(755,root,root) %{_libdir}/%{name}/block-dmg-lzfse.so
1213%if %{with libnfs}
1214%attr(755,root,root) %{_libdir}/%{name}/block-nfs.so
1215%endif
54b666b7 1216
1777be93 1217%attr(755,root,root) %{_libdir}/%{name}/audio-alsa.so
81e9a720
JB
1218%if %{with oss}
1219%attr(755,root,root) %{_libdir}/%{name}/audio-oss.so
1220%endif
1221%if %{with pulseaudio}
1222%attr(755,root,root) %{_libdir}/%{name}/audio-pa.so
1223%endif
1224
1777be93 1225%attr(755,root,root) %{_libdir}/%{name}/ui-curses.so
f4914ae2 1226%if %{with gtk3}
1777be93 1227%attr(755,root,root) %{_libdir}/%{name}/ui-gtk.so
32bf0518 1228%endif
81e9a720
JB
1229%if %{with sdl}
1230%attr(755,root,root) %{_libdir}/%{name}/audio-sdl.so
1231%attr(755,root,root) %{_libdir}/%{name}/ui-sdl.so
1232%endif
1233%if %{with spice}
1234%attr(755,root,root) %{_libdir}/%{name}/ui-spice-app.so
1235%endif
1777be93 1236
fabf5a9c
ER
1237%files img
1238%defattr(644,root,root,755)
1239%attr(755,root,root) %{_bindir}/qemu-img
1240%{_mandir}/man1/qemu-img.1*
1241
1242%files user
1243%defattr(644,root,root,755)
e14b0c24 1244/usr/lib/binfmt.d/qemu-*-dynamic.conf
ae1c5c71 1245%attr(755,root,root) %{_bindir}/qemu-aarch64
1777be93 1246%attr(755,root,root) %{_bindir}/qemu-aarch64_be
fabf5a9c
ER
1247%attr(755,root,root) %{_bindir}/qemu-alpha
1248%attr(755,root,root) %{_bindir}/qemu-arm
1249%attr(755,root,root) %{_bindir}/qemu-armeb
1250%attr(755,root,root) %{_bindir}/qemu-cris
cdd6b92f 1251%attr(755,root,root) %{_bindir}/qemu-hppa
59bc1300 1252%attr(755,root,root) %{_bindir}/qemu-i386
fabf5a9c
ER
1253%attr(755,root,root) %{_bindir}/qemu-io
1254%attr(755,root,root) %{_bindir}/qemu-m68k
1255%attr(755,root,root) %{_bindir}/qemu-microblaze
1256%attr(755,root,root) %{_bindir}/qemu-microblazeel
1257%attr(755,root,root) %{_bindir}/qemu-mips
1258%attr(755,root,root) %{_bindir}/qemu-mipsel
a56d4cfd
JB
1259%attr(755,root,root) %{_bindir}/qemu-mips64
1260%attr(755,root,root) %{_bindir}/qemu-mips64el
1261%attr(755,root,root) %{_bindir}/qemu-mipsn32
1262%attr(755,root,root) %{_bindir}/qemu-mipsn32el
cdd6b92f 1263%attr(755,root,root) %{_bindir}/qemu-nios2
05e8f0a4 1264%attr(755,root,root) %{_bindir}/qemu-or1k
fabf5a9c
ER
1265%attr(755,root,root) %{_bindir}/qemu-ppc
1266%attr(755,root,root) %{_bindir}/qemu-ppc64
1267%attr(755,root,root) %{_bindir}/qemu-ppc64abi32
f39d158a 1268%attr(755,root,root) %{_bindir}/qemu-ppc64le
1777be93
JP
1269%attr(755,root,root) %{_bindir}/qemu-riscv32
1270%attr(755,root,root) %{_bindir}/qemu-riscv64
fabf5a9c
ER
1271%attr(755,root,root) %{_bindir}/qemu-s390x
1272%attr(755,root,root) %{_bindir}/qemu-sh4
1273%attr(755,root,root) %{_bindir}/qemu-sh4eb
1274%attr(755,root,root) %{_bindir}/qemu-sparc
1275%attr(755,root,root) %{_bindir}/qemu-sparc32plus
1276%attr(755,root,root) %{_bindir}/qemu-sparc64
59bc1300 1277%attr(755,root,root) %{_bindir}/qemu-x86_64
1777be93
JP
1278%attr(755,root,root) %{_bindir}/qemu-xtensa
1279%attr(755,root,root) %{_bindir}/qemu-xtensaeb
fabf5a9c 1280
a75bdea7
ER
1281%if %{with user_static}
1282%files user-static
1283%defattr(644,root,root,755)
e14b0c24 1284/usr/lib/binfmt.d/qemu-*-static.conf
a75bdea7 1285%attr(755,root,root) %{_bindir}/qemu-aarch64-static
1777be93 1286%attr(755,root,root) %{_bindir}/qemu-aarch64_be-static
a75bdea7
ER
1287%attr(755,root,root) %{_bindir}/qemu-alpha-static
1288%attr(755,root,root) %{_bindir}/qemu-arm-static
1289%attr(755,root,root) %{_bindir}/qemu-armeb-static
1290%attr(755,root,root) %{_bindir}/qemu-cris-static
cdd6b92f 1291%attr(755,root,root) %{_bindir}/qemu-hppa-static
a75bdea7
ER
1292%attr(755,root,root) %{_bindir}/qemu-i386-static
1293%attr(755,root,root) %{_bindir}/qemu-m68k-static
1294%attr(755,root,root) %{_bindir}/qemu-microblaze-static
1295%attr(755,root,root) %{_bindir}/qemu-microblazeel-static
1296%attr(755,root,root) %{_bindir}/qemu-mips-static
1297%attr(755,root,root) %{_bindir}/qemu-mips64-static
1298%attr(755,root,root) %{_bindir}/qemu-mips64el-static
1299%attr(755,root,root) %{_bindir}/qemu-mipsel-static
1300%attr(755,root,root) %{_bindir}/qemu-mipsn32-static
1301%attr(755,root,root) %{_bindir}/qemu-mipsn32el-static
cdd6b92f 1302%attr(755,root,root) %{_bindir}/qemu-nios2-static
05e8f0a4 1303%attr(755,root,root) %{_bindir}/qemu-or1k-static
a75bdea7
ER
1304%attr(755,root,root) %{_bindir}/qemu-ppc-static
1305%attr(755,root,root) %{_bindir}/qemu-ppc64-static
1306%attr(755,root,root) %{_bindir}/qemu-ppc64abi32-static
1307%attr(755,root,root) %{_bindir}/qemu-ppc64le-static
1777be93
JP
1308%attr(755,root,root) %{_bindir}/qemu-riscv32-static
1309%attr(755,root,root) %{_bindir}/qemu-riscv64-static
a75bdea7
ER
1310%attr(755,root,root) %{_bindir}/qemu-s390x-static
1311%attr(755,root,root) %{_bindir}/qemu-sh4-static
1312%attr(755,root,root) %{_bindir}/qemu-sh4eb-static
1313%attr(755,root,root) %{_bindir}/qemu-sparc-static
1314%attr(755,root,root) %{_bindir}/qemu-sparc32plus-static
1315%attr(755,root,root) %{_bindir}/qemu-sparc64-static
1316%attr(755,root,root) %{_bindir}/qemu-tilegx-static
a75bdea7 1317%attr(755,root,root) %{_bindir}/qemu-x86_64-static
1777be93
JP
1318%attr(755,root,root) %{_bindir}/qemu-xtensa-static
1319%attr(755,root,root) %{_bindir}/qemu-xtensaeb-static
a75bdea7
ER
1320%endif
1321
ae1c5c71
JK
1322%files system-aarch64
1323%defattr(644,root,root,755)
1324%attr(755,root,root) %{_bindir}/qemu-system-aarch64
290ffd23
JP
1325%{_datadir}/%{name}/edk2-aarch64-code.fd
1326%{_datadir}/%{name}/firmware/60-edk2-aarch64.json
ae1c5c71 1327
fabf5a9c
ER
1328%files system-alpha
1329%defattr(644,root,root,755)
1330%attr(755,root,root) %{_bindir}/qemu-system-alpha
81e9a720 1331%{_datadir}/%{name}/palcode-clipper
fabf5a9c
ER
1332
1333%files system-arm
1334%defattr(644,root,root,755)
1335%attr(755,root,root) %{_bindir}/qemu-system-arm
290ffd23
JP
1336%{_datadir}/%{name}/edk2-arm-code.fd
1337%{_datadir}/%{name}/edk2-arm-vars.fd
1338%{_datadir}/%{name}/firmware/60-edk2-arm.json
fabf5a9c
ER
1339
1340%files system-cris
1341%defattr(644,root,root,755)
1342%attr(755,root,root) %{_bindir}/qemu-system-cris
1343
1777be93
JP
1344%files system-hppa
1345%defattr(644,root,root,755)
1346%attr(755,root,root) %{_bindir}/qemu-system-hppa
1347%{_datadir}/%{name}/hppa-firmware.img
1348
fabf5a9c
ER
1349%files system-lm32
1350%defattr(644,root,root,755)
1351%attr(755,root,root) %{_bindir}/qemu-system-lm32
1352
1353%files system-m68k
1354%defattr(644,root,root,755)
1355%attr(755,root,root) %{_bindir}/qemu-system-m68k
1356
1357%files system-microblaze
1358%defattr(644,root,root,755)
1359%attr(755,root,root) %{_bindir}/qemu-system-microblaze
1360%attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1361
1362%files system-mips
1363%defattr(644,root,root,755)
1364%attr(755,root,root) %{_bindir}/qemu-system-mips
1365%attr(755,root,root) %{_bindir}/qemu-system-mipsel
1366%attr(755,root,root) %{_bindir}/qemu-system-mips64
1367%attr(755,root,root) %{_bindir}/qemu-system-mips64el
1368
a56d4cfd
JB
1369%files system-moxie
1370%defattr(644,root,root,755)
1371%attr(755,root,root) %{_bindir}/qemu-system-moxie
1372
cdd6b92f
JP
1373%files system-nios2
1374%defattr(644,root,root,755)
1375%attr(755,root,root) %{_bindir}/qemu-system-nios2
1376
05e8f0a4 1377%files system-or1k
92c357d4 1378%defattr(644,root,root,755)
05e8f0a4 1379%attr(755,root,root) %{_bindir}/qemu-system-or1k
92c357d4 1380
fabf5a9c
ER
1381%files system-ppc
1382%defattr(644,root,root,755)
1383%attr(755,root,root) %{_bindir}/qemu-system-ppc
1384%attr(755,root,root) %{_bindir}/qemu-system-ppc64
81e9a720 1385%{_datadir}/%{name}/bamboo.dtb
1777be93 1386%{_datadir}/%{name}/canyonlands.dtb
81e9a720
JB
1387%{_datadir}/%{name}/openbios-ppc
1388%{_datadir}/%{name}/petalogix-ml605.dtb
1389%{_datadir}/%{name}/petalogix-s3adsp1800.dtb
1390%{_datadir}/%{name}/ppc_rom.bin
b3255247 1391%{_datadir}/%{name}/qemu_vga.ndrv
81e9a720
JB
1392%{_datadir}/%{name}/skiboot.lid
1393%{_datadir}/%{name}/slof.bin
f39d158a 1394%{_datadir}/%{name}/u-boot.e500
1777be93
JP
1395%{_datadir}/%{name}/u-boot-sam460-20100605.bin
1396
1397%files system-riscv32
1398%defattr(644,root,root,755)
1399%attr(755,root,root) %{_bindir}/qemu-system-riscv32
290ffd23 1400%{_datadir}/%{name}/opensbi-riscv32-virt-fw_jump.bin
1777be93
JP
1401
1402%files system-riscv64
1403%defattr(644,root,root,755)
1404%attr(755,root,root) %{_bindir}/qemu-system-riscv64
290ffd23
JP
1405%{_datadir}/%{name}/opensbi-riscv64-sifive_u-fw_jump.bin
1406%{_datadir}/%{name}/opensbi-riscv64-virt-fw_jump.bin
fabf5a9c
ER
1407
1408%files system-s390x
1409%defattr(644,root,root,755)
1410%attr(755,root,root) %{_bindir}/qemu-system-s390x
81e9a720 1411%{_datadir}/%{name}/s390-ccw.img
b3255247 1412%{_datadir}/%{name}/s390-netboot.img
fabf5a9c
ER
1413
1414%files system-sh4
1415%defattr(644,root,root,755)
1416%attr(755,root,root) %{_bindir}/qemu-system-sh4
1417%attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1418
1419%files system-sparc
1420%defattr(644,root,root,755)
1421%attr(755,root,root) %{_bindir}/qemu-system-sparc
1422%attr(755,root,root) %{_bindir}/qemu-system-sparc64
81e9a720
JB
1423%{_datadir}/%{name}/QEMU,cgthree.bin
1424%{_datadir}/%{name}/QEMU,tcx.bin
1425%{_datadir}/%{name}/openbios-sparc32
1426%{_datadir}/%{name}/openbios-sparc64
fabf5a9c 1427
112b8450
AM
1428%files system-tricore
1429%defattr(644,root,root,755)
1430%attr(755,root,root) %{_bindir}/qemu-system-tricore
1431
72ddf007
PS
1432%files system-unicore32
1433%defattr(644,root,root,755)
1434%attr(755,root,root) %{_bindir}/qemu-system-unicore32
1435
fabf5a9c
ER
1436%files system-x86
1437%defattr(644,root,root,755)
1438%attr(755,root,root) %{_bindir}/qemu-system-i386
1439%attr(755,root,root) %{_bindir}/qemu-system-x86_64
e53a3a53 1440%ifarch %{ix86} %{x8664} x32
41ed6e2c
JR
1441%config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1442%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
41ed6e2c 1443%endif
af556ac1 1444%{_datadir}/%{name}/bios.bin
ae1c5c71 1445%{_datadir}/%{name}/bios-256k.bin
26eb5196 1446%{_datadir}/%{name}/bios-microvm.bin
290ffd23
JP
1447%{_datadir}/%{name}/edk2-i386-code.fd
1448%{_datadir}/%{name}/edk2-i386-secure-code.fd
1449%{_datadir}/%{name}/edk2-i386-vars.fd
1450%{_datadir}/%{name}/edk2-x86_64-code.fd
1451%{_datadir}/%{name}/edk2-x86_64-secure-code.fd
81e9a720
JB
1452%{_datadir}/%{name}/efi-e1000e.rom
1453%{_datadir}/%{name}/efi-e1000.rom
1454%{_datadir}/%{name}/efi-eepro100.rom
1455%{_datadir}/%{name}/efi-ne2k_pci.rom
1456%{_datadir}/%{name}/efi-pcnet.rom
1457%{_datadir}/%{name}/efi-rtl8139.rom
1458%{_datadir}/%{name}/efi-virtio.rom
1459%{_datadir}/%{name}/efi-vmxnet3.rom
1460%{_datadir}/%{name}/kvmvapic.bin
1461%{_datadir}/%{name}/linuxboot.bin
1462%{_datadir}/%{name}/linuxboot_dma.bin
1463%{_datadir}/%{name}/multiboot.bin
1464%{_datadir}/%{name}/pvh.bin
1465%{_datadir}/%{name}/pxe-e1000.rom
1466%{_datadir}/%{name}/pxe-eepro100.rom
1467%{_datadir}/%{name}/pxe-ne2k_pci.rom
1468%{_datadir}/%{name}/pxe-pcnet.rom
1469%{_datadir}/%{name}/pxe-rtl8139.rom
1470%{_datadir}/%{name}/pxe-virtio.rom
1471%{_datadir}/%{name}/sgabios.bin
1472%{_datadir}/%{name}/vgabios.bin
1473%{_datadir}/%{name}/vgabios-ati.bin
1474%{_datadir}/%{name}/vgabios-bochs-display.bin
1475%{_datadir}/%{name}/vgabios-cirrus.bin
1476%{_datadir}/%{name}/vgabios-qxl.bin
1477%{_datadir}/%{name}/vgabios-ramfb.bin
1478%{_datadir}/%{name}/vgabios-stdvga.bin
1479%{_datadir}/%{name}/vgabios-virtio.bin
1480%{_datadir}/%{name}/vgabios-vmware.bin
290ffd23
JP
1481%{_datadir}/%{name}/firmware/50-edk2-i386-secure.json
1482%{_datadir}/%{name}/firmware/50-edk2-x86_64-secure.json
1483%{_datadir}/%{name}/firmware/60-edk2-i386.json
1484%{_datadir}/%{name}/firmware/60-edk2-x86_64.json
fabf5a9c
ER
1485
1486%files system-xtensa
1487%defattr(644,root,root,755)
1488%attr(755,root,root) %{_bindir}/qemu-system-xtensa
1489%attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
93473205
JR
1490
1491%files guest-agent
008c880e 1492%defattr(644,root,root,755)
93473205
JR
1493%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
1494%{systemdunitdir}/qemu-guest-agent.service
ccb0f0ea
AM
1495%attr(754,root,root) /etc/rc.d/init.d/qemu-ga
1496%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/qemu-ga
93473205 1497%attr(755,root,root) %{_bindir}/qemu-ga
2f80d753 1498%{_mandir}/man7/qemu-ga-ref.7*
56eebfcf 1499%{_mandir}/man8/qemu-ga.8*
ae1c5c71
JK
1500
1501%files module-block-curl
1502%defattr(644,root,root,755)
1503%attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1504
c218d8d3 1505%if %{with glusterfs}
ae1c5c71
JK
1506%files module-block-gluster
1507%defattr(644,root,root,755)
1508%attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
c218d8d3 1509%endif
ae1c5c71 1510
c218d8d3 1511%if %{with iscsi}
ae1c5c71
JK
1512%files module-block-iscsi
1513%defattr(644,root,root,755)
1514%attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
c218d8d3 1515%endif
ae1c5c71 1516
c218d8d3 1517%if %{with ceph}
ae1c5c71
JK
1518%files module-block-rbd
1519%defattr(644,root,root,755)
1520%attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
c218d8d3 1521%endif
ae1c5c71
JK
1522
1523%files module-block-ssh
1524%defattr(644,root,root,755)
1525%attr(755,root,root) %{_libdir}/%{name}/block-ssh.so
This page took 0.424836 seconds and 4 git commands to generate.