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