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