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