]>
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 |
78a71650 | 5 | %bcond_without ceph # Ceph/RBD support |
80dbeed1 JB |
6 | %bcond_without glusterfs # GlusterFS backend |
7 | %bcond_without rdma # RDMA-based migration support | |
0655cee4 | 8 | %bcond_with xseg # Archipelago backend [non-distributable: GPLv3+ vs GPLv2-only] |
ce44b534 | 9 | %bcond_with gtk2 # GTK+ 2.x instead of 3.x |
3187b8cc JB |
10 | %bcond_without gtk3 # Do not build GTK+ UI |
11 | %bcond_without vte # VTE support in GTK+ UI | |
59bc1300 | 12 | %bcond_without spice # SPICE support |
78a71650 JB |
13 | %bcond_with esd # EsounD audio support |
14 | %bcond_without oss # OSS audio support | |
15 | %bcond_without pulseaudio # PulseAudio audio support | |
16 | %bcond_without xen # Xen backend driver support | |
78ff8fc0 JK |
17 | %bcond_without bluetooth # bluetooth support |
18 | %bcond_without brlapi # brlapi support | |
19 | %bcond_without smartcard # smartcard-nss support | |
20 | %bcond_without iscsi # iscsi support | |
b9ddc0a7 | 21 | %bcond_without libnfs # NFS support |
78ff8fc0 JK |
22 | %bcond_without seccomp # seccomp support |
23 | %bcond_without usbredir # usb network redirection support | |
af556ac1 | 24 | %bcond_without system_seabios # system seabios binary |
ae1c5c71 | 25 | %bcond_without snappy # snappy compression library |
a75bdea7 | 26 | %bcond_without user_static # build linux-user static packages |
3187b8cc JB |
27 | %bcond_with lttng # lttng-ust trace backend support |
28 | %bcond_with systemtap # SystemTap/dtrace trace backend support | |
78ff8fc0 JK |
29 | |
30 | %if %{with gtk2} | |
31 | %undefine with_gtk3 | |
32 | %endif | |
ae8bf749 | 33 | |
789f9573 JR |
34 | %ifarch x32 |
35 | %undefine with_xen | |
36 | %endif | |
37 | ||
cd19124e | 38 | Summary: QEMU CPU Emulator |
eec0535a | 39 | Summary(pl.UTF-8): QEMU - emulator procesora |
7b81d160 | 40 | Name: qemu |
3ae34e73 | 41 | Version: 2.7.0 |
a75bdea7 | 42 | Release: 2 |
b0436c10 | 43 | License: GPL v2 |
5a2da1d0 | 44 | Group: Applications/Emulators |
46ca1df6 | 45 | Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2 |
3ae34e73 | 46 | # Source0-md5: 08d4d06d1cb598efecd796137f4844ab |
008c880e | 47 | Source2: %{name}.binfmt |
41ed6e2c JR |
48 | # Loads kvm kernel modules at boot |
49 | Source3: kvm-modules-load.conf | |
50 | # Creates /dev/kvm | |
51 | Source4: 80-kvm.rules | |
9fdf235e JR |
52 | # KSM control scripts |
53 | Source5: ksm.service | |
54 | Source6: ksm.sysconfig | |
55 | Source7: ksmctl.c | |
56 | Source8: ksmtuned.service | |
57 | Source9: ksmtuned | |
58 | Source10: ksmtuned.conf | |
008c880e ER |
59 | Source11: %{name}-guest-agent.service |
60 | Source12: 99-%{name}-guest-agent.rules | |
9bcd4ab6 | 61 | Patch0: %{name}-cflags.patch |
d9002706 | 62 | Patch1: vgabios-widescreens.patch |
449d43aa | 63 | Patch2: %{name}-whitelist.patch |
a5affa61 | 64 | Patch3: %{name}-user-execve.patch |
ae1c5c71 JK |
65 | Patch4: %{name}-xattr.patch |
66 | Patch5: libjpeg-boolean.patch | |
d80aea98 | 67 | Patch6: x32.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} |
78a71650 | 89 | BuildRequires: libfdt-devel |
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 |
0655cee4 | 100 | %{?with_xseg:BuildRequires: libxseg-devel} |
3187b8cc | 101 | %{?with_lttng:BuildRequires: lttng-ust-devel} |
c218d8d3 | 102 | BuildRequires: lzo-devel >= 2 |
98a1a188 | 103 | BuildRequires: ncurses-devel |
fc634c87 | 104 | %{?with_smartcard:BuildRequires: nss-devel >= 1:3.12.8} |
b0436c10 | 105 | BuildRequires: numactl-devel |
995bac8b | 106 | BuildRequires: perl-Encode |
2fb8ea02 | 107 | BuildRequires: perl-tools-pod |
b0436c10 | 108 | BuildRequires: pixman-devel >= 0.21.8 |
ba84a935 | 109 | BuildRequires: pkgconfig |
78a71650 | 110 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel} |
1c6a7aa7 | 111 | BuildRequires: rpmbuild(macros) >= 1.644 |
af556ac1 | 112 | %{?with_system_seabios:BuildRequires: seabios} |
8bb1261c | 113 | BuildRequires: sed >= 4.0 |
c218d8d3 | 114 | %{?with_snappy:BuildRequires: snappy-devel} |
59bc1300 | 115 | %if %{with spice} |
c218d8d3 | 116 | BuildRequires: spice-protocol >= 0.12.3 |
e8a4bb4c | 117 | BuildRequires: spice-server-devel >= 0.12.0 |
59bc1300 | 118 | %endif |
3187b8cc | 119 | %{?with_systemtap:BuildRequires: systemtap-sdt-devel} |
a1146336 | 120 | BuildRequires: texi2html |
22f71ecb | 121 | BuildRequires: texinfo |
78ff8fc0 | 122 | %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6} |
3187b8cc | 123 | %{?with_lttng:BuildRequires: userspace-rcu-devel} |
78a71650 | 124 | BuildRequires: vde2-devel |
cad677a4 | 125 | BuildRequires: which |
78a71650 JB |
126 | %{?with_xen:BuildRequires: xen-devel >= 3.4} |
127 | BuildRequires: xfsprogs-devel | |
ba84a935 | 128 | BuildRequires: xorg-lib-libX11-devel |
78a71650 | 129 | BuildRequires: zlib-devel |
ce44b534 JB |
130 | %if %{with gtk2} |
131 | BuildRequires: gtk+2-devel >= 2:2.18.0 | |
3187b8cc | 132 | %{?with_vte:BuildRequires: vte0-devel >= 0.24.0} |
78ff8fc0 JK |
133 | %endif |
134 | %if %{with gtk3} | |
ce44b534 | 135 | BuildRequires: gtk+3-devel >= 3.0.0 |
3187b8cc | 136 | %{?with_vte:BuildRequires: vte2.90-devel >= 0.32.0} |
ce44b534 | 137 | %endif |
a75bdea7 ER |
138 | %if %{with user_static} |
139 | BuildRequires: glib2-static | |
140 | BuildRequires: glibc-static | |
141 | BuildRequires: pcre-static | |
142 | BuildRequires: zlib-static | |
143 | %endif | |
fabf5a9c | 144 | Requires: %{name}-img = %{version}-%{release} |
ae1c5c71 | 145 | Requires: %{name}-system-aarch64 = %{version}-%{release} |
fabf5a9c ER |
146 | Requires: %{name}-system-alpha = %{version}-%{release} |
147 | Requires: %{name}-system-arm = %{version}-%{release} | |
148 | Requires: %{name}-system-cris = %{version}-%{release} | |
149 | Requires: %{name}-system-lm32 = %{version}-%{release} | |
150 | Requires: %{name}-system-m68k = %{version}-%{release} | |
151 | Requires: %{name}-system-microblaze = %{version}-%{release} | |
152 | Requires: %{name}-system-mips = %{version}-%{release} | |
a56d4cfd | 153 | Requires: %{name}-system-moxie = %{version}-%{release} |
92c357d4 | 154 | Requires: %{name}-system-or32 = %{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 \ |
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 | |
295 | Requires: %{name}-common = %{version}-%{release} | |
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 | ||
92c357d4 | 485 | %package system-or32 |
d86014ba JB |
486 | Summary: QEMU system emulator for OpenRISC |
487 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC | |
92c357d4 PS |
488 | Group: Development/Tools |
489 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 490 | %systempkg_req |
e03112c2 | 491 | Obsoletes: qemu-kvm-system-or32 |
92c357d4 PS |
492 | |
493 | %description system-or32 | |
494 | QEMU is a generic and open source processor emulator which achieves a | |
495 | good emulation speed by using dynamic translation. | |
496 | ||
d86014ba JB |
497 | This package provides the system emulator with OpenRISC CPU. |
498 | ||
499 | %description system-or32 -l pl.UTF-8 | |
500 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
501 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
502 | ||
503 | Ten pakiet zawiera emulator systemu z procesorem OpenRISC. | |
92c357d4 | 504 | |
fabf5a9c | 505 | %package system-ppc |
d86014ba JB |
506 | Summary: QEMU system emulator for PowerPC |
507 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC | |
fabf5a9c ER |
508 | Group: Development/Tools |
509 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 510 | %systempkg_req |
e03112c2 | 511 | Obsoletes: qemu-kvm-system-ppc |
fabf5a9c ER |
512 | |
513 | %description system-ppc | |
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 PowerPC CPU. |
518 | ||
519 | %description system-ppc -l pl.UTF-8 | |
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 PowerPC. | |
fabf5a9c ER |
524 | |
525 | %package system-s390x | |
d86014ba JB |
526 | Summary: QEMU system emulator for S390 |
527 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390 | |
fabf5a9c ER |
528 | Group: Development/Tools |
529 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 530 | %systempkg_req |
e03112c2 | 531 | Obsoletes: qemu-kvm-system-s390x |
fabf5a9c ER |
532 | |
533 | %description system-s390x | |
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 S390 CPU. |
538 | ||
539 | %description system-s390x -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 S390. | |
fabf5a9c ER |
544 | |
545 | %package system-sh4 | |
d86014ba JB |
546 | Summary: QEMU system emulator for SH4 |
547 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4 | |
fabf5a9c ER |
548 | Group: Development/Tools |
549 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 550 | %systempkg_req |
e03112c2 | 551 | Obsoletes: qemu-kvm-system-sh4 |
fabf5a9c ER |
552 | |
553 | %description system-sh4 | |
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 SH4 CPU. |
558 | ||
559 | %description system-sh4 -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 SH4. | |
fabf5a9c ER |
564 | |
565 | %package system-sparc | |
d86014ba JB |
566 | Summary: QEMU system emulator for SPARC |
567 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC | |
fabf5a9c ER |
568 | Group: Development/Tools |
569 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 570 | %systempkg_req |
e03112c2 | 571 | Obsoletes: qemu-kvm-system-sparc |
fabf5a9c ER |
572 | |
573 | %description system-sparc | |
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 SPARC/SPARC64 CPU. |
578 | ||
579 | %description system-sparc -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 SPARC/SPARC64. | |
fabf5a9c | 584 | |
112b8450 | 585 | %package system-tricore |
3187b8cc JB |
586 | Summary: QEMU system emulator for TriCore |
587 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore | |
112b8450 AM |
588 | Group: Development/Tools |
589 | Requires: %{name}-common = %{version}-%{release} | |
590 | %systempkg_req | |
591 | ||
592 | %description system-tricore | |
593 | QEMU is a generic and open source processor emulator which achieves a | |
594 | good emulation speed by using dynamic translation. | |
595 | ||
3187b8cc | 596 | This package provides the system emulator with TriCore CPU. |
112b8450 AM |
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 | ||
3187b8cc | 602 | Ten pakiet zawiera emulator systemu z procesorem TriCore. |
112b8450 | 603 | |
72ddf007 | 604 | %package system-unicore32 |
d86014ba JB |
605 | Summary: QEMU system emulator for UniCore32 |
606 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32 | |
72ddf007 PS |
607 | Group: Development/Tools |
608 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 609 | %systempkg_req |
e03112c2 | 610 | Obsoletes: qemu-kvm-system-unicore32 |
72ddf007 PS |
611 | |
612 | %description system-unicore32 | |
613 | QEMU is a generic and open source processor emulator which achieves a | |
614 | good emulation speed by using dynamic translation. | |
615 | ||
d86014ba JB |
616 | This package provides the system emulator with UniCore32 CPU. |
617 | ||
618 | %description system-unicore32 -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 | ||
622 | Ten pakiet zawiera emulator systemu z procesorem UniCore32. | |
72ddf007 | 623 | |
fabf5a9c ER |
624 | %package system-x86 |
625 | Summary: QEMU system emulator for x86 | |
d86014ba | 626 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86 |
fabf5a9c ER |
627 | Group: Development/Tools |
628 | Requires: %{name}-common = %{version}-%{release} | |
af556ac1 | 629 | %{?with_system_seabios:Requires: seabios} |
78a71650 | 630 | %systempkg_req |
1c6a7aa7 | 631 | Obsoletes: kvm |
e03112c2 | 632 | Obsoletes: qemu-kvm-system-x86 |
fabf5a9c ER |
633 | |
634 | %description system-x86 | |
635 | QEMU is a generic and open source processor emulator which achieves a | |
636 | good emulation speed by using dynamic translation. | |
637 | ||
d86014ba JB |
638 | %description system-x86 -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 | ||
fabf5a9c | 642 | %package system-xtensa |
d86014ba JB |
643 | Summary: QEMU system emulator for Xtensa |
644 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa | |
fabf5a9c ER |
645 | Group: Development/Tools |
646 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 647 | %systempkg_req |
e03112c2 | 648 | Obsoletes: qemu-kvm-system-xtensa |
fabf5a9c ER |
649 | |
650 | %description system-xtensa | |
651 | QEMU is a generic and open source processor emulator which achieves a | |
652 | good emulation speed by using dynamic translation. | |
653 | ||
d86014ba JB |
654 | This package provides the system emulator with Xtensa CPU. |
655 | ||
656 | %description system-xtensa -l pl.UTF-8 | |
657 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
658 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
659 | ||
660 | Ten pakiet zawiera emulator systemu z procesorem Xtensa. | |
fabf5a9c | 661 | |
93473205 JR |
662 | %package guest-agent |
663 | Summary: QEMU guest agent | |
664 | Summary(pl.UTF-8): Agent gościa QEMU | |
665 | Group: Daemons | |
666 | Requires(post,preun,postun): systemd-units >= 38 | |
54b666b7 | 667 | Requires: glib2 >= 1:2.22 |
93473205 JR |
668 | Requires: systemd-units >= 38 |
669 | Obsoletes: qemu-kvm-guest-agent | |
670 | ||
671 | %description guest-agent | |
008c880e ER |
672 | QEMU is a generic and open source processor emulator which achieves a |
673 | good emulation speed by using dynamic translation. | |
93473205 JR |
674 | |
675 | This package provides an agent to run inside guests, which | |
676 | communicates with the host over a virtio-serial channel named | |
677 | "org.qemu.guest_agent.0". | |
678 | ||
679 | This package does not need to be installed on the host OS. | |
680 | ||
681 | %description guest-agent -l pl.UTF-8 | |
682 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
683 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
684 | ||
685 | Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w | |
686 | systemach-gościach, komunikującego się kanałem virtio-serial o nazwie | |
687 | "org.qemu.guest_agent.0". | |
688 | ||
689 | Ten pakiet nie musi być zainstalowany w systemie hosta. | |
690 | ||
0655cee4 JB |
691 | %package module-block-archipelago |
692 | Summary: QEMU module for Archipelago block devices | |
693 | Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych Archipelago | |
694 | Group: Development/Tools | |
695 | Requires: %{name}-common = %{version}-%{release} | |
696 | ||
697 | %description module-block-archipelago | |
698 | Archipelago block device support for QEMU. | |
699 | ||
700 | %description module-block-archipelago -l pl.UTF-8 | |
701 | Moduł QEMU dla urządeń blokowych Archipelago. | |
702 | ||
ae1c5c71 JK |
703 | %package module-block-curl |
704 | Summary: QEMU module for 'curl' block devices | |
705 | Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl' | |
706 | Group: Development/Tools | |
707 | Requires: %{name}-common = %{version}-%{release} | |
708 | ||
709 | %description module-block-curl | |
710 | 'curl' block device support for QEMU. | |
711 | ||
712 | %description module-block-curl -l pl.UTF-8 | |
713 | Moduł QEMU dla urządeń blokowych typu 'curl'. | |
714 | ||
715 | %package module-block-gluster | |
716 | Summary: QEMU module for 'gluster' block devices | |
717 | Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster' | |
718 | Group: Development/Tools | |
719 | Requires: %{name}-common = %{version}-%{release} | |
c218d8d3 | 720 | Requires: glusterfs-libs >= 3.4 |
ae1c5c71 JK |
721 | |
722 | %description module-block-gluster | |
723 | 'gluster' block device support for QEMU. | |
724 | ||
725 | %description module-block-gluster -l pl.UTF-8 | |
726 | Moduł QEMU dla urządeń blokowych typu 'gluster'. | |
727 | ||
728 | %package module-block-iscsi | |
729 | Summary: QEMU module for 'iscsi' block devices | |
730 | Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi' | |
731 | Group: Development/Tools | |
732 | Requires: %{name}-common = %{version}-%{release} | |
3187b8cc | 733 | Requires: libiscsi >= 1.9.0 |
ae1c5c71 JK |
734 | |
735 | %description module-block-iscsi | |
736 | 'iscsi' block device support for QEMU. | |
737 | ||
738 | %description module-block-iscsi -l pl.UTF-8 | |
739 | Moduł QEMU dla urządeń blokowych typu 'iscsi'. | |
740 | ||
741 | %package module-block-rbd | |
742 | Summary: QEMU module for 'rbd' block devices | |
743 | Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd' | |
744 | Group: Development/Tools | |
745 | Requires: %{name}-common = %{version}-%{release} | |
746 | ||
747 | %description module-block-rbd | |
748 | 'rbd' block device support for QEMU. | |
749 | ||
750 | %description module-block-rbd -l pl.UTF-8 | |
751 | Moduł QEMU dla urządeń blokowych typu 'rbd'. | |
752 | ||
753 | %package module-block-ssh | |
754 | Summary: QEMU module for 'ssh' block devices | |
755 | Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh' | |
756 | Group: Development/Tools | |
757 | Requires: %{name}-common = %{version}-%{release} | |
758 | ||
759 | %description module-block-ssh | |
760 | 'ssh' block device support for QEMU. | |
761 | ||
762 | %description module-block-ssh -l pl.UTF-8 | |
763 | Moduł QEMU dla urządeń blokowych typu 'ssh'. | |
764 | ||
cd19124e | 765 | %prep |
c21a255a | 766 | %setup -q |
3c6e2290 | 767 | %patch0 -p1 |
d9002706 | 768 | %patch1 -p1 |
449d43aa | 769 | %patch2 -p0 |
a5affa61 | 770 | %patch3 -p1 |
008c880e | 771 | %patch4 -p1 |
4e8ae6f9 | 772 | %patch5 -p1 |
789f9573 | 773 | %patch6 -p1 |
c18e9cf6 | 774 | |
bd30ad73 GP |
775 | # workaround for conflict with alsa/error.h |
776 | ln -s ../error.h qapi/error.h | |
777 | ||
80bac37e | 778 | %build |
a75bdea7 ER |
779 | |
780 | build() { | |
781 | local target=$1 | |
782 | shift | |
783 | ||
784 | install -d build-$target | |
785 | cd build-$target | |
786 | ||
787 | ../configure \ | |
8bd2aee2 | 788 | --prefix=%{_prefix} \ |
ae1c5c71 JK |
789 | --libdir=%{_libdir} \ |
790 | --libexecdir=%{_libexecdir} \ | |
87364910 | 791 | --sysconfdir=%{_sysconfdir} \ |
a75bdea7 ER |
792 | --localstatedir=%{_localstatedir} \ |
793 | --interp-prefix=%{_libdir}/qemu/lib-%%M \ | |
98a1a188 AM |
794 | --cc="%{__cc}" \ |
795 | --host-cc="%{__cc}" \ | |
5263f8f5 | 796 | --disable-strip \ |
a75bdea7 ER |
797 | --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \ |
798 | --enable-kvm \ | |
799 | "$@" | |
800 | ||
801 | %{__make} \ | |
802 | V=1 \ | |
803 | %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} | |
804 | ||
805 | cd .. | |
806 | } | |
807 | ||
808 | build dynamic \ | |
809 | --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \ | |
810 | --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \ | |
0655cee4 | 811 | %{__enable_disable xseg archipelago} \ |
78a71650 | 812 | --enable-attr \ |
78ff8fc0 JK |
813 | %{__enable_disable bluetooth bluez} \ |
814 | %{__enable_disable brlapi} \ | |
78a71650 JB |
815 | --enable-cap-ng \ |
816 | --enable-curl \ | |
817 | --enable-curses \ | |
87364910 | 818 | --enable-docs \ |
78a71650 | 819 | --enable-fdt \ |
449d43aa | 820 | %{__enable_disable glusterfs} \ |
78ff8fc0 | 821 | %{__enable_disable iscsi libiscsi} \ |
78a71650 | 822 | %{__enable_disable ceph rbd} \ |
80dbeed1 | 823 | %{__enable_disable rdma} \ |
78a71650 | 824 | %{__enable_disable sdl} \ |
ae1c5c71 | 825 | --with-sdlabi=2.0 \ |
78ff8fc0 | 826 | %{__enable_disable seccomp} \ |
59bc1300 | 827 | %{__enable_disable spice} \ |
f9d90a34 | 828 | %{__enable_disable smartcard smartcard} \ |
ce44b534 | 829 | --enable-tpm \ |
78ff8fc0 | 830 | %{__enable_disable usbredir usb-redir} \ |
78a71650 JB |
831 | --enable-uuid \ |
832 | --enable-vde \ | |
833 | --enable-virtfs \ | |
834 | --enable-vnc-jpeg \ | |
87364910 | 835 | --enable-vnc-png \ |
78a71650 | 836 | --enable-vnc-sasl \ |
3187b8cc | 837 | %{!?with_vte:--disable-vte} \ |
78a71650 | 838 | %{__enable_disable xen} \ |
ae1c5c71 JK |
839 | --enable-modules \ |
840 | --disable-netmap \ | |
b9ddc0a7 | 841 | %{__enable_disable libnfs} \ |
ae1c5c71 JK |
842 | --enable-lzo \ |
843 | %{__enable_disable snappy} \ | |
87364910 | 844 | --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \ |
78ff8fc0 JK |
845 | %if %{without gtk2} && %{without gtk3} |
846 | --disable-gtk | |
847 | %else | |
ce44b534 | 848 | --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}" |
78ff8fc0 | 849 | %endif |
ce44b534 | 850 | |
a75bdea7 ER |
851 | %if %{with user_static} |
852 | build static \ | |
853 | --disable-brlapi \ | |
854 | --disable-cap-ng \ | |
855 | --disable-curl \ | |
856 | --disable-curses \ | |
857 | --disable-gcrypt \ | |
858 | --disable-gnutls \ | |
859 | --disable-gtk \ | |
860 | --disable-guest-agent \ | |
861 | --disable-guest-agent-msi \ | |
862 | --disable-libnfs \ | |
863 | --disable-nettle \ | |
864 | --disable-pie \ | |
865 | --disable-sdl \ | |
866 | --disable-spice \ | |
867 | --disable-tcmalloc \ | |
868 | --disable-tools \ | |
869 | --disable-uuid \ | |
870 | --enable-user \ | |
871 | --disable-system \ | |
872 | --static | |
873 | ||
874 | %endif | |
cd19124e | 875 | |
d9002706 PS |
876 | # rebuild patched vesa tables with additional widescreen modes. |
877 | %{__make} -C roms/vgabios stdvga-bios | |
878 | ||
9fdf235e JR |
879 | %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl |
880 | ||
cd19124e | 881 | %install |
882 | rm -rf $RPM_BUILD_ROOT | |
51327cc0 | 883 | install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \ |
b418165e | 884 | $RPM_BUILD_ROOT/etc/{qemu,sysconfig,udev/rules.d,modules-load.d} \ |
51327cc0 | 885 | $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}} |
5a2da1d0 | 886 | |
a75bdea7 ER |
887 | %if %{with user_static} |
888 | %{__make} -C build-static install \ | |
889 | %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \ | |
890 | DESTDIR=$RPM_BUILD_ROOT | |
891 | ||
892 | # Give all QEMU user emulators a -static suffix | |
893 | for src in $RPM_BUILD_ROOT%{_bindir}/qemu-*; do | |
894 | mv $src $src-static | |
895 | done | |
896 | ||
897 | %endif | |
898 | ||
899 | %{__make} -C build-dynamic install \ | |
471d1276 | 900 | %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \ |
ae1c5c71 | 901 | DESTDIR=$RPM_BUILD_ROOT |
ac6e5743 | 902 | |
b418165e MM |
903 | echo "#allow br0" > $RPM_BUILD_ROOT/etc/qemu/bridge.conf |
904 | ||
a91fea76 | 905 | install -d $RPM_BUILD_ROOT%{_sysconfdir} |
906 | cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup | |
ac6e5743 | 907 | #!/bin/sh |
a91fea76 | 908 | |
ac6e5743 | 909 | EOF |
a62a2d89 | 910 | |
5ed67169 JR |
911 | install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf |
912 | ||
e53a3a53 | 913 | %ifarch %{ix86} %{x8664} x32 |
41ed6e2c JR |
914 | install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf |
915 | install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d | |
916 | %endif | |
917 | ||
9fdf235e JR |
918 | install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service |
919 | install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm | |
920 | install -p ksmctl $RPM_BUILD_ROOT%{_sbindir} | |
921 | ||
922 | install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service | |
923 | install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned | |
924 | install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf | |
925 | ||
93473205 JR |
926 | # For the qemu-guest-agent subpackage install the systemd |
927 | # service and udev rules. | |
928 | install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir} | |
929 | install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d | |
930 | ||
7babf190 | 931 | # Install binfmt |
a78c5672 | 932 | for i in dummy \ |
e53a3a53 | 933 | %ifnarch %{ix86} %{x8664} x32 |
008c880e | 934 | qemu-i386 \ |
a78c5672 | 935 | %endif |
7babf190 ER |
936 | %ifnarch alpha |
937 | qemu-alpha \ | |
938 | %endif | |
939 | %ifnarch %{arm} | |
008c880e | 940 | qemu-arm \ |
a78c5672 | 941 | %endif |
7babf190 ER |
942 | qemu-armeb \ |
943 | qemu-cris \ | |
944 | qemu-microblaze qemu-microblazeel \ | |
945 | %ifnarch mips64 | |
946 | qemu-mips64 \ | |
947 | %ifnarch mips | |
948 | qemu-mips \ | |
949 | %endif | |
950 | %endif | |
951 | %ifnarch mips64el | |
952 | qemu-mips64el \ | |
953 | %ifnarch mipsel | |
954 | qemu-mipsel \ | |
955 | %endif | |
956 | %endif | |
957 | %ifnarch m68k | |
958 | qemu-m68k \ | |
959 | %endif | |
960 | %ifnarch ppc ppc64 ppc64le | |
961 | qemu-ppc qemu-ppc64abi32 qemu-ppc64 \ | |
a78c5672 JR |
962 | %endif |
963 | %ifnarch sparc sparc64 | |
7babf190 ER |
964 | qemu-sparc qemu-sparc32plus qemu-sparc64 \ |
965 | %endif | |
966 | %ifnarch s390 s390x | |
967 | qemu-s390x \ | |
a78c5672 JR |
968 | %endif |
969 | %ifnarch sh4 | |
008c880e | 970 | qemu-sh4 \ |
a78c5672 | 971 | %endif |
7babf190 | 972 | qemu-sh4eb \ |
a78c5672 JR |
973 | ; do |
974 | test $i = dummy && continue | |
975 | grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf | |
976 | done < %{SOURCE2} | |
977 | ||
68eb235d | 978 | # packaged as %doc |
5263f8f5 JB |
979 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html |
980 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt | |
c33439fc | 981 | |
d9002706 | 982 | # install patched vesa tables with additional widescreen modes. |
ae8bf749 | 983 | cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin |
d9002706 | 984 | |
af556ac1 | 985 | %if %{with system_seabios} |
ae1c5c71 JK |
986 | ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin |
987 | # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it | |
af556ac1 JK |
988 | for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do |
989 | bn="$(basename $f)" | |
990 | if [ -e "/usr/share/seabios/$bn" ] ; then | |
991 | ln -sf "/usr/share/seabios/$bn" "$f" | |
992 | fi | |
993 | done | |
994 | %endif | |
995 | ||
78ff8fc0 | 996 | %if %{with gtk2} || %{with gtk3} |
008c880e ER |
997 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de} |
998 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr} | |
a56d4cfd | 999 | %find_lang %{name} |
78ff8fc0 JK |
1000 | %else |
1001 | : > qemu.lang | |
1002 | %endif | |
a56d4cfd | 1003 | |
cd19124e | 1004 | %clean |
1005 | rm -rf $RPM_BUILD_ROOT | |
1006 | ||
c1d653f6 | 1007 | %pre common |
a45c10b6 | 1008 | %groupadd -g 160 kvm |
c1d653f6 | 1009 | %groupadd -g 276 qemu |
a45c10b6 | 1010 | %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu |
c1d653f6 | 1011 | |
9fdf235e JR |
1012 | %post common |
1013 | %systemd_post ksm.service | |
1014 | %systemd_post ksmtuned.service | |
1015 | ||
1016 | %preun common | |
1017 | %systemd_preun ksm.service | |
1018 | %systemd_preun ksmtuned.service | |
1019 | ||
c1d653f6 AG |
1020 | %postun common |
1021 | if [ "$1" = "0" ]; then | |
1022 | %userremove qemu | |
1023 | %groupremove qemu | |
a45c10b6 | 1024 | %groupremove kvm |
c1d653f6 | 1025 | fi |
9fdf235e JR |
1026 | %systemd_reload |
1027 | ||
1028 | %triggerpostun common -- qemu-common < 1.6.1-4 | |
1029 | %systemd_trigger ksm.service | |
1030 | %systemd_trigger ksmtuned.service | |
c1d653f6 | 1031 | |
a78c5672 JR |
1032 | %post user |
1033 | %systemd_service_restart systemd-binfmt.service | |
1034 | ||
1035 | %postun user | |
1036 | %systemd_service_restart systemd-binfmt.service | |
1037 | ||
93473205 JR |
1038 | %post guest-agent |
1039 | %systemd_reload | |
1040 | ||
1041 | %preun guest-agent | |
1042 | %systemd_preun qemu-guest-agent.service | |
1043 | ||
1044 | %postun guest-agent | |
1045 | %systemd_reload | |
1046 | ||
cd19124e | 1047 | %files |
1048 | %defattr(644,root,root,755) | |
fabf5a9c | 1049 | |
a56d4cfd | 1050 | %files common -f %{name}.lang |
fabf5a9c | 1051 | %defattr(644,root,root,755) |
a75bdea7 ER |
1052 | %doc LICENSE README |
1053 | %doc build-dynamic/{qemu-doc.html,qemu-tech.html,qmp-commands.txt} | |
a91fea76 | 1054 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup |
c980f439 | 1055 | %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf |
5ed67169 | 1056 | %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf |
c980f439 | 1057 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm |
b418165e MM |
1058 | %dir /etc/qemu |
1059 | %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf | |
c980f439 JR |
1060 | %{systemdunitdir}/ksm.service |
1061 | %{systemdunitdir}/ksmtuned.service | |
56eebfcf AM |
1062 | %attr(755,root,root) %{_bindir}/ivshmem-client |
1063 | %attr(755,root,root) %{_bindir}/ivshmem-server | |
5263f8f5 | 1064 | %attr(755,root,root) %{_bindir}/virtfs-proxy-helper |
fabf5a9c | 1065 | %attr(755,root,root) %{_bindir}/qemu-nbd |
56eebfcf | 1066 | %attr(755,root,root) %{_bindir}/qemu-tilegx |
5263f8f5 | 1067 | %attr(755,root,root) %{_libdir}/qemu-bridge-helper |
c980f439 JR |
1068 | %attr(755,root,root) %{_sbindir}/ksmctl |
1069 | %attr(755,root,root) %{_sbindir}/ksmtuned | |
cd19124e | 1070 | %{_mandir}/man1/qemu.1* |
5263f8f5 | 1071 | %{_mandir}/man1/virtfs-proxy-helper.1* |
98a1a188 | 1072 | %{_mandir}/man8/qemu-nbd.8* |
fabf5a9c ER |
1073 | |
1074 | %dir %{_datadir}/qemu | |
1075 | %{_datadir}/%{name}/keymaps | |
5263f8f5 | 1076 | %{_datadir}/%{name}/qemu-icon.bmp |
3ae34e73 | 1077 | %{_datadir}/%{name}/trace-events-all |
af556ac1 | 1078 | |
fabf5a9c | 1079 | # various bios images |
af556ac1 | 1080 | # all should be probably moved to the right system subpackage |
af556ac1 | 1081 | %{_datadir}/%{name}/bamboo.dtb |
3ae34e73 | 1082 | %{_datadir}/%{name}/efi-e1000e.rom |
af556ac1 JK |
1083 | %{_datadir}/%{name}/efi-e1000.rom |
1084 | %{_datadir}/%{name}/efi-eepro100.rom | |
1085 | %{_datadir}/%{name}/efi-ne2k_pci.rom | |
1086 | %{_datadir}/%{name}/efi-pcnet.rom | |
1087 | %{_datadir}/%{name}/efi-rtl8139.rom | |
1088 | %{_datadir}/%{name}/efi-virtio.rom | |
3ae34e73 | 1089 | %{_datadir}/%{name}/efi-vmxnet3.rom |
af556ac1 JK |
1090 | %{_datadir}/%{name}/kvmvapic.bin |
1091 | %{_datadir}/%{name}/linuxboot.bin | |
3ae34e73 | 1092 | %{_datadir}/%{name}/linuxboot_dma.bin |
af556ac1 | 1093 | %{_datadir}/%{name}/multiboot.bin |
fabf5a9c ER |
1094 | %{_datadir}/%{name}/openbios-ppc |
1095 | %{_datadir}/%{name}/openbios-sparc* | |
1096 | %{_datadir}/%{name}/palcode-clipper | |
af556ac1 JK |
1097 | %{_datadir}/%{name}/petalogix-ml605.dtb |
1098 | %{_datadir}/%{name}/petalogix-s3adsp1800.dtb | |
1099 | %{_datadir}/%{name}/ppc_rom.bin | |
1100 | %{_datadir}/%{name}/pxe-e1000.rom | |
1101 | %{_datadir}/%{name}/pxe-eepro100.rom | |
1102 | %{_datadir}/%{name}/pxe-ne2k_pci.rom | |
1103 | %{_datadir}/%{name}/pxe-pcnet.rom | |
1104 | %{_datadir}/%{name}/pxe-rtl8139.rom | |
1105 | %{_datadir}/%{name}/pxe-virtio.rom | |
3ae34e73 | 1106 | %{_datadir}/%{name}/QEMU,cgthree.bin |
af556ac1 | 1107 | %{_datadir}/%{name}/qemu_logo_no_text.svg |
3ae34e73 | 1108 | %{_datadir}/%{name}/QEMU,tcx.bin |
a56d4cfd | 1109 | %{_datadir}/%{name}/s390-ccw.img |
af556ac1 JK |
1110 | %{_datadir}/%{name}/sgabios.bin |
1111 | %{_datadir}/%{name}/slof.bin | |
1112 | %{_datadir}/%{name}/spapr-rtas.bin | |
3ae34e73 | 1113 | %{_datadir}/%{name}/vgabios.bin |
af556ac1 JK |
1114 | %{_datadir}/%{name}/vgabios-cirrus.bin |
1115 | %{_datadir}/%{name}/vgabios-qxl.bin | |
1116 | %{_datadir}/%{name}/vgabios-stdvga.bin | |
54b666b7 | 1117 | %{_datadir}/%{name}/vgabios-virtio.bin |
af556ac1 | 1118 | %{_datadir}/%{name}/vgabios-vmware.bin |
fabf5a9c | 1119 | |
ae1c5c71 JK |
1120 | %dir %{_libdir}/%{name} |
1121 | ||
54b666b7 AM |
1122 | # modules without too many external dependencies |
1123 | %attr(755,root,root) %{_libdir}/%{name}/block-dmg.so | |
1124 | ||
fabf5a9c ER |
1125 | %files img |
1126 | %defattr(644,root,root,755) | |
1127 | %attr(755,root,root) %{_bindir}/qemu-img | |
1128 | %{_mandir}/man1/qemu-img.1* | |
1129 | ||
1130 | %files user | |
1131 | %defattr(644,root,root,755) | |
a78c5672 | 1132 | /usr/lib/binfmt.d/qemu-*.conf |
ae1c5c71 | 1133 | %attr(755,root,root) %{_bindir}/qemu-aarch64 |
fabf5a9c ER |
1134 | %attr(755,root,root) %{_bindir}/qemu-alpha |
1135 | %attr(755,root,root) %{_bindir}/qemu-arm | |
1136 | %attr(755,root,root) %{_bindir}/qemu-armeb | |
1137 | %attr(755,root,root) %{_bindir}/qemu-cris | |
59bc1300 | 1138 | %attr(755,root,root) %{_bindir}/qemu-i386 |
fabf5a9c ER |
1139 | %attr(755,root,root) %{_bindir}/qemu-io |
1140 | %attr(755,root,root) %{_bindir}/qemu-m68k | |
1141 | %attr(755,root,root) %{_bindir}/qemu-microblaze | |
1142 | %attr(755,root,root) %{_bindir}/qemu-microblazeel | |
1143 | %attr(755,root,root) %{_bindir}/qemu-mips | |
1144 | %attr(755,root,root) %{_bindir}/qemu-mipsel | |
a56d4cfd JB |
1145 | %attr(755,root,root) %{_bindir}/qemu-mips64 |
1146 | %attr(755,root,root) %{_bindir}/qemu-mips64el | |
1147 | %attr(755,root,root) %{_bindir}/qemu-mipsn32 | |
1148 | %attr(755,root,root) %{_bindir}/qemu-mipsn32el | |
92c357d4 | 1149 | %attr(755,root,root) %{_bindir}/qemu-or32 |
fabf5a9c ER |
1150 | %attr(755,root,root) %{_bindir}/qemu-ppc |
1151 | %attr(755,root,root) %{_bindir}/qemu-ppc64 | |
1152 | %attr(755,root,root) %{_bindir}/qemu-ppc64abi32 | |
f39d158a | 1153 | %attr(755,root,root) %{_bindir}/qemu-ppc64le |
fabf5a9c ER |
1154 | %attr(755,root,root) %{_bindir}/qemu-s390x |
1155 | %attr(755,root,root) %{_bindir}/qemu-sh4 | |
1156 | %attr(755,root,root) %{_bindir}/qemu-sh4eb | |
1157 | %attr(755,root,root) %{_bindir}/qemu-sparc | |
1158 | %attr(755,root,root) %{_bindir}/qemu-sparc32plus | |
1159 | %attr(755,root,root) %{_bindir}/qemu-sparc64 | |
1160 | %attr(755,root,root) %{_bindir}/qemu-unicore32 | |
59bc1300 | 1161 | %attr(755,root,root) %{_bindir}/qemu-x86_64 |
fabf5a9c | 1162 | |
a75bdea7 ER |
1163 | %if %{with user_static} |
1164 | %files user-static | |
1165 | %defattr(644,root,root,755) | |
1166 | %attr(755,root,root) %{_bindir}/qemu-aarch64-static | |
1167 | %attr(755,root,root) %{_bindir}/qemu-alpha-static | |
1168 | %attr(755,root,root) %{_bindir}/qemu-arm-static | |
1169 | %attr(755,root,root) %{_bindir}/qemu-armeb-static | |
1170 | %attr(755,root,root) %{_bindir}/qemu-cris-static | |
1171 | %attr(755,root,root) %{_bindir}/qemu-i386-static | |
1172 | %attr(755,root,root) %{_bindir}/qemu-m68k-static | |
1173 | %attr(755,root,root) %{_bindir}/qemu-microblaze-static | |
1174 | %attr(755,root,root) %{_bindir}/qemu-microblazeel-static | |
1175 | %attr(755,root,root) %{_bindir}/qemu-mips-static | |
1176 | %attr(755,root,root) %{_bindir}/qemu-mips64-static | |
1177 | %attr(755,root,root) %{_bindir}/qemu-mips64el-static | |
1178 | %attr(755,root,root) %{_bindir}/qemu-mipsel-static | |
1179 | %attr(755,root,root) %{_bindir}/qemu-mipsn32-static | |
1180 | %attr(755,root,root) %{_bindir}/qemu-mipsn32el-static | |
1181 | %attr(755,root,root) %{_bindir}/qemu-or32-static | |
1182 | %attr(755,root,root) %{_bindir}/qemu-ppc-static | |
1183 | %attr(755,root,root) %{_bindir}/qemu-ppc64-static | |
1184 | %attr(755,root,root) %{_bindir}/qemu-ppc64abi32-static | |
1185 | %attr(755,root,root) %{_bindir}/qemu-ppc64le-static | |
1186 | %attr(755,root,root) %{_bindir}/qemu-s390x-static | |
1187 | %attr(755,root,root) %{_bindir}/qemu-sh4-static | |
1188 | %attr(755,root,root) %{_bindir}/qemu-sh4eb-static | |
1189 | %attr(755,root,root) %{_bindir}/qemu-sparc-static | |
1190 | %attr(755,root,root) %{_bindir}/qemu-sparc32plus-static | |
1191 | %attr(755,root,root) %{_bindir}/qemu-sparc64-static | |
1192 | %attr(755,root,root) %{_bindir}/qemu-tilegx-static | |
1193 | %attr(755,root,root) %{_bindir}/qemu-unicore32-static | |
1194 | %attr(755,root,root) %{_bindir}/qemu-x86_64-static | |
1195 | %endif | |
1196 | ||
ae1c5c71 JK |
1197 | %files system-aarch64 |
1198 | %defattr(644,root,root,755) | |
1199 | %attr(755,root,root) %{_bindir}/qemu-system-aarch64 | |
1200 | ||
fabf5a9c ER |
1201 | %files system-alpha |
1202 | %defattr(644,root,root,755) | |
1203 | %attr(755,root,root) %{_bindir}/qemu-system-alpha | |
1204 | ||
1205 | %files system-arm | |
1206 | %defattr(644,root,root,755) | |
1207 | %attr(755,root,root) %{_bindir}/qemu-system-arm | |
1208 | ||
1209 | %files system-cris | |
1210 | %defattr(644,root,root,755) | |
1211 | %attr(755,root,root) %{_bindir}/qemu-system-cris | |
1212 | ||
1213 | %files system-lm32 | |
1214 | %defattr(644,root,root,755) | |
1215 | %attr(755,root,root) %{_bindir}/qemu-system-lm32 | |
1216 | ||
1217 | %files system-m68k | |
1218 | %defattr(644,root,root,755) | |
1219 | %attr(755,root,root) %{_bindir}/qemu-system-m68k | |
1220 | ||
1221 | %files system-microblaze | |
1222 | %defattr(644,root,root,755) | |
1223 | %attr(755,root,root) %{_bindir}/qemu-system-microblaze | |
1224 | %attr(755,root,root) %{_bindir}/qemu-system-microblazeel | |
1225 | ||
1226 | %files system-mips | |
1227 | %defattr(644,root,root,755) | |
1228 | %attr(755,root,root) %{_bindir}/qemu-system-mips | |
1229 | %attr(755,root,root) %{_bindir}/qemu-system-mipsel | |
1230 | %attr(755,root,root) %{_bindir}/qemu-system-mips64 | |
1231 | %attr(755,root,root) %{_bindir}/qemu-system-mips64el | |
1232 | ||
a56d4cfd JB |
1233 | %files system-moxie |
1234 | %defattr(644,root,root,755) | |
1235 | %attr(755,root,root) %{_bindir}/qemu-system-moxie | |
1236 | ||
92c357d4 PS |
1237 | %files system-or32 |
1238 | %defattr(644,root,root,755) | |
1239 | %attr(755,root,root) %{_bindir}/qemu-system-or32 | |
1240 | ||
fabf5a9c ER |
1241 | %files system-ppc |
1242 | %defattr(644,root,root,755) | |
1243 | %attr(755,root,root) %{_bindir}/qemu-system-ppc | |
1244 | %attr(755,root,root) %{_bindir}/qemu-system-ppc64 | |
f39d158a | 1245 | #%attr(755,root,root) %{_bindir}/qemu-system-ppc64le |
fabf5a9c | 1246 | %attr(755,root,root) %{_bindir}/qemu-system-ppcemb |
f39d158a | 1247 | %{_datadir}/%{name}/u-boot.e500 |
fabf5a9c ER |
1248 | |
1249 | %files system-s390x | |
1250 | %defattr(644,root,root,755) | |
1251 | %attr(755,root,root) %{_bindir}/qemu-system-s390x | |
1252 | ||
1253 | %files system-sh4 | |
1254 | %defattr(644,root,root,755) | |
1255 | %attr(755,root,root) %{_bindir}/qemu-system-sh4 | |
1256 | %attr(755,root,root) %{_bindir}/qemu-system-sh4eb | |
1257 | ||
1258 | %files system-sparc | |
1259 | %defattr(644,root,root,755) | |
1260 | %attr(755,root,root) %{_bindir}/qemu-system-sparc | |
1261 | %attr(755,root,root) %{_bindir}/qemu-system-sparc64 | |
1262 | ||
112b8450 AM |
1263 | %files system-tricore |
1264 | %defattr(644,root,root,755) | |
1265 | %attr(755,root,root) %{_bindir}/qemu-system-tricore | |
1266 | ||
72ddf007 PS |
1267 | %files system-unicore32 |
1268 | %defattr(644,root,root,755) | |
1269 | %attr(755,root,root) %{_bindir}/qemu-system-unicore32 | |
1270 | ||
fabf5a9c ER |
1271 | %files system-x86 |
1272 | %defattr(644,root,root,755) | |
1273 | %attr(755,root,root) %{_bindir}/qemu-system-i386 | |
1274 | %attr(755,root,root) %{_bindir}/qemu-system-x86_64 | |
e53a3a53 | 1275 | %ifarch %{ix86} %{x8664} x32 |
41ed6e2c JR |
1276 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf |
1277 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules | |
41ed6e2c | 1278 | %endif |
af556ac1 | 1279 | %{_datadir}/%{name}/bios.bin |
ae1c5c71 | 1280 | %{_datadir}/%{name}/bios-256k.bin |
af556ac1 | 1281 | %{_datadir}/%{name}/acpi-dsdt.aml |
fabf5a9c ER |
1282 | |
1283 | %files system-xtensa | |
1284 | %defattr(644,root,root,755) | |
1285 | %attr(755,root,root) %{_bindir}/qemu-system-xtensa | |
1286 | %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb | |
93473205 JR |
1287 | |
1288 | %files guest-agent | |
008c880e | 1289 | %defattr(644,root,root,755) |
93473205 JR |
1290 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules |
1291 | %{systemdunitdir}/qemu-guest-agent.service | |
1292 | %attr(755,root,root) %{_bindir}/qemu-ga | |
56eebfcf | 1293 | %{_mandir}/man8/qemu-ga.8* |
ae1c5c71 | 1294 | |
0655cee4 JB |
1295 | %if %{with xseg} |
1296 | %files module-block-archipelago | |
1297 | %defattr(644,root,root,755) | |
1298 | %attr(755,root,root) %{_libdir}/%{name}/block-archipelago.so | |
1299 | %endif | |
1300 | ||
ae1c5c71 JK |
1301 | %files module-block-curl |
1302 | %defattr(644,root,root,755) | |
1303 | %attr(755,root,root) %{_libdir}/%{name}/block-curl.so | |
1304 | ||
c218d8d3 | 1305 | %if %{with glusterfs} |
ae1c5c71 JK |
1306 | %files module-block-gluster |
1307 | %defattr(644,root,root,755) | |
1308 | %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so | |
c218d8d3 | 1309 | %endif |
ae1c5c71 | 1310 | |
c218d8d3 | 1311 | %if %{with iscsi} |
ae1c5c71 JK |
1312 | %files module-block-iscsi |
1313 | %defattr(644,root,root,755) | |
1314 | %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so | |
c218d8d3 | 1315 | %endif |
ae1c5c71 | 1316 | |
c218d8d3 | 1317 | %if %{with ceph} |
ae1c5c71 JK |
1318 | %files module-block-rbd |
1319 | %defattr(644,root,root,755) | |
1320 | %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so | |
c218d8d3 | 1321 | %endif |
ae1c5c71 JK |
1322 | |
1323 | %files module-block-ssh | |
1324 | %defattr(644,root,root,755) | |
1325 | %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so |