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