]> git.pld-linux.org Git - packages/qemu.git/blame - qemu.spec
'without smartcard' bcond fix
[packages/qemu.git] / qemu.spec
CommitLineData
0b920c52 1#
6aef4654 2# Conditional build:
78a71650 3%bcond_without sdl # SDL UI and audio support
ce44b534 4%bcond_without glx # OpenGL/GLX support
78a71650 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
78ff8fc0 9%bcond_without gtk3 # Do not build 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
19%bcond_without seccomp # seccomp support
20%bcond_without usbredir # usb network redirection support
21
22%if %{with gtk2}
23%undefine with_gtk3
24%endif
ae8bf749 25
cd19124e 26Summary: QEMU CPU Emulator
eec0535a 27Summary(pl.UTF-8): QEMU - emulator procesora
7b81d160 28Name: qemu
4e8ae6f9
JB
29Version: 1.7.1
30Release: 1
78a71650 31License: GPL v2+
5a2da1d0 32Group: Applications/Emulators
46ca1df6 33Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
4e8ae6f9 34# Source0-md5: 9541063d999cf9659ed7fdce71314f31
008c880e 35Source2: %{name}.binfmt
41ed6e2c
JR
36# Loads kvm kernel modules at boot
37Source3: kvm-modules-load.conf
38# Creates /dev/kvm
39Source4: 80-kvm.rules
9fdf235e
JR
40# KSM control scripts
41Source5: ksm.service
42Source6: ksm.sysconfig
43Source7: ksmctl.c
44Source8: ksmtuned.service
45Source9: ksmtuned
46Source10: ksmtuned.conf
008c880e
ER
47Source11: %{name}-guest-agent.service
48Source12: 99-%{name}-guest-agent.rules
9bcd4ab6 49Patch0: %{name}-cflags.patch
d9002706 50Patch1: vgabios-widescreens.patch
449d43aa
JB
51Patch2: %{name}-whitelist.patch
52Patch3: %{name}-system-libcacard.patch
008c880e 53Patch4: vmdk3ro.patch
4e8ae6f9 54Patch5: %{name}-xattr.patch
108b8fca 55Patch6: libjpeg-boolean.patch
81a493f2 56# Proof of concept, for reference, do not remove
008c880e 57Patch400: %{name}-kde_virtual_workspaces_hack.patch
ae8bf749 58URL: http://www.qemu-project.org/
78a71650
JB
59%{?with_opengl:BuildRequires: OpenGL-GLX-devel}
60%{?with_sdl:BuildRequires: SDL-devel >= 1.2.1}
b0b3ca8d 61BuildRequires: alsa-lib-devel
008c880e 62BuildRequires: bcc
78ff8fc0
JK
63%{?with_bluetooth:BuildRequires: bluez-libs-devel}
64%{?with_brlapi:BuildRequires: brlapi-devel}
78a71650
JB
65%{?with_ceph:BuildRequires: ceph-devel}
66BuildRequires: curl-devel
67BuildRequires: cyrus-sasl-devel >= 2
68%{?with_esd:BuildRequires: esound-devel}
69BuildRequires: glib2-devel >= 1:2.12
1ffe7dfd 70%{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
b99b1652 71BuildRequires: gnutls-devel
87364910 72BuildRequires: libaio-devel
78ff8fc0 73%{?with_smartcard:BuildRequires: libcacard-devel}
78a71650
JB
74BuildRequires: libcap-devel
75BuildRequires: libcap-ng-devel
76BuildRequires: libfdt-devel
80dbeed1 77%{?with_rdma:BuildRequires: libibverbs-devel}
78ff8fc0 78%{?with_iscsi:BuildRequires: libiscsi-devel}
78a71650
JB
79BuildRequires: libjpeg-devel
80BuildRequires: libpng-devel
80dbeed1 81%{?with_rdma:BuildRequires: librdmacm-devel}
78ff8fc0 82%{?with_seccomp:BuildRequires: libseccomp-devel}
ce44b534
JB
83BuildRequires: libssh2-devel >= 1.2.8
84# for usb passthrough, when available
85#BuildRequires: libusb-devel >= 1.0.13
78a71650 86BuildRequires: libuuid-devel
98a1a188 87BuildRequires: ncurses-devel
78ff8fc0 88%{?with_smartcard:BuildRequires: nss-devel >= 3.12.8}
995bac8b 89BuildRequires: perl-Encode
2fb8ea02 90BuildRequires: perl-tools-pod
ba84a935 91BuildRequires: pkgconfig
78a71650 92%{?with_pulseaudio:BuildRequires: pulseaudio-devel}
1c6a7aa7 93BuildRequires: rpmbuild(macros) >= 1.644
8bb1261c 94BuildRequires: sed >= 4.0
59bc1300 95%if %{with spice}
e8a4bb4c
GPP
96BuildRequires: spice-protocol >= 0.12.0
97BuildRequires: spice-server-devel >= 0.12.0
59bc1300 98%endif
a1146336 99BuildRequires: texi2html
22f71ecb 100BuildRequires: texinfo
78ff8fc0 101%{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
78a71650 102BuildRequires: vde2-devel
cad677a4 103BuildRequires: which
78a71650
JB
104%{?with_xen:BuildRequires: xen-devel >= 3.4}
105BuildRequires: xfsprogs-devel
ba84a935 106BuildRequires: xorg-lib-libX11-devel
78a71650 107BuildRequires: zlib-devel
ce44b534
JB
108%if %{with gtk2}
109BuildRequires: gtk+2-devel >= 2:2.18.0
110BuildRequires: vte0-devel >= 0.24.0
78ff8fc0
JK
111%endif
112%if %{with gtk3}
ce44b534
JB
113BuildRequires: gtk+3-devel >= 3.0.0
114BuildRequires: vte-devel >= 0.32.0
115%endif
fabf5a9c
ER
116Requires: %{name}-img = %{version}-%{release}
117Requires: %{name}-system-alpha = %{version}-%{release}
118Requires: %{name}-system-arm = %{version}-%{release}
119Requires: %{name}-system-cris = %{version}-%{release}
120Requires: %{name}-system-lm32 = %{version}-%{release}
121Requires: %{name}-system-m68k = %{version}-%{release}
122Requires: %{name}-system-microblaze = %{version}-%{release}
123Requires: %{name}-system-mips = %{version}-%{release}
a56d4cfd 124Requires: %{name}-system-moxie = %{version}-%{release}
92c357d4 125Requires: %{name}-system-or32 = %{version}-%{release}
ae8bf749 126Requires: %{name}-system-ppc = %{version}-%{release}
fabf5a9c
ER
127Requires: %{name}-system-s390x = %{version}-%{release}
128Requires: %{name}-system-sh4 = %{version}-%{release}
129Requires: %{name}-system-sparc = %{version}-%{release}
72ddf007 130Requires: %{name}-system-unicore32 = %{version}-%{release}
fabf5a9c
ER
131Requires: %{name}-system-x86 = %{version}-%{release}
132Requires: %{name}-system-xtensa = %{version}-%{release}
133Requires: %{name}-user = %{version}-%{release}
e03112c2 134Obsoletes: qemu-kvm
cd19124e 135BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
136
78a71650 137%define systempkg_req \
449d43aa 138Requires: SDL >= 1.2.1 \
78ff8fc0 139%if %{with usbredir} \
ce44b534 140Requires: usbredir >= 0.6 \
78ff8fc0 141%endif \
ce44b534
JB
142%if %{with gtk2} \
143Requires: gtk+2 >= 2:2.18.0 \
144Requires: vte0 >= 0.24.0 \
78ff8fc0
JK
145%endif \
146%if %{with gtk3} \
ce44b534
JB
147Requires: gtk+3 >= 3.0.0 \
148Requires: vte >= 0.32.0 \
149%endif
78a71650 150
98a1a188 151# some PPC/SPARC boot image in ELF format
22f71ecb 152%define _noautostrip .*%{_datadir}/qemu/.*-.*
a154aede 153
cd19124e 154%description
155QEMU is a FAST! processor emulator. By using dynamic translation it
156achieves a reasonnable speed while being easy to port on new host
157CPUs. QEMU has two operating modes:
158
159- User mode emulation. In this mode, QEMU can launch Linux processes
160 compiled for one CPU on another CPU. Linux system calls are converted
161 because of endianness and 32/64 bit mismatches. Wine (Windows
162 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
163
164- Full system emulation. In this mode, QEMU emulates a full system,
8799423b
ER
165 including a processor and various peripherials. It can also be used to
166 provide virtual hosting of several virtual PC on a single server.
cd19124e 167
27b30e9c
JR
168%description -l pl.UTF-8
169QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
170tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
171aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
5a2da1d0 172
27b30e9c 173- Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
5a2da1d0 174 procesy linuksowe skompilowane dla jednego procesora na innym
27b30e9c
JR
175 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
176 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
177 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
5a2da1d0
JB
178 cele QEMU.
179
27b30e9c
JR
180- Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
181 włączając w to procesor i różne urządzenia peryferyjne. Może być także
182 używane do wirtualnego hostowania kilku wirtualnych pecetów na
8799423b 183 pojedynczym serwerze.
5a2da1d0 184
d86014ba 185%package common
fabf5a9c 186Summary: QEMU common files needed by all QEMU targets
d86014ba 187Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
fabf5a9c 188Group: Development/Tools
c980f439 189Requires(post,preun,postun): systemd-units >= 38
14b9f266
AG
190Requires(postun): /usr/sbin/groupdel
191Requires(postun): /usr/sbin/userdel
192Requires(pre): /bin/id
193Requires(pre): /usr/bin/getgid
194Requires(pre): /usr/sbin/groupadd
195Requires(pre): /usr/sbin/useradd
ce44b534
JB
196Requires: glib2 >= 1:2.12
197Requires: libssh2 >= 1.2.8
c980f439 198Requires: systemd-units >= 38
14b9f266
AG
199Provides: group(qemu)
200Provides: user(qemu)
e03112c2 201Obsoletes: qemu-kvm-common
fabf5a9c
ER
202Conflicts: qemu < 1.0-2
203
204%description common
205QEMU is a generic and open source processor emulator which achieves a
206good emulation speed by using dynamic translation.
207
208This package provides the common files needed by all QEMU targets.
209
d86014ba
JB
210%description common -l pl.UTF-8
211QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
212dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
213
214Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
215środowiska QEMU.
216
217%package img
fabf5a9c 218Summary: QEMU command line tool for manipulating disk images
d86014ba 219Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
fabf5a9c 220Group: Development/Tools
e03112c2 221Obsoletes: qemu-kvm-img
008c880e 222Conflicts: qemu < 1.0-2
fabf5a9c
ER
223
224%description img
d86014ba
JB
225This package provides a command line tool for manipulating disk
226images.
227
228%description img -l pl.UTF-8
229Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
230na obrazach dysków.
fabf5a9c
ER
231
232%package user
233Summary: QEMU user mode emulation of qemu targets
d86014ba 234Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
fabf5a9c
ER
235Group: Development/Tools
236Requires: %{name}-common = %{version}-%{release}
1c6a7aa7
JR
237Requires(post,postun): systemd-units >= 38
238Requires: systemd-units >= 38
e03112c2 239Obsoletes: qemu-kvm-user
fabf5a9c
ER
240
241%description user
242QEMU is a generic and open source processor emulator which achieves a
243good emulation speed by using dynamic translation.
244
245This package provides the user mode emulation of QEMU targets.
246
d86014ba
JB
247%description user -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 emulację trybu użytkownika środowisk QEMU.
252
fabf5a9c 253%package system-alpha
d86014ba
JB
254Summary: QEMU system emulator for Alpha
255Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
fabf5a9c
ER
256Group: Development/Tools
257Requires: %{name}-common = %{version}-%{release}
78a71650 258%systempkg_req
e03112c2 259Obsoletes: qemu-kvm-system-alpha
fabf5a9c
ER
260
261%description system-alpha
262QEMU is a generic and open source processor emulator which achieves a
263good emulation speed by using dynamic translation.
264
d86014ba
JB
265This package provides the system emulator with Alpha CPU.
266
267%description system-alpha -l pl.UTF-8
268QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
269dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
270
271Ten pakiet zawiera emulator systemu z procesorem Alpha.
fabf5a9c
ER
272
273%package system-arm
d86014ba
JB
274Summary: QEMU system emulator for ARM
275Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
fabf5a9c
ER
276Group: Development/Tools
277Requires: %{name}-common = %{version}-%{release}
78a71650 278%systempkg_req
e03112c2 279Obsoletes: qemu-kvm-system-arm
fabf5a9c
ER
280
281%description system-arm
282QEMU is a generic and open source processor emulator which achieves a
283good emulation speed by using dynamic translation.
284
d86014ba
JB
285This package provides the system emulator for ARM.
286
287%description system-arm -l pl.UTF-8
288QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
289dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
290
291Ten pakiet zawiera emulator systemu z procesorem ARM.
fabf5a9c
ER
292
293%package system-cris
59bc1300 294Summary: QEMU system emulator for CRIS
d86014ba 295Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
fabf5a9c
ER
296Group: Development/Tools
297Requires: %{name}-common = %{version}-%{release}
78a71650 298%systempkg_req
e03112c2 299Obsoletes: qemu-kvm-system-cris
fabf5a9c
ER
300
301%description system-cris
302QEMU is a generic and open source processor emulator which achieves a
303good emulation speed by using dynamic translation.
304
d86014ba
JB
305This package provides the system emulator with CRIS CPU.
306
307%description system-cris -l pl.UTF-8
308QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
309dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
310
311Ten pakiet zawiera emulator systemu z procesorem CRIS.
fabf5a9c
ER
312
313%package system-lm32
d86014ba
JB
314Summary: QEMU system emulator for LM32
315Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
fabf5a9c
ER
316Group: Development/Tools
317Requires: %{name}-common = %{version}-%{release}
78a71650 318%systempkg_req
e03112c2 319Obsoletes: qemu-kvm-system-lm32
fabf5a9c
ER
320
321%description system-lm32
322QEMU is a generic and open source processor emulator which achieves a
323good emulation speed by using dynamic translation.
324
d86014ba
JB
325This package provides the system emulator with LM32 CPU.
326
327%description system-lm32 -l pl.UTF-8
328QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
329dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
330
331Ten pakiet zawiera emulator systemu z procesorem LM32.
fabf5a9c
ER
332
333%package system-m68k
334Summary: QEMU system emulator for m68k
d86014ba 335Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
fabf5a9c
ER
336Group: Development/Tools
337Requires: %{name}-common = %{version}-%{release}
78a71650 338%systempkg_req
e03112c2 339Obsoletes: qemu-kvm-system-m68k
fabf5a9c
ER
340
341%description system-m68k
342QEMU is a generic and open source processor emulator which achieves a
343good emulation speed by using dynamic translation.
344
d86014ba
JB
345This package provides the system emulator with m68k CPU.
346
347%description system-m68k -l pl.UTF-8
348QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
349dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
350
351Ten pakiet zawiera emulator systemu z procesorem m68k.
fabf5a9c
ER
352
353%package system-microblaze
d86014ba
JB
354Summary: QEMU system emulator for MicroBlaze
355Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
fabf5a9c
ER
356Group: Development/Tools
357Requires: %{name}-common = %{version}-%{release}
78a71650 358%systempkg_req
e03112c2 359Obsoletes: qemu-kvm-system-microblaze
fabf5a9c
ER
360
361%description system-microblaze
362QEMU is a generic and open source processor emulator which achieves a
363good emulation speed by using dynamic translation.
364
d86014ba
JB
365This package provides the system emulator with MicroBlaze CPU.
366
367%description system-microblaze -l pl.UTF-8
368QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
369dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
370
371Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
fabf5a9c
ER
372
373%package system-mips
d86014ba
JB
374Summary: QEMU system emulator for MIPS
375Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
fabf5a9c
ER
376Group: Development/Tools
377Requires: %{name}-common = %{version}-%{release}
78a71650 378%systempkg_req
e03112c2 379Obsoletes: qemu-kvm-system-mips
fabf5a9c
ER
380
381%description system-mips
382QEMU is a generic and open source processor emulator which achieves a
383good emulation speed by using dynamic translation.
384
d86014ba
JB
385This package provides the system emulator with MIPS CPU.
386
387%description system-mips -l pl.UTF-8
388QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
389dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
390
391Ten pakiet zawiera emulator systemu z procesorem MIPS.
fabf5a9c 392
a56d4cfd
JB
393%package system-moxie
394Summary: QEMU system emulator for Moxie
395Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
396Group: Development/Tools
397Requires: %{name}-common = %{version}-%{release}
398%systempkg_req
399
400%description system-moxie
401QEMU is a generic and open source processor emulator which achieves a
402good emulation speed by using dynamic translation.
403
404This package provides the system emulator with Moxie CPU.
405
406%description system-moxie -l pl.UTF-8
407QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
408dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
409
410Ten pakiet zawiera emulator systemu z procesorem Moxie.
411
92c357d4 412%package system-or32
d86014ba
JB
413Summary: QEMU system emulator for OpenRISC
414Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
92c357d4
PS
415Group: Development/Tools
416Requires: %{name}-common = %{version}-%{release}
78a71650 417%systempkg_req
e03112c2 418Obsoletes: qemu-kvm-system-or32
92c357d4
PS
419
420%description system-or32
421QEMU is a generic and open source processor emulator which achieves a
422good emulation speed by using dynamic translation.
423
d86014ba
JB
424This package provides the system emulator with OpenRISC CPU.
425
426%description system-or32 -l pl.UTF-8
427QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
428dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
429
430Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
92c357d4 431
fabf5a9c 432%package system-ppc
d86014ba
JB
433Summary: QEMU system emulator for PowerPC
434Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
fabf5a9c
ER
435Group: Development/Tools
436Requires: %{name}-common = %{version}-%{release}
78a71650 437%systempkg_req
e03112c2 438Obsoletes: qemu-kvm-system-ppc
fabf5a9c
ER
439
440%description system-ppc
441QEMU is a generic and open source processor emulator which achieves a
442good emulation speed by using dynamic translation.
443
d86014ba
JB
444This package provides the system emulator with PowerPC CPU.
445
446%description system-ppc -l pl.UTF-8
447QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
448dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
449
450Ten pakiet zawiera emulator systemu z procesorem PowerPC.
fabf5a9c
ER
451
452%package system-s390x
d86014ba
JB
453Summary: QEMU system emulator for S390
454Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
fabf5a9c
ER
455Group: Development/Tools
456Requires: %{name}-common = %{version}-%{release}
78a71650 457%systempkg_req
e03112c2 458Obsoletes: qemu-kvm-system-s390x
fabf5a9c
ER
459
460%description system-s390x
461QEMU is a generic and open source processor emulator which achieves a
462good emulation speed by using dynamic translation.
463
d86014ba
JB
464This package provides the system emulator with S390 CPU.
465
466%description system-s390x -l pl.UTF-8
467QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
468dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
469
470Ten pakiet zawiera emulator systemu z procesorem S390.
fabf5a9c
ER
471
472%package system-sh4
d86014ba
JB
473Summary: QEMU system emulator for SH4
474Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
fabf5a9c
ER
475Group: Development/Tools
476Requires: %{name}-common = %{version}-%{release}
78a71650 477%systempkg_req
e03112c2 478Obsoletes: qemu-kvm-system-sh4
fabf5a9c
ER
479
480%description system-sh4
481QEMU is a generic and open source processor emulator which achieves a
482good emulation speed by using dynamic translation.
483
d86014ba
JB
484This package provides the system emulator with SH4 CPU.
485
486%description system-sh4 -l pl.UTF-8
487QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
488dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
489
490Ten pakiet zawiera emulator systemu z procesorem SH4.
fabf5a9c
ER
491
492%package system-sparc
d86014ba
JB
493Summary: QEMU system emulator for SPARC
494Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
fabf5a9c
ER
495Group: Development/Tools
496Requires: %{name}-common = %{version}-%{release}
78a71650 497%systempkg_req
e03112c2 498Obsoletes: qemu-kvm-system-sparc
fabf5a9c
ER
499
500%description system-sparc
501QEMU is a generic and open source processor emulator which achieves a
502good emulation speed by using dynamic translation.
503
d86014ba
JB
504This package provides the system emulator with SPARC/SPARC64 CPU.
505
506%description system-sparc -l pl.UTF-8
507QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
508dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
509
510Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
fabf5a9c 511
72ddf007 512%package system-unicore32
d86014ba
JB
513Summary: QEMU system emulator for UniCore32
514Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
72ddf007
PS
515Group: Development/Tools
516Requires: %{name}-common = %{version}-%{release}
78a71650 517%systempkg_req
e03112c2 518Obsoletes: qemu-kvm-system-unicore32
72ddf007
PS
519
520%description system-unicore32
521QEMU is a generic and open source processor emulator which achieves a
522good emulation speed by using dynamic translation.
523
d86014ba
JB
524This package provides the system emulator with UniCore32 CPU.
525
526%description system-unicore32 -l pl.UTF-8
527QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
528dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
529
530Ten pakiet zawiera emulator systemu z procesorem UniCore32.
72ddf007 531
fabf5a9c
ER
532%package system-x86
533Summary: QEMU system emulator for x86
d86014ba 534Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
fabf5a9c
ER
535Group: Development/Tools
536Requires: %{name}-common = %{version}-%{release}
78a71650 537%systempkg_req
1c6a7aa7 538Obsoletes: kvm
e03112c2 539Obsoletes: qemu-kvm-system-x86
fabf5a9c
ER
540
541%description system-x86
542QEMU is a generic and open source processor emulator which achieves a
543good emulation speed by using dynamic translation.
544
d86014ba
JB
545%description system-x86 -l pl.UTF-8
546QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
547dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
548
fabf5a9c 549%package system-xtensa
d86014ba
JB
550Summary: QEMU system emulator for Xtensa
551Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
fabf5a9c
ER
552Group: Development/Tools
553Requires: %{name}-common = %{version}-%{release}
78a71650 554%systempkg_req
e03112c2 555Obsoletes: qemu-kvm-system-xtensa
fabf5a9c
ER
556
557%description system-xtensa
558QEMU is a generic and open source processor emulator which achieves a
559good emulation speed by using dynamic translation.
560
d86014ba
JB
561This package provides the system emulator with Xtensa CPU.
562
563%description system-xtensa -l pl.UTF-8
564QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
565dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
566
567Ten pakiet zawiera emulator systemu z procesorem Xtensa.
fabf5a9c 568
93473205
JR
569%package guest-agent
570Summary: QEMU guest agent
571Summary(pl.UTF-8): Agent gościa QEMU
572Group: Daemons
573Requires(post,preun,postun): systemd-units >= 38
574Requires: glib2 >= 1:2.12
575Requires: systemd-units >= 38
576Obsoletes: qemu-kvm-guest-agent
577
578%description guest-agent
008c880e
ER
579QEMU is a generic and open source processor emulator which achieves a
580good emulation speed by using dynamic translation.
93473205
JR
581
582This package provides an agent to run inside guests, which
583communicates with the host over a virtio-serial channel named
584"org.qemu.guest_agent.0".
585
586This package does not need to be installed on the host OS.
587
588%description guest-agent -l pl.UTF-8
589QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
590dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
591
592Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
593systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
594"org.qemu.guest_agent.0".
595
596Ten pakiet nie musi być zainstalowany w systemie hosta.
597
cd19124e 598%prep
c21a255a 599%setup -q
3c6e2290 600%patch0 -p1
d9002706 601%patch1 -p1
449d43aa
JB
602%patch2 -p0
603%patch3 -p1
008c880e 604%patch4 -p1
4e8ae6f9 605%patch5 -p1
108b8fca 606%patch6 -p1
c18e9cf6
JB
607
608%{__mv} libcacard libcacard-use-system-lib
0b920c52 609
bd30ad73
GP
610# workaround for conflict with alsa/error.h
611ln -s ../error.h qapi/error.h
612
80bac37e 613%build
8bd2aee2 614./configure \
3c6e2290
JR
615 --extra-cflags="%{rpmcflags} -I/usr/include/ncurses" \
616 --extra-ldflags="%{rpmldflags}" \
8bd2aee2 617 --prefix=%{_prefix} \
87364910 618 --sysconfdir=%{_sysconfdir} \
98a1a188
AM
619 --cc="%{__cc}" \
620 --host-cc="%{__cc}" \
5263f8f5 621 --disable-strip \
78a71650 622 --enable-attr \
78ff8fc0
JK
623 %{__enable_disable bluetooth bluez} \
624 %{__enable_disable brlapi} \
78a71650
JB
625 --enable-cap-ng \
626 --enable-curl \
627 --enable-curses \
87364910 628 --enable-docs \
78a71650 629 --enable-fdt \
449d43aa 630 %{__enable_disable glusterfs} \
78ff8fc0 631 %{__enable_disable iscsi libiscsi} \
d5150748 632 %{__enable_disable glx} \
78a71650 633 %{__enable_disable ceph rbd} \
80dbeed1 634 %{__enable_disable rdma} \
78a71650 635 %{__enable_disable sdl} \
78ff8fc0 636 %{__enable_disable seccomp} \
59bc1300 637 %{__enable_disable spice} \
78ff8fc0 638 %{__enable_disable smartcard smartcard-nss} \
ce44b534 639 --enable-tpm \
78ff8fc0 640 %{__enable_disable usbredir usb-redir} \
78a71650
JB
641 --enable-uuid \
642 --enable-vde \
643 --enable-virtfs \
644 --enable-vnc-jpeg \
87364910 645 --enable-vnc-png \
78a71650
JB
646 --enable-vnc-sasl \
647 --enable-vnc-tls \
51327cc0 648 --enable-kvm \
78a71650 649 %{__enable_disable xen} \
87364910 650 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
ce44b534 651 --interp-prefix=%{_libdir}/qemu/lib-%%M \
78ff8fc0
JK
652%if %{without gtk2} && %{without gtk3}
653 --disable-gtk
654%else
ce44b534 655 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
78ff8fc0 656%endif
ce44b534 657
5263f8f5
JB
658# note: CONFIG_QEMU_HELPERDIR is used when compiling, libexecdir when installing;
659# --libexecdir in configure is nop
660%{__make} \
661 V=1 \
471d1276
JK
662 CONFIG_QEMU_HELPERDIR="%{_libdir}" \
663 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
cd19124e 664
d9002706
PS
665# rebuild patched vesa tables with additional widescreen modes.
666%{__make} -C roms/vgabios stdvga-bios
667
9fdf235e
JR
668%{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
669
cd19124e 670%install
671rm -rf $RPM_BUILD_ROOT
51327cc0
JR
672install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
673 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
674 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
5a2da1d0 675
cd19124e 676%{__make} install \
471d1276 677 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
5263f8f5
JB
678 DESTDIR=$RPM_BUILD_ROOT \
679 libexecdir=%{_libdir}
ac6e5743 680
a91fea76 681install -d $RPM_BUILD_ROOT%{_sysconfdir}
682cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
ac6e5743 683#!/bin/sh
a91fea76 684
ac6e5743 685EOF
a62a2d89 686
5ed67169
JR
687install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
688
41ed6e2c 689%ifarch %{ix86} %{x8664}
008c880e 690install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
41ed6e2c
JR
691install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
692install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
693%endif
694
9fdf235e
JR
695install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
696install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
697install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
698
699install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
700install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
701install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
702
93473205
JR
703# For the qemu-guest-agent subpackage install the systemd
704# service and udev rules.
705install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
706install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
707
a78c5672
JR
708for i in dummy \
709%ifnarch %{ix86} %{x8664}
008c880e 710 qemu-i386 \
a78c5672
JR
711%endif
712%ifnarch arm
008c880e 713 qemu-arm \
a78c5672
JR
714%endif
715%ifnarch ppc ppc64
008c880e 716 qemu-ppc \
a78c5672
JR
717%endif
718%ifnarch sparc sparc64
008c880e 719 qemu-sparc \
a78c5672
JR
720%endif
721%ifnarch sh4
008c880e 722 qemu-sh4 \
a78c5672
JR
723%endif
724; do
725 test $i = dummy && continue
726 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
727done < %{SOURCE2}
728
68eb235d 729# packaged as %doc
5263f8f5
JB
730%{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
731%{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
c33439fc 732
d9002706 733# install patched vesa tables with additional widescreen modes.
ae8bf749 734cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
d9002706 735
78ff8fc0 736%if %{with gtk2} || %{with gtk3}
008c880e
ER
737%{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
738%{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
a56d4cfd 739%find_lang %{name}
78ff8fc0
JK
740%else
741: > qemu.lang
742%endif
a56d4cfd 743
cd19124e 744%clean
745rm -rf $RPM_BUILD_ROOT
746
c1d653f6 747%pre common
a45c10b6 748%groupadd -g 160 kvm
c1d653f6 749%groupadd -g 276 qemu
a45c10b6 750%useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
c1d653f6 751
9fdf235e
JR
752%post common
753%systemd_post ksm.service
754%systemd_post ksmtuned.service
755
756%preun common
757%systemd_preun ksm.service
758%systemd_preun ksmtuned.service
759
c1d653f6
AG
760%postun common
761if [ "$1" = "0" ]; then
762 %userremove qemu
763 %groupremove qemu
a45c10b6 764 %groupremove kvm
c1d653f6 765fi
9fdf235e
JR
766%systemd_reload
767
768%triggerpostun common -- qemu-common < 1.6.1-4
769%systemd_trigger ksm.service
770%systemd_trigger ksmtuned.service
c1d653f6 771
a78c5672
JR
772%post user
773%systemd_service_restart systemd-binfmt.service
774
775%postun user
776%systemd_service_restart systemd-binfmt.service
777
93473205
JR
778%post guest-agent
779%systemd_reload
780
781%preun guest-agent
782%systemd_preun qemu-guest-agent.service
783
784%postun guest-agent
785%systemd_reload
786
cd19124e 787%files
788%defattr(644,root,root,755)
fabf5a9c 789
a56d4cfd 790%files common -f %{name}.lang
fabf5a9c 791%defattr(644,root,root,755)
68eb235d 792%doc README qemu-doc.html qemu-tech.html qmp-commands.txt
a91fea76 793%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
fabf5a9c 794%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
c980f439 795%config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
5ed67169 796%config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
c980f439
JR
797%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
798%{systemdunitdir}/ksm.service
799%{systemdunitdir}/ksmtuned.service
7c0786d1 800%dir %{_sysconfdir}/qemu
5263f8f5 801%attr(755,root,root) %{_bindir}/virtfs-proxy-helper
fabf5a9c 802%attr(755,root,root) %{_bindir}/qemu-nbd
5263f8f5 803%attr(755,root,root) %{_libdir}/qemu-bridge-helper
c980f439
JR
804%attr(755,root,root) %{_sbindir}/ksmctl
805%attr(755,root,root) %{_sbindir}/ksmtuned
cd19124e 806%{_mandir}/man1/qemu.1*
5263f8f5 807%{_mandir}/man1/virtfs-proxy-helper.1*
98a1a188 808%{_mandir}/man8/qemu-nbd.8*
fabf5a9c
ER
809
810%dir %{_datadir}/qemu
811%{_datadir}/%{name}/keymaps
5263f8f5 812%{_datadir}/%{name}/qemu-icon.bmp
fabf5a9c 813# various bios images
f8ecc2ec 814%{_datadir}/%{name}/*.aml
fabf5a9c
ER
815%{_datadir}/%{name}/*.bin
816%{_datadir}/%{name}/*.rom
817%{_datadir}/%{name}/*.dtb
abd58763 818%{_datadir}/%{name}/qemu_logo_no_text.svg
fabf5a9c
ER
819%{_datadir}/%{name}/openbios-ppc
820%{_datadir}/%{name}/openbios-sparc*
821%{_datadir}/%{name}/palcode-clipper
a56d4cfd 822%{_datadir}/%{name}/s390-ccw.img
fabf5a9c
ER
823
824%files img
825%defattr(644,root,root,755)
826%attr(755,root,root) %{_bindir}/qemu-img
827%{_mandir}/man1/qemu-img.1*
828
829%files user
830%defattr(644,root,root,755)
a78c5672 831/usr/lib/binfmt.d/qemu-*.conf
fabf5a9c
ER
832%attr(755,root,root) %{_bindir}/qemu-alpha
833%attr(755,root,root) %{_bindir}/qemu-arm
834%attr(755,root,root) %{_bindir}/qemu-armeb
835%attr(755,root,root) %{_bindir}/qemu-cris
59bc1300 836%attr(755,root,root) %{_bindir}/qemu-i386
fabf5a9c
ER
837%attr(755,root,root) %{_bindir}/qemu-io
838%attr(755,root,root) %{_bindir}/qemu-m68k
839%attr(755,root,root) %{_bindir}/qemu-microblaze
840%attr(755,root,root) %{_bindir}/qemu-microblazeel
841%attr(755,root,root) %{_bindir}/qemu-mips
842%attr(755,root,root) %{_bindir}/qemu-mipsel
a56d4cfd
JB
843%attr(755,root,root) %{_bindir}/qemu-mips64
844%attr(755,root,root) %{_bindir}/qemu-mips64el
845%attr(755,root,root) %{_bindir}/qemu-mipsn32
846%attr(755,root,root) %{_bindir}/qemu-mipsn32el
92c357d4 847%attr(755,root,root) %{_bindir}/qemu-or32
fabf5a9c
ER
848%attr(755,root,root) %{_bindir}/qemu-ppc
849%attr(755,root,root) %{_bindir}/qemu-ppc64
850%attr(755,root,root) %{_bindir}/qemu-ppc64abi32
851%attr(755,root,root) %{_bindir}/qemu-s390x
852%attr(755,root,root) %{_bindir}/qemu-sh4
853%attr(755,root,root) %{_bindir}/qemu-sh4eb
854%attr(755,root,root) %{_bindir}/qemu-sparc
855%attr(755,root,root) %{_bindir}/qemu-sparc32plus
856%attr(755,root,root) %{_bindir}/qemu-sparc64
857%attr(755,root,root) %{_bindir}/qemu-unicore32
59bc1300 858%attr(755,root,root) %{_bindir}/qemu-x86_64
fabf5a9c
ER
859
860%files system-alpha
861%defattr(644,root,root,755)
862%attr(755,root,root) %{_bindir}/qemu-system-alpha
863
864%files system-arm
865%defattr(644,root,root,755)
866%attr(755,root,root) %{_bindir}/qemu-system-arm
867
868%files system-cris
869%defattr(644,root,root,755)
870%attr(755,root,root) %{_bindir}/qemu-system-cris
871
872%files system-lm32
873%defattr(644,root,root,755)
874%attr(755,root,root) %{_bindir}/qemu-system-lm32
875
876%files system-m68k
877%defattr(644,root,root,755)
878%attr(755,root,root) %{_bindir}/qemu-system-m68k
879
880%files system-microblaze
881%defattr(644,root,root,755)
882%attr(755,root,root) %{_bindir}/qemu-system-microblaze
883%attr(755,root,root) %{_bindir}/qemu-system-microblazeel
884
885%files system-mips
886%defattr(644,root,root,755)
887%attr(755,root,root) %{_bindir}/qemu-system-mips
888%attr(755,root,root) %{_bindir}/qemu-system-mipsel
889%attr(755,root,root) %{_bindir}/qemu-system-mips64
890%attr(755,root,root) %{_bindir}/qemu-system-mips64el
891
a56d4cfd
JB
892%files system-moxie
893%defattr(644,root,root,755)
894%attr(755,root,root) %{_bindir}/qemu-system-moxie
895
92c357d4
PS
896%files system-or32
897%defattr(644,root,root,755)
898%attr(755,root,root) %{_bindir}/qemu-system-or32
899
fabf5a9c
ER
900%files system-ppc
901%defattr(644,root,root,755)
902%attr(755,root,root) %{_bindir}/qemu-system-ppc
903%attr(755,root,root) %{_bindir}/qemu-system-ppc64
904%attr(755,root,root) %{_bindir}/qemu-system-ppcemb
905
906%files system-s390x
907%defattr(644,root,root,755)
908%attr(755,root,root) %{_bindir}/qemu-system-s390x
909
910%files system-sh4
911%defattr(644,root,root,755)
912%attr(755,root,root) %{_bindir}/qemu-system-sh4
913%attr(755,root,root) %{_bindir}/qemu-system-sh4eb
914
915%files system-sparc
916%defattr(644,root,root,755)
917%attr(755,root,root) %{_bindir}/qemu-system-sparc
918%attr(755,root,root) %{_bindir}/qemu-system-sparc64
919
72ddf007
PS
920%files system-unicore32
921%defattr(644,root,root,755)
922%attr(755,root,root) %{_bindir}/qemu-system-unicore32
923
fabf5a9c
ER
924%files system-x86
925%defattr(644,root,root,755)
926%attr(755,root,root) %{_bindir}/qemu-system-i386
927%attr(755,root,root) %{_bindir}/qemu-system-x86_64
41ed6e2c
JR
928%ifarch %{ix86} %{x8664}
929%config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
930%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
931%attr(755,root,root) %{_bindir}/kvm_stat
932%endif
fabf5a9c
ER
933
934%files system-xtensa
935%defattr(644,root,root,755)
936%attr(755,root,root) %{_bindir}/qemu-system-xtensa
937%attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
93473205
JR
938
939%files guest-agent
008c880e 940%defattr(644,root,root,755)
93473205
JR
941%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
942%{systemdunitdir}/qemu-guest-agent.service
943%attr(755,root,root) %{_bindir}/qemu-ga
This page took 0.317804 seconds and 4 git commands to generate.