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