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