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