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