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