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