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