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