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