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