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