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