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