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