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