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