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