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