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