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