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