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