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