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