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