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