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