]> git.pld-linux.org Git - packages/qemu.git/blame - qemu.spec
- release 4 (by relup.sh)
[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
59bc1300 9%bcond_without spice # SPICE support
78a71650
JB
10%bcond_with esd # EsounD audio support
11%bcond_without oss # OSS audio support
12%bcond_without pulseaudio # PulseAudio audio support
13%bcond_without xen # Xen backend driver support
ae8bf749 14
cd19124e 15Summary: QEMU CPU Emulator
eec0535a 16Summary(pl.UTF-8): QEMU - emulator procesora
7b81d160 17Name: qemu
68eb235d 18Version: 1.7.0
2e00c499 19Release: 4
78a71650 20License: GPL v2+
5a2da1d0 21Group: Applications/Emulators
46ca1df6 22Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
68eb235d 23# Source0-md5: 32893941d40d052a5e649efcf06aca06
008c880e 24Source2: %{name}.binfmt
41ed6e2c
JR
25# Loads kvm kernel modules at boot
26Source3: kvm-modules-load.conf
27# Creates /dev/kvm
28Source4: 80-kvm.rules
9fdf235e
JR
29# KSM control scripts
30Source5: ksm.service
31Source6: ksm.sysconfig
32Source7: ksmctl.c
33Source8: ksmtuned.service
34Source9: ksmtuned
35Source10: ksmtuned.conf
008c880e
ER
36Source11: %{name}-guest-agent.service
37Source12: 99-%{name}-guest-agent.rules
9bcd4ab6 38Patch0: %{name}-cflags.patch
d9002706 39Patch1: vgabios-widescreens.patch
449d43aa
JB
40Patch2: %{name}-whitelist.patch
41Patch3: %{name}-system-libcacard.patch
008c880e 42Patch4: vmdk3ro.patch
81a493f2 43# Proof of concept, for reference, do not remove
008c880e 44Patch400: %{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
008c880e 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}
1c6a7aa7 80BuildRequires: rpmbuild(macros) >= 1.644
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 203Group: Development/Tools
e03112c2 204Obsoletes: qemu-kvm-img
008c880e 205Conflicts: qemu < 1.0-2
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}
1c6a7aa7
JR
220Requires(post,postun): systemd-units >= 38
221Requires: systemd-units >= 38
e03112c2 222Obsoletes: qemu-kvm-user
fabf5a9c
ER
223
224%description user
225QEMU is a generic and open source processor emulator which achieves a
226good emulation speed by using dynamic translation.
227
228This package provides the user mode emulation of QEMU targets.
229
d86014ba
JB
230%description user -l pl.UTF-8
231QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
232dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
233
234Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
235
fabf5a9c 236%package system-alpha
d86014ba
JB
237Summary: QEMU system emulator for Alpha
238Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
fabf5a9c
ER
239Group: Development/Tools
240Requires: %{name}-common = %{version}-%{release}
78a71650 241%systempkg_req
e03112c2 242Obsoletes: qemu-kvm-system-alpha
fabf5a9c
ER
243
244%description system-alpha
245QEMU is a generic and open source processor emulator which achieves a
246good emulation speed by using dynamic translation.
247
d86014ba
JB
248This package provides the system emulator with Alpha CPU.
249
250%description system-alpha -l pl.UTF-8
251QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
252dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
253
254Ten pakiet zawiera emulator systemu z procesorem Alpha.
fabf5a9c
ER
255
256%package system-arm
d86014ba
JB
257Summary: QEMU system emulator for ARM
258Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
fabf5a9c
ER
259Group: Development/Tools
260Requires: %{name}-common = %{version}-%{release}
78a71650 261%systempkg_req
e03112c2 262Obsoletes: qemu-kvm-system-arm
fabf5a9c
ER
263
264%description system-arm
265QEMU is a generic and open source processor emulator which achieves a
266good emulation speed by using dynamic translation.
267
d86014ba
JB
268This package provides the system emulator for ARM.
269
270%description system-arm -l pl.UTF-8
271QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
272dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
273
274Ten pakiet zawiera emulator systemu z procesorem ARM.
fabf5a9c
ER
275
276%package system-cris
59bc1300 277Summary: QEMU system emulator for CRIS
d86014ba 278Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
fabf5a9c
ER
279Group: Development/Tools
280Requires: %{name}-common = %{version}-%{release}
78a71650 281%systempkg_req
e03112c2 282Obsoletes: qemu-kvm-system-cris
fabf5a9c
ER
283
284%description system-cris
285QEMU is a generic and open source processor emulator which achieves a
286good emulation speed by using dynamic translation.
287
d86014ba
JB
288This package provides the system emulator with CRIS CPU.
289
290%description system-cris -l pl.UTF-8
291QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
292dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
293
294Ten pakiet zawiera emulator systemu z procesorem CRIS.
fabf5a9c
ER
295
296%package system-lm32
d86014ba
JB
297Summary: QEMU system emulator for LM32
298Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
fabf5a9c
ER
299Group: Development/Tools
300Requires: %{name}-common = %{version}-%{release}
78a71650 301%systempkg_req
e03112c2 302Obsoletes: qemu-kvm-system-lm32
fabf5a9c
ER
303
304%description system-lm32
305QEMU is a generic and open source processor emulator which achieves a
306good emulation speed by using dynamic translation.
307
d86014ba
JB
308This package provides the system emulator with LM32 CPU.
309
310%description system-lm32 -l pl.UTF-8
311QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
312dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
313
314Ten pakiet zawiera emulator systemu z procesorem LM32.
fabf5a9c
ER
315
316%package system-m68k
317Summary: QEMU system emulator for m68k
d86014ba 318Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
fabf5a9c
ER
319Group: Development/Tools
320Requires: %{name}-common = %{version}-%{release}
78a71650 321%systempkg_req
e03112c2 322Obsoletes: qemu-kvm-system-m68k
fabf5a9c
ER
323
324%description system-m68k
325QEMU is a generic and open source processor emulator which achieves a
326good emulation speed by using dynamic translation.
327
d86014ba
JB
328This package provides the system emulator with m68k CPU.
329
330%description system-m68k -l pl.UTF-8
331QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
332dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
333
334Ten pakiet zawiera emulator systemu z procesorem m68k.
fabf5a9c
ER
335
336%package system-microblaze
d86014ba
JB
337Summary: QEMU system emulator for MicroBlaze
338Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
fabf5a9c
ER
339Group: Development/Tools
340Requires: %{name}-common = %{version}-%{release}
78a71650 341%systempkg_req
e03112c2 342Obsoletes: qemu-kvm-system-microblaze
fabf5a9c
ER
343
344%description system-microblaze
345QEMU is a generic and open source processor emulator which achieves a
346good emulation speed by using dynamic translation.
347
d86014ba
JB
348This package provides the system emulator with MicroBlaze CPU.
349
350%description system-microblaze -l pl.UTF-8
351QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
352dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
353
354Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
fabf5a9c
ER
355
356%package system-mips
d86014ba
JB
357Summary: QEMU system emulator for MIPS
358Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
fabf5a9c
ER
359Group: Development/Tools
360Requires: %{name}-common = %{version}-%{release}
78a71650 361%systempkg_req
e03112c2 362Obsoletes: qemu-kvm-system-mips
fabf5a9c
ER
363
364%description system-mips
365QEMU is a generic and open source processor emulator which achieves a
366good emulation speed by using dynamic translation.
367
d86014ba
JB
368This package provides the system emulator with MIPS CPU.
369
370%description system-mips -l pl.UTF-8
371QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
372dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
373
374Ten pakiet zawiera emulator systemu z procesorem MIPS.
fabf5a9c 375
a56d4cfd
JB
376%package system-moxie
377Summary: QEMU system emulator for Moxie
378Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
379Group: Development/Tools
380Requires: %{name}-common = %{version}-%{release}
381%systempkg_req
382
383%description system-moxie
384QEMU is a generic and open source processor emulator which achieves a
385good emulation speed by using dynamic translation.
386
387This package provides the system emulator with Moxie CPU.
388
389%description system-moxie -l pl.UTF-8
390QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
391dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
392
393Ten pakiet zawiera emulator systemu z procesorem Moxie.
394
92c357d4 395%package system-or32
d86014ba
JB
396Summary: QEMU system emulator for OpenRISC
397Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
92c357d4
PS
398Group: Development/Tools
399Requires: %{name}-common = %{version}-%{release}
78a71650 400%systempkg_req
e03112c2 401Obsoletes: qemu-kvm-system-or32
92c357d4
PS
402
403%description system-or32
404QEMU is a generic and open source processor emulator which achieves a
405good emulation speed by using dynamic translation.
406
d86014ba
JB
407This package provides the system emulator with OpenRISC CPU.
408
409%description system-or32 -l pl.UTF-8
410QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
411dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
412
413Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
92c357d4 414
fabf5a9c 415%package system-ppc
d86014ba
JB
416Summary: QEMU system emulator for PowerPC
417Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
fabf5a9c
ER
418Group: Development/Tools
419Requires: %{name}-common = %{version}-%{release}
78a71650 420%systempkg_req
e03112c2 421Obsoletes: qemu-kvm-system-ppc
fabf5a9c
ER
422
423%description system-ppc
424QEMU is a generic and open source processor emulator which achieves a
425good emulation speed by using dynamic translation.
426
d86014ba
JB
427This package provides the system emulator with PowerPC CPU.
428
429%description system-ppc -l pl.UTF-8
430QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
431dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
432
433Ten pakiet zawiera emulator systemu z procesorem PowerPC.
fabf5a9c
ER
434
435%package system-s390x
d86014ba
JB
436Summary: QEMU system emulator for S390
437Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
fabf5a9c
ER
438Group: Development/Tools
439Requires: %{name}-common = %{version}-%{release}
78a71650 440%systempkg_req
e03112c2 441Obsoletes: qemu-kvm-system-s390x
fabf5a9c
ER
442
443%description system-s390x
444QEMU is a generic and open source processor emulator which achieves a
445good emulation speed by using dynamic translation.
446
d86014ba
JB
447This package provides the system emulator with S390 CPU.
448
449%description system-s390x -l pl.UTF-8
450QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
451dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
452
453Ten pakiet zawiera emulator systemu z procesorem S390.
fabf5a9c
ER
454
455%package system-sh4
d86014ba
JB
456Summary: QEMU system emulator for SH4
457Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
fabf5a9c
ER
458Group: Development/Tools
459Requires: %{name}-common = %{version}-%{release}
78a71650 460%systempkg_req
e03112c2 461Obsoletes: qemu-kvm-system-sh4
fabf5a9c
ER
462
463%description system-sh4
464QEMU is a generic and open source processor emulator which achieves a
465good emulation speed by using dynamic translation.
466
d86014ba
JB
467This package provides the system emulator with SH4 CPU.
468
469%description system-sh4 -l pl.UTF-8
470QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
471dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
472
473Ten pakiet zawiera emulator systemu z procesorem SH4.
fabf5a9c
ER
474
475%package system-sparc
d86014ba
JB
476Summary: QEMU system emulator for SPARC
477Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
fabf5a9c
ER
478Group: Development/Tools
479Requires: %{name}-common = %{version}-%{release}
78a71650 480%systempkg_req
e03112c2 481Obsoletes: qemu-kvm-system-sparc
fabf5a9c
ER
482
483%description system-sparc
484QEMU is a generic and open source processor emulator which achieves a
485good emulation speed by using dynamic translation.
486
d86014ba
JB
487This package provides the system emulator with SPARC/SPARC64 CPU.
488
489%description system-sparc -l pl.UTF-8
490QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
491dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
492
493Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
fabf5a9c 494
72ddf007 495%package system-unicore32
d86014ba
JB
496Summary: QEMU system emulator for UniCore32
497Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
72ddf007
PS
498Group: Development/Tools
499Requires: %{name}-common = %{version}-%{release}
78a71650 500%systempkg_req
e03112c2 501Obsoletes: qemu-kvm-system-unicore32
72ddf007
PS
502
503%description system-unicore32
504QEMU is a generic and open source processor emulator which achieves a
505good emulation speed by using dynamic translation.
506
d86014ba
JB
507This package provides the system emulator with UniCore32 CPU.
508
509%description system-unicore32 -l pl.UTF-8
510QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
511dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
512
513Ten pakiet zawiera emulator systemu z procesorem UniCore32.
72ddf007 514
fabf5a9c
ER
515%package system-x86
516Summary: QEMU system emulator for x86
d86014ba 517Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
fabf5a9c
ER
518Group: Development/Tools
519Requires: %{name}-common = %{version}-%{release}
78a71650 520%systempkg_req
1c6a7aa7 521Obsoletes: kvm
e03112c2 522Obsoletes: qemu-kvm-system-x86
fabf5a9c
ER
523
524%description system-x86
525QEMU is a generic and open source processor emulator which achieves a
526good emulation speed by using dynamic translation.
527
d86014ba
JB
528%description system-x86 -l pl.UTF-8
529QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
530dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
531
fabf5a9c 532%package system-xtensa
d86014ba
JB
533Summary: QEMU system emulator for Xtensa
534Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
fabf5a9c
ER
535Group: Development/Tools
536Requires: %{name}-common = %{version}-%{release}
78a71650 537%systempkg_req
e03112c2 538Obsoletes: qemu-kvm-system-xtensa
fabf5a9c
ER
539
540%description system-xtensa
541QEMU is a generic and open source processor emulator which achieves a
542good emulation speed by using dynamic translation.
543
d86014ba
JB
544This package provides the system emulator with Xtensa CPU.
545
546%description system-xtensa -l pl.UTF-8
547QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
548dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
549
550Ten pakiet zawiera emulator systemu z procesorem Xtensa.
fabf5a9c 551
93473205
JR
552%package guest-agent
553Summary: QEMU guest agent
554Summary(pl.UTF-8): Agent gościa QEMU
555Group: Daemons
556Requires(post,preun,postun): systemd-units >= 38
557Requires: glib2 >= 1:2.12
558Requires: systemd-units >= 38
559Obsoletes: qemu-kvm-guest-agent
560
561%description guest-agent
008c880e
ER
562QEMU is a generic and open source processor emulator which achieves a
563good emulation speed by using dynamic translation.
93473205
JR
564
565This package provides an agent to run inside guests, which
566communicates with the host over a virtio-serial channel named
567"org.qemu.guest_agent.0".
568
569This package does not need to be installed on the host OS.
570
571%description guest-agent -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 udostępnia agenta przeznaczonego do uruchomienia w
576systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
577"org.qemu.guest_agent.0".
578
579Ten pakiet nie musi być zainstalowany w systemie hosta.
580
cd19124e 581%prep
c21a255a 582%setup -q
3c6e2290 583%patch0 -p1
d9002706 584%patch1 -p1
449d43aa
JB
585%patch2 -p0
586%patch3 -p1
008c880e 587%patch4 -p1
c18e9cf6
JB
588
589%{__mv} libcacard libcacard-use-system-lib
0b920c52 590
bd30ad73
GP
591# workaround for conflict with alsa/error.h
592ln -s ../error.h qapi/error.h
593
80bac37e 594%build
8bd2aee2 595./configure \
3c6e2290
JR
596 --extra-cflags="%{rpmcflags} -I/usr/include/ncurses" \
597 --extra-ldflags="%{rpmldflags}" \
8bd2aee2 598 --prefix=%{_prefix} \
87364910 599 --sysconfdir=%{_sysconfdir} \
98a1a188
AM
600 --cc="%{__cc}" \
601 --host-cc="%{__cc}" \
5263f8f5 602 --disable-strip \
78a71650
JB
603 --enable-attr \
604 --enable-bluez \
605 --enable-brlapi \
606 --enable-cap-ng \
607 --enable-curl \
608 --enable-curses \
87364910 609 --enable-docs \
78a71650 610 --enable-fdt \
449d43aa 611 %{__enable_disable glusterfs} \
78a71650 612 --enable-libiscsi \
d5150748 613 %{__enable_disable glx} \
78a71650 614 %{__enable_disable ceph rbd} \
80dbeed1 615 %{__enable_disable rdma} \
78a71650
JB
616 %{__enable_disable sdl} \
617 --enable-seccomp \
59bc1300 618 %{__enable_disable spice} \
78a71650 619 --enable-smartcard-nss \
ce44b534 620 --enable-tpm \
78a71650
JB
621 --enable-usb-redir \
622 --enable-uuid \
623 --enable-vde \
624 --enable-virtfs \
625 --enable-vnc-jpeg \
87364910 626 --enable-vnc-png \
78a71650
JB
627 --enable-vnc-sasl \
628 --enable-vnc-tls \
51327cc0 629 --enable-kvm \
78a71650 630 %{__enable_disable xen} \
87364910 631 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
ce44b534
JB
632 --interp-prefix=%{_libdir}/qemu/lib-%%M \
633 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
634
5263f8f5
JB
635# note: CONFIG_QEMU_HELPERDIR is used when compiling, libexecdir when installing;
636# --libexecdir in configure is nop
637%{__make} \
638 V=1 \
639 CONFIG_QEMU_HELPERDIR="%{_libdir}"
cd19124e 640
d9002706
PS
641# rebuild patched vesa tables with additional widescreen modes.
642%{__make} -C roms/vgabios stdvga-bios
643
9fdf235e
JR
644%{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
645
cd19124e 646%install
647rm -rf $RPM_BUILD_ROOT
51327cc0
JR
648install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
649 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
650 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
5a2da1d0 651
cd19124e 652%{__make} install \
5263f8f5
JB
653 DESTDIR=$RPM_BUILD_ROOT \
654 libexecdir=%{_libdir}
ac6e5743 655
a91fea76 656install -d $RPM_BUILD_ROOT%{_sysconfdir}
657cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
ac6e5743 658#!/bin/sh
a91fea76 659
ac6e5743 660EOF
a62a2d89 661
5ed67169
JR
662install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
663
41ed6e2c 664%ifarch %{ix86} %{x8664}
008c880e 665install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
41ed6e2c
JR
666install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
667install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
668%endif
669
9fdf235e
JR
670install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
671install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
672install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
673
674install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
675install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
676install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
677
93473205
JR
678# For the qemu-guest-agent subpackage install the systemd
679# service and udev rules.
680install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
681install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
682
a78c5672
JR
683for i in dummy \
684%ifnarch %{ix86} %{x8664}
008c880e 685 qemu-i386 \
a78c5672
JR
686%endif
687%ifnarch arm
008c880e 688 qemu-arm \
a78c5672
JR
689%endif
690%ifnarch ppc ppc64
008c880e 691 qemu-ppc \
a78c5672
JR
692%endif
693%ifnarch sparc sparc64
008c880e 694 qemu-sparc \
a78c5672
JR
695%endif
696%ifnarch sh4
008c880e 697 qemu-sh4 \
a78c5672
JR
698%endif
699; do
700 test $i = dummy && continue
701 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
702done < %{SOURCE2}
703
68eb235d 704# packaged as %doc
5263f8f5
JB
705%{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
706%{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
c33439fc 707
d9002706 708# install patched vesa tables with additional widescreen modes.
ae8bf749 709cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
d9002706 710
008c880e
ER
711%{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
712%{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
a56d4cfd
JB
713%find_lang %{name}
714
cd19124e 715%clean
716rm -rf $RPM_BUILD_ROOT
717
c1d653f6 718%pre common
a45c10b6 719%groupadd -g 160 kvm
c1d653f6 720%groupadd -g 276 qemu
a45c10b6 721%useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
c1d653f6 722
9fdf235e
JR
723%post common
724%systemd_post ksm.service
725%systemd_post ksmtuned.service
726
727%preun common
728%systemd_preun ksm.service
729%systemd_preun ksmtuned.service
730
c1d653f6
AG
731%postun common
732if [ "$1" = "0" ]; then
733 %userremove qemu
734 %groupremove qemu
a45c10b6 735 %groupremove kvm
c1d653f6 736fi
9fdf235e
JR
737%systemd_reload
738
739%triggerpostun common -- qemu-common < 1.6.1-4
740%systemd_trigger ksm.service
741%systemd_trigger ksmtuned.service
c1d653f6 742
a78c5672
JR
743%post user
744%systemd_service_restart systemd-binfmt.service
745
746%postun user
747%systemd_service_restart systemd-binfmt.service
748
93473205
JR
749%post guest-agent
750%systemd_reload
751
752%preun guest-agent
753%systemd_preun qemu-guest-agent.service
754
755%postun guest-agent
756%systemd_reload
757
cd19124e 758%files
759%defattr(644,root,root,755)
fabf5a9c 760
a56d4cfd 761%files common -f %{name}.lang
fabf5a9c 762%defattr(644,root,root,755)
68eb235d 763%doc README qemu-doc.html qemu-tech.html qmp-commands.txt
a91fea76 764%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
fabf5a9c 765%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
c980f439 766%config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
5ed67169 767%config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
c980f439
JR
768%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
769%{systemdunitdir}/ksm.service
770%{systemdunitdir}/ksmtuned.service
7c0786d1 771%dir %{_sysconfdir}/qemu
5263f8f5 772%attr(755,root,root) %{_bindir}/virtfs-proxy-helper
fabf5a9c 773%attr(755,root,root) %{_bindir}/qemu-nbd
5263f8f5 774%attr(755,root,root) %{_libdir}/qemu-bridge-helper
c980f439
JR
775%attr(755,root,root) %{_sbindir}/ksmctl
776%attr(755,root,root) %{_sbindir}/ksmtuned
cd19124e 777%{_mandir}/man1/qemu.1*
5263f8f5 778%{_mandir}/man1/virtfs-proxy-helper.1*
98a1a188 779%{_mandir}/man8/qemu-nbd.8*
fabf5a9c
ER
780
781%dir %{_datadir}/qemu
782%{_datadir}/%{name}/keymaps
5263f8f5 783%{_datadir}/%{name}/qemu-icon.bmp
fabf5a9c 784# various bios images
f8ecc2ec 785%{_datadir}/%{name}/*.aml
fabf5a9c
ER
786%{_datadir}/%{name}/*.bin
787%{_datadir}/%{name}/*.rom
788%{_datadir}/%{name}/*.dtb
abd58763 789%{_datadir}/%{name}/qemu_logo_no_text.svg
fabf5a9c
ER
790%{_datadir}/%{name}/openbios-ppc
791%{_datadir}/%{name}/openbios-sparc*
792%{_datadir}/%{name}/palcode-clipper
a56d4cfd 793%{_datadir}/%{name}/s390-ccw.img
fabf5a9c
ER
794
795%files img
796%defattr(644,root,root,755)
797%attr(755,root,root) %{_bindir}/qemu-img
798%{_mandir}/man1/qemu-img.1*
799
800%files user
801%defattr(644,root,root,755)
a78c5672 802/usr/lib/binfmt.d/qemu-*.conf
fabf5a9c
ER
803%attr(755,root,root) %{_bindir}/qemu-alpha
804%attr(755,root,root) %{_bindir}/qemu-arm
805%attr(755,root,root) %{_bindir}/qemu-armeb
806%attr(755,root,root) %{_bindir}/qemu-cris
59bc1300 807%attr(755,root,root) %{_bindir}/qemu-i386
fabf5a9c
ER
808%attr(755,root,root) %{_bindir}/qemu-io
809%attr(755,root,root) %{_bindir}/qemu-m68k
810%attr(755,root,root) %{_bindir}/qemu-microblaze
811%attr(755,root,root) %{_bindir}/qemu-microblazeel
812%attr(755,root,root) %{_bindir}/qemu-mips
813%attr(755,root,root) %{_bindir}/qemu-mipsel
a56d4cfd
JB
814%attr(755,root,root) %{_bindir}/qemu-mips64
815%attr(755,root,root) %{_bindir}/qemu-mips64el
816%attr(755,root,root) %{_bindir}/qemu-mipsn32
817%attr(755,root,root) %{_bindir}/qemu-mipsn32el
92c357d4 818%attr(755,root,root) %{_bindir}/qemu-or32
fabf5a9c
ER
819%attr(755,root,root) %{_bindir}/qemu-ppc
820%attr(755,root,root) %{_bindir}/qemu-ppc64
821%attr(755,root,root) %{_bindir}/qemu-ppc64abi32
822%attr(755,root,root) %{_bindir}/qemu-s390x
823%attr(755,root,root) %{_bindir}/qemu-sh4
824%attr(755,root,root) %{_bindir}/qemu-sh4eb
825%attr(755,root,root) %{_bindir}/qemu-sparc
826%attr(755,root,root) %{_bindir}/qemu-sparc32plus
827%attr(755,root,root) %{_bindir}/qemu-sparc64
828%attr(755,root,root) %{_bindir}/qemu-unicore32
59bc1300 829%attr(755,root,root) %{_bindir}/qemu-x86_64
fabf5a9c
ER
830
831%files system-alpha
832%defattr(644,root,root,755)
833%attr(755,root,root) %{_bindir}/qemu-system-alpha
834
835%files system-arm
836%defattr(644,root,root,755)
837%attr(755,root,root) %{_bindir}/qemu-system-arm
838
839%files system-cris
840%defattr(644,root,root,755)
841%attr(755,root,root) %{_bindir}/qemu-system-cris
842
843%files system-lm32
844%defattr(644,root,root,755)
845%attr(755,root,root) %{_bindir}/qemu-system-lm32
846
847%files system-m68k
848%defattr(644,root,root,755)
849%attr(755,root,root) %{_bindir}/qemu-system-m68k
850
851%files system-microblaze
852%defattr(644,root,root,755)
853%attr(755,root,root) %{_bindir}/qemu-system-microblaze
854%attr(755,root,root) %{_bindir}/qemu-system-microblazeel
855
856%files system-mips
857%defattr(644,root,root,755)
858%attr(755,root,root) %{_bindir}/qemu-system-mips
859%attr(755,root,root) %{_bindir}/qemu-system-mipsel
860%attr(755,root,root) %{_bindir}/qemu-system-mips64
861%attr(755,root,root) %{_bindir}/qemu-system-mips64el
862
a56d4cfd
JB
863%files system-moxie
864%defattr(644,root,root,755)
865%attr(755,root,root) %{_bindir}/qemu-system-moxie
866
92c357d4
PS
867%files system-or32
868%defattr(644,root,root,755)
869%attr(755,root,root) %{_bindir}/qemu-system-or32
870
fabf5a9c
ER
871%files system-ppc
872%defattr(644,root,root,755)
873%attr(755,root,root) %{_bindir}/qemu-system-ppc
874%attr(755,root,root) %{_bindir}/qemu-system-ppc64
875%attr(755,root,root) %{_bindir}/qemu-system-ppcemb
876
877%files system-s390x
878%defattr(644,root,root,755)
879%attr(755,root,root) %{_bindir}/qemu-system-s390x
880
881%files system-sh4
882%defattr(644,root,root,755)
883%attr(755,root,root) %{_bindir}/qemu-system-sh4
884%attr(755,root,root) %{_bindir}/qemu-system-sh4eb
885
886%files system-sparc
887%defattr(644,root,root,755)
888%attr(755,root,root) %{_bindir}/qemu-system-sparc
889%attr(755,root,root) %{_bindir}/qemu-system-sparc64
890
72ddf007
PS
891%files system-unicore32
892%defattr(644,root,root,755)
893%attr(755,root,root) %{_bindir}/qemu-system-unicore32
894
fabf5a9c
ER
895%files system-x86
896%defattr(644,root,root,755)
897%attr(755,root,root) %{_bindir}/qemu-system-i386
898%attr(755,root,root) %{_bindir}/qemu-system-x86_64
41ed6e2c
JR
899%ifarch %{ix86} %{x8664}
900%config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
901%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
902%attr(755,root,root) %{_bindir}/kvm_stat
903%endif
fabf5a9c
ER
904
905%files system-xtensa
906%defattr(644,root,root,755)
907%attr(755,root,root) %{_bindir}/qemu-system-xtensa
908%attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
93473205
JR
909
910%files guest-agent
008c880e 911%defattr(644,root,root,755)
93473205
JR
912%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
913%{systemdunitdir}/qemu-guest-agent.service
914%attr(755,root,root) %{_bindir}/qemu-ga
This page took 0.264206 seconds and 4 git commands to generate.