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