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