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