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