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