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