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