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