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