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