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