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