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