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