]> git.pld-linux.org Git - packages/qemu.git/blame - qemu.spec
up to 4.2.0
[packages/qemu.git] / qemu.spec
CommitLineData
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
ddb2a917 5%bcond_without ceph # Ceph/RBD support
80dbeed1
JB
6%bcond_without glusterfs # GlusterFS backend
7%bcond_without rdma # RDMA-based migration support
3187b8cc
JB
8%bcond_without gtk3 # Do not build GTK+ UI
9%bcond_without vte # VTE support in GTK+ UI
59bc1300 10%bcond_without spice # SPICE support
78a71650
JB
11%bcond_with esd # EsounD audio support
12%bcond_without oss # OSS audio support
13%bcond_without pulseaudio # PulseAudio audio support
14%bcond_without xen # Xen backend driver support
78ff8fc0
JK
15%bcond_without bluetooth # bluetooth support
16%bcond_without brlapi # brlapi support
17%bcond_without smartcard # smartcard-nss support
18%bcond_without iscsi # iscsi support
b9ddc0a7 19%bcond_without libnfs # NFS support
78ff8fc0
JK
20%bcond_without seccomp # seccomp support
21%bcond_without usbredir # usb network redirection support
af556ac1 22%bcond_without system_seabios # system seabios binary
ae1c5c71 23%bcond_without snappy # snappy compression library
a75bdea7 24%bcond_without user_static # build linux-user static packages
3187b8cc
JB
25%bcond_with lttng # lttng-ust trace backend support
26%bcond_with systemtap # SystemTap/dtrace trace backend support
24209dad 27%bcond_with virgl # build virgl support
32bf0518 28%bcond_without xkbcommon # xkbcommon support
78ff8fc0 29
789f9573
JR
30%ifarch x32
31%undefine with_xen
32%endif
33
cd19124e 34Summary: QEMU CPU Emulator
eec0535a 35Summary(pl.UTF-8): QEMU - emulator procesora
7b81d160 36Name: qemu
26eb5196 37Version: 4.2.0
07eaebd1 38Release: 1
290ffd23 39License: GPL v2, BSD (edk2 firmware files)
5a2da1d0 40Group: Applications/Emulators
b3255247 41Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.xz
26eb5196 42# Source0-md5: 278eeb294e4b497e79af7a57e660cb9a
008c880e 43Source2: %{name}.binfmt
41ed6e2c
JR
44# Loads kvm kernel modules at boot
45Source3: kvm-modules-load.conf
46# Creates /dev/kvm
47Source4: 80-kvm.rules
9fdf235e
JR
48# KSM control scripts
49Source5: ksm.service
50Source6: ksm.sysconfig
51Source7: ksmctl.c
52Source8: ksmtuned.service
53Source9: ksmtuned
54Source10: ksmtuned.conf
008c880e
ER
55Source11: %{name}-guest-agent.service
56Source12: 99-%{name}-guest-agent.rules
ccb0f0ea
AM
57Source13: %{name}-guest-agent.init
58Source14: %{name}-guest-agent.logrotate
9bcd4ab6 59Patch0: %{name}-cflags.patch
a782bf0f
JP
60Patch1: %{name}-whitelist.patch
61Patch2: %{name}-user-execve.patch
62Patch3: %{name}-xattr.patch
63Patch4: libjpeg-boolean.patch
64Patch5: x32.patch
ae8bf749 65URL: http://www.qemu-project.org/
cf0acede 66%{?with_gl:BuildRequires: OpenGL-GLX-devel}
8d79dc1d 67%{?with_gl:BuildRequires: OpenGL-devel}
7b0056db 68%{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
b0b3ca8d 69BuildRequires: alsa-lib-devel
d80aea98 70BuildRequires: bcc >= 0.16.21-2
78ff8fc0
JK
71%{?with_bluetooth:BuildRequires: bluez-libs-devel}
72%{?with_brlapi:BuildRequires: brlapi-devel}
b0436c10 73BuildRequires: bzip2-devel
78a71650
JB
74%{?with_ceph:BuildRequires: ceph-devel}
75BuildRequires: curl-devel
76BuildRequires: cyrus-sasl-devel >= 2
77%{?with_esd:BuildRequires: esound-devel}
54b666b7 78BuildRequires: glib2-devel >= 1:2.22
1ffe7dfd 79%{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
f4914ae2 80BuildRequires: gnutls-devel >= 3.1.18
87364910 81BuildRequires: libaio-devel
78ff8fc0 82%{?with_smartcard:BuildRequires: libcacard-devel}
78a71650
JB
83BuildRequires: libcap-devel
84BuildRequires: libcap-ng-devel
cf0acede 85%{?with_gl:BuildRequires: libepoxy-devel}
f6f33107 86BuildRequires: libfdt-devel >= 1.4.2
80dbeed1 87%{?with_rdma:BuildRequires: libibverbs-devel}
3187b8cc 88%{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
1777be93 89%{?with_rdma:BuildRequires: libibumad-devel}
78a71650 90BuildRequires: libjpeg-devel
bfb54462 91%{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
78a71650 92BuildRequires: libpng-devel
80dbeed1 93%{?with_rdma:BuildRequires: librdmacm-devel}
290ffd23 94%{?with_seccomp:BuildRequires: libseccomp-devel >= 2.3.0}
ce44b534 95BuildRequires: libssh2-devel >= 1.2.8
c218d8d3 96BuildRequires: libusb-devel >= 1.0.13
78a71650 97BuildRequires: libuuid-devel
3187b8cc 98%{?with_lttng:BuildRequires: lttng-ust-devel}
c218d8d3 99BuildRequires: lzo-devel >= 2
98a1a188 100BuildRequires: ncurses-devel
fc634c87 101%{?with_smartcard:BuildRequires: nss-devel >= 1:3.12.8}
b0436c10 102BuildRequires: numactl-devel
995bac8b 103BuildRequires: perl-Encode
2fb8ea02 104BuildRequires: perl-tools-pod
b0436c10 105BuildRequires: pixman-devel >= 0.21.8
ba84a935 106BuildRequires: pkgconfig
78a71650 107%{?with_pulseaudio:BuildRequires: pulseaudio-devel}
1c6a7aa7 108BuildRequires: rpmbuild(macros) >= 1.644
af556ac1 109%{?with_system_seabios:BuildRequires: seabios}
8bb1261c 110BuildRequires: sed >= 4.0
c218d8d3 111%{?with_snappy:BuildRequires: snappy-devel}
59bc1300 112%if %{with spice}
c218d8d3 113BuildRequires: spice-protocol >= 0.12.3
26eb5196 114BuildRequires: spice-server-devel >= 0.12.5
59bc1300 115%endif
3187b8cc 116%{?with_systemtap:BuildRequires: systemtap-sdt-devel}
a1146336 117BuildRequires: texi2html
22f71ecb 118BuildRequires: texinfo
78ff8fc0 119%{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
3187b8cc 120%{?with_lttng:BuildRequires: userspace-rcu-devel}
78a71650 121BuildRequires: vde2-devel
cad677a4 122BuildRequires: which
24209dad 123%{?with_virgl:BuildRequires: virglrenderer-devel}
78a71650
JB
124%{?with_xen:BuildRequires: xen-devel >= 3.4}
125BuildRequires: xfsprogs-devel
32bf0518 126%{?with_xkbcommon:BuildRequires: xorg-lib-libxkbcommon-devel}
ba84a935 127BuildRequires: xorg-lib-libX11-devel
78a71650 128BuildRequires: zlib-devel
78ff8fc0 129%if %{with gtk3}
f4914ae2 130BuildRequires: gtk+3-devel >= 3.14.0
4fd23c55 131%{?with_vte:BuildRequires: vte-devel >= 0.32.0}
ce44b534 132%endif
a75bdea7
ER
133%if %{with user_static}
134BuildRequires: glib2-static
135BuildRequires: glibc-static
136BuildRequires: pcre-static
137BuildRequires: zlib-static
138%endif
b649541f 139BuildConflicts: libslirp-devel
fabf5a9c 140Requires: %{name}-img = %{version}-%{release}
ae1c5c71 141Requires: %{name}-system-aarch64 = %{version}-%{release}
fabf5a9c
ER
142Requires: %{name}-system-alpha = %{version}-%{release}
143Requires: %{name}-system-arm = %{version}-%{release}
144Requires: %{name}-system-cris = %{version}-%{release}
1777be93 145Requires: %{name}-system-hppa = %{version}-%{release}
fabf5a9c
ER
146Requires: %{name}-system-lm32 = %{version}-%{release}
147Requires: %{name}-system-m68k = %{version}-%{release}
148Requires: %{name}-system-microblaze = %{version}-%{release}
149Requires: %{name}-system-mips = %{version}-%{release}
a56d4cfd 150Requires: %{name}-system-moxie = %{version}-%{release}
cdd6b92f 151Requires: %{name}-system-nios2 = %{version}-%{release}
05e8f0a4 152Requires: %{name}-system-or1k = %{version}-%{release}
ae8bf749 153Requires: %{name}-system-ppc = %{version}-%{release}
1777be93
JP
154Requires: %{name}-system-riscv32 = %{version}-%{release}
155Requires: %{name}-system-riscv64 = %{version}-%{release}
fabf5a9c
ER
156Requires: %{name}-system-s390x = %{version}-%{release}
157Requires: %{name}-system-sh4 = %{version}-%{release}
158Requires: %{name}-system-sparc = %{version}-%{release}
112b8450 159Requires: %{name}-system-tricore = %{version}-%{release}
72ddf007 160Requires: %{name}-system-unicore32 = %{version}-%{release}
fabf5a9c
ER
161Requires: %{name}-system-x86 = %{version}-%{release}
162Requires: %{name}-system-xtensa = %{version}-%{release}
163Requires: %{name}-user = %{version}-%{release}
e03112c2 164Obsoletes: qemu-kvm
cd19124e 165BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
166
78a71650 167%define systempkg_req \
5710db8f 168%if %{with sdl} \
ae1c5c71 169Requires: SDL2 \
5710db8f 170%endif \
f6f33107 171Requires: libfdt >= 1.4.2 \
c218d8d3 172%if %{with seccomp} \
290ffd23 173Requires: libseccomp >= 2.3.0 \
c218d8d3 174%endif \
c43b327d 175Requires: libusb >= 1.0.22 \
b0436c10 176Requires: pixman >= 0.21.8 \
78ff8fc0 177%if %{with usbredir} \
ce44b534 178Requires: usbredir >= 0.6 \
78ff8fc0 179%endif \
78ff8fc0 180%if %{with gtk3} \
f4914ae2 181Requires: gtk+3 >= 3.14.0 \
4fd23c55 182%{?with_vte:Requires: vte >= 0.32.0} \
ce44b534 183%endif
78a71650 184
1b37833e
AM
185# don't strip/chrpath anything in there; these are boot images, roms etc
186%define _noautostrip .*%{_datadir}/qemu/.*
187%define _noautochrpath .*%{_datadir}/qemu/.*
a154aede 188
cd19124e 189%description
190QEMU is a FAST! processor emulator. By using dynamic translation it
191achieves a reasonnable speed while being easy to port on new host
192CPUs. QEMU has two operating modes:
193
194- User mode emulation. In this mode, QEMU can launch Linux processes
195 compiled for one CPU on another CPU. Linux system calls are converted
196 because of endianness and 32/64 bit mismatches. Wine (Windows
197 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
198
199- Full system emulation. In this mode, QEMU emulates a full system,
8799423b
ER
200 including a processor and various peripherials. It can also be used to
201 provide virtual hosting of several virtual PC on a single server.
cd19124e 202
27b30e9c
JR
203%description -l pl.UTF-8
204QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
205tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
206aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
5a2da1d0 207
27b30e9c 208- Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
5a2da1d0 209 procesy linuksowe skompilowane dla jednego procesora na innym
27b30e9c
JR
210 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
211 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
212 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
5a2da1d0
JB
213 cele QEMU.
214
27b30e9c
JR
215- Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
216 włączając w to procesor i różne urządzenia peryferyjne. Może być także
217 używane do wirtualnego hostowania kilku wirtualnych pecetów na
8799423b 218 pojedynczym serwerze.
5a2da1d0 219
d86014ba 220%package common
fabf5a9c 221Summary: QEMU common files needed by all QEMU targets
d86014ba 222Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
fabf5a9c 223Group: Development/Tools
c980f439 224Requires(post,preun,postun): systemd-units >= 38
14b9f266
AG
225Requires(postun): /usr/sbin/groupdel
226Requires(postun): /usr/sbin/userdel
227Requires(pre): /bin/id
228Requires(pre): /usr/bin/getgid
229Requires(pre): /usr/sbin/groupadd
230Requires(pre): /usr/sbin/useradd
54b666b7 231Requires: glib2 >= 1:2.22
bfb54462 232%{?with_libnfs:Requires: libnfs >= 1.9.3}
ce44b534 233Requires: libssh2 >= 1.2.8
c980f439 234Requires: systemd-units >= 38
14b9f266
AG
235Provides: group(qemu)
236Provides: user(qemu)
e03112c2 237Obsoletes: qemu-kvm-common
fabf5a9c
ER
238Conflicts: qemu < 1.0-2
239
240%description common
241QEMU is a generic and open source processor emulator which achieves a
242good emulation speed by using dynamic translation.
243
244This package provides the common files needed by all QEMU targets.
245
d86014ba
JB
246%description common -l pl.UTF-8
247QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
248dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
249
250Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
251środowiska QEMU.
252
253%package img
fabf5a9c 254Summary: QEMU command line tool for manipulating disk images
d86014ba 255Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
fabf5a9c 256Group: Development/Tools
e03112c2 257Obsoletes: qemu-kvm-img
008c880e 258Conflicts: qemu < 1.0-2
fabf5a9c
ER
259
260%description img
d86014ba
JB
261This package provides a command line tool for manipulating disk
262images.
263
264%description img -l pl.UTF-8
265Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
266na obrazach dysków.
fabf5a9c
ER
267
268%package user
269Summary: QEMU user mode emulation of qemu targets
d86014ba 270Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
fabf5a9c
ER
271Group: Development/Tools
272Requires: %{name}-common = %{version}-%{release}
1c6a7aa7
JR
273Requires(post,postun): systemd-units >= 38
274Requires: systemd-units >= 38
e03112c2 275Obsoletes: qemu-kvm-user
fabf5a9c
ER
276
277%description user
278QEMU is a generic and open source processor emulator which achieves a
279good emulation speed by using dynamic translation.
280
281This package provides the user mode emulation of QEMU targets.
282
d86014ba
JB
283%description user -l pl.UTF-8
284QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
285dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
286
287Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
288
a75bdea7
ER
289%package user-static
290Summary: QEMU user mode emulation of qemu targets static build
291Group: Development/Tools
a75bdea7
ER
292Requires(post,postun): systemd-units >= 38
293Requires: systemd-units >= 38
294
295%description user-static
296QEMU is a generic and open source processor emulator which achieves a
297good emulation speed by using dynamic translation.
298
299This package provides the user mode emulation of qemu targets built as
300static binaries
301
ae1c5c71 302%package system-aarch64
c218d8d3
JB
303Summary: QEMU system emulator for AArch64
304Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
ae1c5c71
JK
305Group: Development/Tools
306Requires: %{name}-common = %{version}-%{release}
307%systempkg_req
308Obsoletes: qemu-kvm-system-aarch64
309
310%description system-aarch64
311QEMU is a generic and open source processor emulator which achieves a
312good emulation speed by using dynamic translation.
313
c218d8d3 314This package provides the system emulator with AArch64 CPU.
ae1c5c71
JK
315
316%description system-aarch64 -l pl.UTF-8
317QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
318dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
319
c218d8d3 320Ten pakiet zawiera emulator systemu z procesorem AArch64.
ae1c5c71 321
fabf5a9c 322%package system-alpha
d86014ba
JB
323Summary: QEMU system emulator for Alpha
324Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
fabf5a9c
ER
325Group: Development/Tools
326Requires: %{name}-common = %{version}-%{release}
78a71650 327%systempkg_req
e03112c2 328Obsoletes: qemu-kvm-system-alpha
fabf5a9c
ER
329
330%description system-alpha
331QEMU is a generic and open source processor emulator which achieves a
332good emulation speed by using dynamic translation.
333
d86014ba
JB
334This package provides the system emulator with Alpha CPU.
335
336%description system-alpha -l pl.UTF-8
337QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
338dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
339
340Ten pakiet zawiera emulator systemu z procesorem Alpha.
fabf5a9c
ER
341
342%package system-arm
d86014ba
JB
343Summary: QEMU system emulator for ARM
344Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
fabf5a9c
ER
345Group: Development/Tools
346Requires: %{name}-common = %{version}-%{release}
78a71650 347%systempkg_req
e03112c2 348Obsoletes: qemu-kvm-system-arm
fabf5a9c
ER
349
350%description system-arm
351QEMU is a generic and open source processor emulator which achieves a
352good emulation speed by using dynamic translation.
353
d86014ba
JB
354This package provides the system emulator for ARM.
355
356%description system-arm -l pl.UTF-8
357QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
358dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
359
360Ten pakiet zawiera emulator systemu z procesorem ARM.
fabf5a9c
ER
361
362%package system-cris
59bc1300 363Summary: QEMU system emulator for CRIS
d86014ba 364Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
fabf5a9c
ER
365Group: Development/Tools
366Requires: %{name}-common = %{version}-%{release}
78a71650 367%systempkg_req
e03112c2 368Obsoletes: qemu-kvm-system-cris
fabf5a9c
ER
369
370%description system-cris
371QEMU is a generic and open source processor emulator which achieves a
372good emulation speed by using dynamic translation.
373
d86014ba
JB
374This package provides the system emulator with CRIS CPU.
375
376%description system-cris -l pl.UTF-8
377QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
378dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
379
380Ten pakiet zawiera emulator systemu z procesorem CRIS.
fabf5a9c 381
1777be93
JP
382%package system-hppa
383Summary: QEMU system emulator for HP/PA
384Summary(pl.UTF-8): QEMU - emulator systemu z procesorem HP/PA
385Group: Development/Tools
386Requires: %{name}-common = %{version}-%{release}
387%systempkg_req
388
389%description system-hppa
390QEMU is a generic and open source processor emulator which achieves a
391good emulation speed by using dynamic translation.
392
393This package provides the system emulator with HP/PA CPU.
394
395%description system-hppa -l pl.UTF-8
396QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
397dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
398
399Ten pakiet zawiera emulator systemu z procesorem HP/PA.
400
fabf5a9c 401%package system-lm32
d86014ba
JB
402Summary: QEMU system emulator for LM32
403Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
fabf5a9c
ER
404Group: Development/Tools
405Requires: %{name}-common = %{version}-%{release}
78a71650 406%systempkg_req
e03112c2 407Obsoletes: qemu-kvm-system-lm32
fabf5a9c
ER
408
409%description system-lm32
410QEMU is a generic and open source processor emulator which achieves a
411good emulation speed by using dynamic translation.
412
d86014ba
JB
413This package provides the system emulator with LM32 CPU.
414
415%description system-lm32 -l pl.UTF-8
416QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
417dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
418
419Ten pakiet zawiera emulator systemu z procesorem LM32.
fabf5a9c
ER
420
421%package system-m68k
422Summary: QEMU system emulator for m68k
d86014ba 423Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
fabf5a9c
ER
424Group: Development/Tools
425Requires: %{name}-common = %{version}-%{release}
78a71650 426%systempkg_req
e03112c2 427Obsoletes: qemu-kvm-system-m68k
fabf5a9c
ER
428
429%description system-m68k
430QEMU is a generic and open source processor emulator which achieves a
431good emulation speed by using dynamic translation.
432
d86014ba
JB
433This package provides the system emulator with m68k CPU.
434
435%description system-m68k -l pl.UTF-8
436QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
437dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
438
439Ten pakiet zawiera emulator systemu z procesorem m68k.
fabf5a9c
ER
440
441%package system-microblaze
d86014ba
JB
442Summary: QEMU system emulator for MicroBlaze
443Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
fabf5a9c
ER
444Group: Development/Tools
445Requires: %{name}-common = %{version}-%{release}
78a71650 446%systempkg_req
e03112c2 447Obsoletes: qemu-kvm-system-microblaze
fabf5a9c
ER
448
449%description system-microblaze
450QEMU is a generic and open source processor emulator which achieves a
451good emulation speed by using dynamic translation.
452
d86014ba
JB
453This package provides the system emulator with MicroBlaze CPU.
454
455%description system-microblaze -l pl.UTF-8
456QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
457dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
458
459Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
fabf5a9c
ER
460
461%package system-mips
d86014ba
JB
462Summary: QEMU system emulator for MIPS
463Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
fabf5a9c
ER
464Group: Development/Tools
465Requires: %{name}-common = %{version}-%{release}
78a71650 466%systempkg_req
e03112c2 467Obsoletes: qemu-kvm-system-mips
fabf5a9c
ER
468
469%description system-mips
470QEMU is a generic and open source processor emulator which achieves a
471good emulation speed by using dynamic translation.
472
d86014ba
JB
473This package provides the system emulator with MIPS CPU.
474
475%description system-mips -l pl.UTF-8
476QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
477dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
478
479Ten pakiet zawiera emulator systemu z procesorem MIPS.
fabf5a9c 480
a56d4cfd
JB
481%package system-moxie
482Summary: QEMU system emulator for Moxie
483Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
484Group: Development/Tools
485Requires: %{name}-common = %{version}-%{release}
486%systempkg_req
487
488%description system-moxie
489QEMU is a generic and open source processor emulator which achieves a
490good emulation speed by using dynamic translation.
491
492This package provides the system emulator with Moxie CPU.
493
494%description system-moxie -l pl.UTF-8
495QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
496dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
497
498Ten pakiet zawiera emulator systemu z procesorem Moxie.
499
cdd6b92f
JP
500%package system-nios2
501Summary: QEMU system emulator for Nios II
502Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Nios II
503Group: Development/Tools
504Requires: %{name}-common = %{version}-%{release}
505%systempkg_req
506
507%description system-nios2
508QEMU is a generic and open source processor emulator which achieves a
509good emulation speed by using dynamic translation.
510
511This package provides the system emulator with Nios II CPU.
512
513%description system-nios2 -l pl.UTF-8
514QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
515dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
516
517Ten pakiet zawiera emulator systemu z procesorem Nios II.
518
05e8f0a4 519%package system-or1k
d86014ba
JB
520Summary: QEMU system emulator for OpenRISC
521Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
92c357d4
PS
522Group: Development/Tools
523Requires: %{name}-common = %{version}-%{release}
78a71650 524%systempkg_req
05e8f0a4 525Obsoletes: qemu-kvm-system-or1k
0eeac48d 526Obsoletes: qemu-system-or32
92c357d4 527
05e8f0a4 528%description system-or1k
92c357d4
PS
529QEMU is a generic and open source processor emulator which achieves a
530good emulation speed by using dynamic translation.
531
d86014ba
JB
532This package provides the system emulator with OpenRISC CPU.
533
05e8f0a4 534%description system-or1k -l pl.UTF-8
d86014ba
JB
535QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
536dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
537
538Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
92c357d4 539
fabf5a9c 540%package system-ppc
d86014ba
JB
541Summary: QEMU system emulator for PowerPC
542Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
fabf5a9c
ER
543Group: Development/Tools
544Requires: %{name}-common = %{version}-%{release}
78a71650 545%systempkg_req
e03112c2 546Obsoletes: qemu-kvm-system-ppc
fabf5a9c
ER
547
548%description system-ppc
549QEMU is a generic and open source processor emulator which achieves a
550good emulation speed by using dynamic translation.
551
d86014ba
JB
552This package provides the system emulator with PowerPC CPU.
553
554%description system-ppc -l pl.UTF-8
555QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
556dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
557
558Ten pakiet zawiera emulator systemu z procesorem PowerPC.
fabf5a9c 559
1777be93
JP
560%package system-riscv32
561Summary: QEMU system emulator for RISC-V (32 bit)
562Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (32 bit)
563Group: Development/Tools
564Requires: %{name}-common = %{version}-%{release}
565%systempkg_req
566
567%description system-riscv32
568QEMU is a generic and open source processor emulator which achieves a
569good emulation speed by using dynamic translation.
570
571This package provides the system emulator with RISC-V (32 bit) CPU.
572
573%description system-riscv32 -l pl.UTF-8
574QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
575dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
576
577Ten pakiet zawiera emulator systemu z procesorem RISC-V (32 bit).
578
579%package system-riscv64
580Summary: QEMU system emulator for RISC-V (64 bit)
581Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (64 bit)
582Group: Development/Tools
583Requires: %{name}-common = %{version}-%{release}
584%systempkg_req
585
586%description system-riscv64
587QEMU is a generic and open source processor emulator which achieves a
588good emulation speed by using dynamic translation.
589
590This package provides the system emulator with RISC-V (64 bit) CPU.
591
592%description system-riscv64 -l pl.UTF-8
593QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
594dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
595
596Ten pakiet zawiera emulator systemu z procesorem RISC-V (64 bit).
597
fabf5a9c 598%package system-s390x
d86014ba
JB
599Summary: QEMU system emulator for S390
600Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
fabf5a9c
ER
601Group: Development/Tools
602Requires: %{name}-common = %{version}-%{release}
78a71650 603%systempkg_req
e03112c2 604Obsoletes: qemu-kvm-system-s390x
fabf5a9c
ER
605
606%description system-s390x
607QEMU is a generic and open source processor emulator which achieves a
608good emulation speed by using dynamic translation.
609
d86014ba
JB
610This package provides the system emulator with S390 CPU.
611
612%description system-s390x -l pl.UTF-8
613QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
614dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
615
616Ten pakiet zawiera emulator systemu z procesorem S390.
fabf5a9c
ER
617
618%package system-sh4
d86014ba
JB
619Summary: QEMU system emulator for SH4
620Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
fabf5a9c
ER
621Group: Development/Tools
622Requires: %{name}-common = %{version}-%{release}
78a71650 623%systempkg_req
e03112c2 624Obsoletes: qemu-kvm-system-sh4
fabf5a9c
ER
625
626%description system-sh4
627QEMU is a generic and open source processor emulator which achieves a
628good emulation speed by using dynamic translation.
629
d86014ba
JB
630This package provides the system emulator with SH4 CPU.
631
632%description system-sh4 -l pl.UTF-8
633QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
634dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
635
636Ten pakiet zawiera emulator systemu z procesorem SH4.
fabf5a9c
ER
637
638%package system-sparc
d86014ba
JB
639Summary: QEMU system emulator for SPARC
640Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
fabf5a9c
ER
641Group: Development/Tools
642Requires: %{name}-common = %{version}-%{release}
78a71650 643%systempkg_req
e03112c2 644Obsoletes: qemu-kvm-system-sparc
fabf5a9c
ER
645
646%description system-sparc
647QEMU is a generic and open source processor emulator which achieves a
648good emulation speed by using dynamic translation.
649
d86014ba
JB
650This package provides the system emulator with SPARC/SPARC64 CPU.
651
652%description system-sparc -l pl.UTF-8
653QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
654dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
655
656Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
fabf5a9c 657
112b8450 658%package system-tricore
3187b8cc
JB
659Summary: QEMU system emulator for TriCore
660Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
112b8450
AM
661Group: Development/Tools
662Requires: %{name}-common = %{version}-%{release}
663%systempkg_req
664
665%description system-tricore
666QEMU is a generic and open source processor emulator which achieves a
667good emulation speed by using dynamic translation.
668
3187b8cc 669This package provides the system emulator with TriCore CPU.
112b8450
AM
670
671%description system-sparc -l pl.UTF-8
672QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
673dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
674
3187b8cc 675Ten pakiet zawiera emulator systemu z procesorem TriCore.
112b8450 676
72ddf007 677%package system-unicore32
d86014ba
JB
678Summary: QEMU system emulator for UniCore32
679Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
72ddf007
PS
680Group: Development/Tools
681Requires: %{name}-common = %{version}-%{release}
78a71650 682%systempkg_req
e03112c2 683Obsoletes: qemu-kvm-system-unicore32
72ddf007
PS
684
685%description system-unicore32
686QEMU is a generic and open source processor emulator which achieves a
687good emulation speed by using dynamic translation.
688
d86014ba
JB
689This package provides the system emulator with UniCore32 CPU.
690
691%description system-unicore32 -l pl.UTF-8
692QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
693dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
694
695Ten pakiet zawiera emulator systemu z procesorem UniCore32.
72ddf007 696
fabf5a9c
ER
697%package system-x86
698Summary: QEMU system emulator for x86
d86014ba 699Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
fabf5a9c
ER
700Group: Development/Tools
701Requires: %{name}-common = %{version}-%{release}
af556ac1 702%{?with_system_seabios:Requires: seabios}
78a71650 703%systempkg_req
1c6a7aa7 704Obsoletes: kvm
e03112c2 705Obsoletes: qemu-kvm-system-x86
fabf5a9c
ER
706
707%description system-x86
708QEMU is a generic and open source processor emulator which achieves a
709good emulation speed by using dynamic translation.
710
c43b327d
TP
711This package provides the system emulator with x86 CPU.
712
d86014ba
JB
713%description system-x86 -l pl.UTF-8
714QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
715dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
716
c43b327d
TP
717Ten pakiet zawiera emulator systemu z procesorem x86.
718
fabf5a9c 719%package system-xtensa
d86014ba
JB
720Summary: QEMU system emulator for Xtensa
721Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
fabf5a9c
ER
722Group: Development/Tools
723Requires: %{name}-common = %{version}-%{release}
78a71650 724%systempkg_req
e03112c2 725Obsoletes: qemu-kvm-system-xtensa
fabf5a9c
ER
726
727%description system-xtensa
728QEMU is a generic and open source processor emulator which achieves a
729good emulation speed by using dynamic translation.
730
d86014ba
JB
731This package provides the system emulator with Xtensa CPU.
732
733%description system-xtensa -l pl.UTF-8
734QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
735dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
736
737Ten pakiet zawiera emulator systemu z procesorem Xtensa.
fabf5a9c 738
93473205
JR
739%package guest-agent
740Summary: QEMU guest agent
741Summary(pl.UTF-8): Agent gościa QEMU
742Group: Daemons
743Requires(post,preun,postun): systemd-units >= 38
54b666b7 744Requires: glib2 >= 1:2.22
93473205
JR
745Requires: systemd-units >= 38
746Obsoletes: qemu-kvm-guest-agent
747
748%description guest-agent
008c880e
ER
749QEMU is a generic and open source processor emulator which achieves a
750good emulation speed by using dynamic translation.
93473205
JR
751
752This package provides an agent to run inside guests, which
753communicates with the host over a virtio-serial channel named
754"org.qemu.guest_agent.0".
755
756This package does not need to be installed on the host OS.
757
758%description guest-agent -l pl.UTF-8
759QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
760dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
761
762Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
763systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
764"org.qemu.guest_agent.0".
765
766Ten pakiet nie musi być zainstalowany w systemie hosta.
767
ae1c5c71
JK
768%package module-block-curl
769Summary: QEMU module for 'curl' block devices
770Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
771Group: Development/Tools
772Requires: %{name}-common = %{version}-%{release}
773
774%description module-block-curl
775'curl' block device support for QEMU.
776
777%description module-block-curl -l pl.UTF-8
778Moduł QEMU dla urządeń blokowych typu 'curl'.
779
780%package module-block-gluster
781Summary: QEMU module for 'gluster' block devices
782Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
783Group: Development/Tools
784Requires: %{name}-common = %{version}-%{release}
c218d8d3 785Requires: glusterfs-libs >= 3.4
ae1c5c71
JK
786
787%description module-block-gluster
788'gluster' block device support for QEMU.
789
790%description module-block-gluster -l pl.UTF-8
791Moduł QEMU dla urządeń blokowych typu 'gluster'.
792
793%package module-block-iscsi
794Summary: QEMU module for 'iscsi' block devices
795Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
796Group: Development/Tools
797Requires: %{name}-common = %{version}-%{release}
3187b8cc 798Requires: libiscsi >= 1.9.0
ae1c5c71
JK
799
800%description module-block-iscsi
801'iscsi' block device support for QEMU.
802
803%description module-block-iscsi -l pl.UTF-8
804Moduł QEMU dla urządeń blokowych typu 'iscsi'.
805
806%package module-block-rbd
807Summary: QEMU module for 'rbd' block devices
808Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
809Group: Development/Tools
810Requires: %{name}-common = %{version}-%{release}
811
812%description module-block-rbd
813'rbd' block device support for QEMU.
814
815%description module-block-rbd -l pl.UTF-8
816Moduł QEMU dla urządeń blokowych typu 'rbd'.
817
818%package module-block-ssh
819Summary: QEMU module for 'ssh' block devices
820Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
821Group: Development/Tools
822Requires: %{name}-common = %{version}-%{release}
823
824%description module-block-ssh
825'ssh' block device support for QEMU.
826
827%description module-block-ssh -l pl.UTF-8
828Moduł QEMU dla urządeń blokowych typu 'ssh'.
829
cd19124e 830%prep
c21a255a 831%setup -q
3c6e2290 832%patch0 -p1
a782bf0f
JP
833%patch1 -p0
834%patch2 -p1
99df371e 835%patch3 -p1
008c880e 836%patch4 -p1
4e8ae6f9 837%patch5 -p1
c18e9cf6 838
bd30ad73
GP
839# workaround for conflict with alsa/error.h
840ln -s ../error.h qapi/error.h
841
80bac37e 842%build
a75bdea7
ER
843
844build() {
845 local target=$1
846 shift
847
848 install -d build-$target
849 cd build-$target
850
851 ../configure \
8bd2aee2 852 --prefix=%{_prefix} \
ae1c5c71
JK
853 --libdir=%{_libdir} \
854 --libexecdir=%{_libexecdir} \
87364910 855 --sysconfdir=%{_sysconfdir} \
a75bdea7
ER
856 --localstatedir=%{_localstatedir} \
857 --interp-prefix=%{_libdir}/qemu/lib-%%M \
98a1a188
AM
858 --cc="%{__cc}" \
859 --host-cc="%{__cc}" \
5263f8f5 860 --disable-strip \
a75bdea7
ER
861 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
862 --enable-kvm \
863 "$@"
864
865 %{__make} \
866 V=1 \
867 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
868
869 cd ..
870}
871
872build dynamic \
873 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
874 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
78a71650 875 --enable-attr \
78ff8fc0
JK
876 %{__enable_disable bluetooth bluez} \
877 %{__enable_disable brlapi} \
78a71650
JB
878 --enable-cap-ng \
879 --enable-curl \
880 --enable-curses \
87364910 881 --enable-docs \
78a71650 882 --enable-fdt \
449d43aa 883 %{__enable_disable glusterfs} \
78ff8fc0 884 %{__enable_disable iscsi libiscsi} \
78a71650 885 %{__enable_disable ceph rbd} \
80dbeed1 886 %{__enable_disable rdma} \
78a71650 887 %{__enable_disable sdl} \
78ff8fc0 888 %{__enable_disable seccomp} \
59bc1300 889 %{__enable_disable spice} \
f9d90a34 890 %{__enable_disable smartcard smartcard} \
ce44b534 891 --enable-tpm \
78ff8fc0 892 %{__enable_disable usbredir usb-redir} \
78a71650
JB
893 --enable-vde \
894 --enable-virtfs \
895 --enable-vnc-jpeg \
87364910 896 --enable-vnc-png \
78a71650 897 --enable-vnc-sasl \
3187b8cc 898 %{!?with_vte:--disable-vte} \
24209dad 899 %{__enable_disable virgl virglrenderer} \
78a71650 900 %{__enable_disable xen} \
ae1c5c71
JK
901 --enable-modules \
902 --disable-netmap \
b9ddc0a7 903 %{__enable_disable libnfs} \
ae1c5c71
JK
904 --enable-lzo \
905 %{__enable_disable snappy} \
87364910 906 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
f4914ae2 907%if %{without gtk3}
78ff8fc0 908 --disable-gtk
78ff8fc0 909%endif
ce44b534 910
a75bdea7
ER
911%if %{with user_static}
912build static \
913 --disable-brlapi \
914 --disable-cap-ng \
915 --disable-curl \
916 --disable-curses \
917 --disable-gcrypt \
918 --disable-gnutls \
919 --disable-gtk \
920 --disable-guest-agent \
921 --disable-guest-agent-msi \
922 --disable-libnfs \
923 --disable-nettle \
924 --disable-pie \
925 --disable-sdl \
926 --disable-spice \
927 --disable-tcmalloc \
928 --disable-tools \
a75bdea7
ER
929 --enable-user \
930 --disable-system \
931 --static
932
933%endif
cd19124e 934
9fdf235e
JR
935%{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
936
cd19124e 937%install
938rm -rf $RPM_BUILD_ROOT
51327cc0 939install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
ccb0f0ea 940 $RPM_BUILD_ROOT/etc/{qemu,sysconfig,udev/rules.d,modules-load.d,rc.d/init.d,logrotate.d} \
51327cc0 941 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
5a2da1d0 942
a75bdea7
ER
943%if %{with user_static}
944%{__make} -C build-static install \
945 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
946 DESTDIR=$RPM_BUILD_ROOT
947
948# Give all QEMU user emulators a -static suffix
949for src in $RPM_BUILD_ROOT%{_bindir}/qemu-*; do
950 mv $src $src-static
951done
952
953%endif
954
955%{__make} -C build-dynamic install \
471d1276 956 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
ae1c5c71 957 DESTDIR=$RPM_BUILD_ROOT
ac6e5743 958
b418165e
MM
959echo "#allow br0" > $RPM_BUILD_ROOT/etc/qemu/bridge.conf
960
a91fea76 961install -d $RPM_BUILD_ROOT%{_sysconfdir}
962cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
ac6e5743 963#!/bin/sh
a91fea76 964
ac6e5743 965EOF
a62a2d89 966
5ed67169
JR
967install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
968
e53a3a53 969%ifarch %{ix86} %{x8664} x32
41ed6e2c
JR
970install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
971install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
972%endif
973
9fdf235e
JR
974install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
975install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
976install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
977
978install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
979install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
980install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
981
93473205
JR
982# For the qemu-guest-agent subpackage install the systemd
983# service and udev rules.
984install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
985install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
986
ccb0f0ea
AM
987install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga
988install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga
989
7babf190 990# Install binfmt
a78c5672 991for i in dummy \
e53a3a53 992%ifnarch %{ix86} %{x8664} x32
008c880e 993 qemu-i386 \
a78c5672 994%endif
7babf190
ER
995%ifnarch alpha
996 qemu-alpha \
997%endif
998%ifnarch %{arm}
008c880e 999 qemu-arm \
a78c5672 1000%endif
7babf190
ER
1001 qemu-armeb \
1002 qemu-cris \
1003 qemu-microblaze qemu-microblazeel \
1004%ifnarch mips64
1005 qemu-mips64 \
1006%ifnarch mips
1007 qemu-mips \
1008%endif
1009%endif
1010%ifnarch mips64el
1011 qemu-mips64el \
1012%ifnarch mipsel
1013 qemu-mipsel \
1014%endif
1015%endif
1016%ifnarch m68k
1017 qemu-m68k \
1018%endif
1019%ifnarch ppc ppc64 ppc64le
1020 qemu-ppc qemu-ppc64abi32 qemu-ppc64 \
a78c5672
JR
1021%endif
1022%ifnarch sparc sparc64
7babf190
ER
1023 qemu-sparc qemu-sparc32plus qemu-sparc64 \
1024%endif
1025%ifnarch s390 s390x
1026 qemu-s390x \
a78c5672
JR
1027%endif
1028%ifnarch sh4
008c880e 1029 qemu-sh4 \
a78c5672 1030%endif
7babf190 1031 qemu-sh4eb \
a78c5672
JR
1032; do
1033 test $i = dummy && continue
e14b0c24
ER
1034 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i-dynamic.conf
1035
1036 %if %{with user_static}
1037 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i-static.conf
1038 %{__sed} -i -e "s/$i/$i-static/" $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i-static.conf
1039 %endif
a78c5672
JR
1040done < %{SOURCE2}
1041
68eb235d 1042# packaged as %doc
67bf71fa 1043%{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-doc.html
c33439fc 1044
af556ac1 1045%if %{with system_seabios}
ae1c5c71
JK
1046ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
1047# bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
af556ac1
JK
1048for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
1049 bn="$(basename $f)"
1050 if [ -e "/usr/share/seabios/$bn" ] ; then
1051 ln -sf "/usr/share/seabios/$bn" "$f"
1052 fi
1053done
1054%endif
1055
f4914ae2 1056%if %{with gtk3}
008c880e
ER
1057%{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
1058%{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
a56d4cfd 1059%find_lang %{name}
78ff8fc0
JK
1060%else
1061: > qemu.lang
1062%endif
a56d4cfd 1063
2f80d753
JP
1064%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/qemu
1065
cd19124e 1066%clean
1067rm -rf $RPM_BUILD_ROOT
1068
c1d653f6 1069%pre common
a45c10b6 1070%groupadd -g 160 kvm
c1d653f6 1071%groupadd -g 276 qemu
a45c10b6 1072%useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
c1d653f6 1073
9fdf235e
JR
1074%post common
1075%systemd_post ksm.service
1076%systemd_post ksmtuned.service
1077
1078%preun common
1079%systemd_preun ksm.service
1080%systemd_preun ksmtuned.service
1081
c1d653f6
AG
1082%postun common
1083if [ "$1" = "0" ]; then
1084 %userremove qemu
1085 %groupremove qemu
a45c10b6 1086 %groupremove kvm
c1d653f6 1087fi
9fdf235e
JR
1088%systemd_reload
1089
1090%triggerpostun common -- qemu-common < 1.6.1-4
1091%systemd_trigger ksm.service
1092%systemd_trigger ksmtuned.service
c1d653f6 1093
a78c5672
JR
1094%post user
1095%systemd_service_restart systemd-binfmt.service
1096
1097%postun user
1098%systemd_service_restart systemd-binfmt.service
1099
e14b0c24
ER
1100%post user-static
1101%systemd_service_restart systemd-binfmt.service
1102
1103%postun user-static
1104%systemd_service_restart systemd-binfmt.service
1105
93473205 1106%post guest-agent
ccb0f0ea
AM
1107/sbin/chkconfig --add qemu-ga
1108%service qemu-ga restart "qemu-ga"
93473205
JR
1109%systemd_reload
1110
1111%preun guest-agent
ccb0f0ea 1112if [ "$1" = "0" ]; then
c43b327d
TP
1113 %service qemu-ga stop
1114 /sbin/chkconfig --del qemu-ga
ccb0f0ea 1115fi
93473205
JR
1116%systemd_preun qemu-guest-agent.service
1117
1118%postun guest-agent
1119%systemd_reload
1120
cd19124e 1121%files
1122%defattr(644,root,root,755)
fabf5a9c 1123
a56d4cfd 1124%files common -f %{name}.lang
fabf5a9c 1125%defattr(644,root,root,755)
26eb5196 1126%doc LICENSE README.rst
67bf71fa 1127%doc build-dynamic/qemu-doc.html
a91fea76 1128%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
c980f439 1129%config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
5ed67169 1130%config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
c980f439 1131%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
b418165e
MM
1132%dir /etc/qemu
1133%attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf
c980f439
JR
1134%{systemdunitdir}/ksm.service
1135%{systemdunitdir}/ksmtuned.service
2f80d753 1136%attr(755,root,root) %{_bindir}/elf2dmp
56eebfcf
AM
1137%attr(755,root,root) %{_bindir}/ivshmem-client
1138%attr(755,root,root) %{_bindir}/ivshmem-server
5263f8f5 1139%attr(755,root,root) %{_bindir}/virtfs-proxy-helper
2f80d753 1140%attr(755,root,root) %{_bindir}/qemu-edid
32bf0518 1141%{?with_xkbcommon:%attr(755,root,root) %{_bindir}/qemu-keymap}
fabf5a9c 1142%attr(755,root,root) %{_bindir}/qemu-nbd
1f265cee 1143%attr(755,root,root) %{_bindir}/qemu-pr-helper
56eebfcf 1144%attr(755,root,root) %{_bindir}/qemu-tilegx
d80315be 1145%attr(755,root,root) %{_libexecdir}/qemu-bridge-helper
c980f439
JR
1146%attr(755,root,root) %{_sbindir}/ksmctl
1147%attr(755,root,root) %{_sbindir}/ksmtuned
cd19124e 1148%{_mandir}/man1/qemu.1*
5263f8f5 1149%{_mandir}/man1/virtfs-proxy-helper.1*
2f80d753 1150%{_mandir}/man7/qemu-cpu-models.7*
1f265cee 1151%{_mandir}/man7/qemu-block-drivers.7*
98a1a188 1152%{_mandir}/man8/qemu-nbd.8*
fabf5a9c
ER
1153
1154%dir %{_datadir}/qemu
290ffd23 1155%dir %{_datadir}/%{name}/firmware
fabf5a9c 1156%{_datadir}/%{name}/keymaps
3ae34e73 1157%{_datadir}/%{name}/trace-events-all
af556ac1 1158
fabf5a9c 1159# various bios images
af556ac1 1160# all should be probably moved to the right system subpackage
af556ac1 1161%{_datadir}/%{name}/bamboo.dtb
3ae34e73 1162%{_datadir}/%{name}/efi-e1000e.rom
af556ac1
JK
1163%{_datadir}/%{name}/efi-e1000.rom
1164%{_datadir}/%{name}/efi-eepro100.rom
1165%{_datadir}/%{name}/efi-ne2k_pci.rom
1166%{_datadir}/%{name}/efi-pcnet.rom
1167%{_datadir}/%{name}/efi-rtl8139.rom
1168%{_datadir}/%{name}/efi-virtio.rom
3ae34e73 1169%{_datadir}/%{name}/efi-vmxnet3.rom
af556ac1
JK
1170%{_datadir}/%{name}/kvmvapic.bin
1171%{_datadir}/%{name}/linuxboot.bin
3ae34e73 1172%{_datadir}/%{name}/linuxboot_dma.bin
af556ac1 1173%{_datadir}/%{name}/multiboot.bin
fabf5a9c
ER
1174%{_datadir}/%{name}/openbios-ppc
1175%{_datadir}/%{name}/openbios-sparc*
1176%{_datadir}/%{name}/palcode-clipper
af556ac1
JK
1177%{_datadir}/%{name}/petalogix-ml605.dtb
1178%{_datadir}/%{name}/petalogix-s3adsp1800.dtb
1179%{_datadir}/%{name}/ppc_rom.bin
2f80d753 1180%{_datadir}/%{name}/pvh.bin
af556ac1
JK
1181%{_datadir}/%{name}/pxe-e1000.rom
1182%{_datadir}/%{name}/pxe-eepro100.rom
1183%{_datadir}/%{name}/pxe-ne2k_pci.rom
1184%{_datadir}/%{name}/pxe-pcnet.rom
1185%{_datadir}/%{name}/pxe-rtl8139.rom
1186%{_datadir}/%{name}/pxe-virtio.rom
3ae34e73 1187%{_datadir}/%{name}/QEMU,cgthree.bin
3ae34e73 1188%{_datadir}/%{name}/QEMU,tcx.bin
a56d4cfd 1189%{_datadir}/%{name}/s390-ccw.img
af556ac1 1190%{_datadir}/%{name}/sgabios.bin
67bf71fa 1191%{_datadir}/%{name}/skiboot.lid
af556ac1 1192%{_datadir}/%{name}/slof.bin
26eb5196 1193#%{_datadir}/%{name}/spapr-rtas.bin
3ae34e73 1194%{_datadir}/%{name}/vgabios.bin
290ffd23 1195%{_datadir}/%{name}/vgabios-ati.bin
f4914ae2 1196%{_datadir}/%{name}/vgabios-bochs-display.bin
af556ac1
JK
1197%{_datadir}/%{name}/vgabios-cirrus.bin
1198%{_datadir}/%{name}/vgabios-qxl.bin
f4914ae2 1199%{_datadir}/%{name}/vgabios-ramfb.bin
af556ac1 1200%{_datadir}/%{name}/vgabios-stdvga.bin
54b666b7 1201%{_datadir}/%{name}/vgabios-virtio.bin
af556ac1 1202%{_datadir}/%{name}/vgabios-vmware.bin
fabf5a9c 1203
ae1c5c71
JK
1204%dir %{_libdir}/%{name}
1205
54b666b7 1206# modules without too many external dependencies
67bf71fa 1207%attr(755,root,root) %{_libdir}/%{name}/block-dmg-bz2.so
32bf0518 1208%{?with_libnfs:%attr(755,root,root) %{_libdir}/%{name}/block-nfs.so}
54b666b7 1209
1777be93 1210%attr(755,root,root) %{_libdir}/%{name}/audio-alsa.so
32bf0518
JK
1211%{?with_pulseaudio:%attr(755,root,root) %{_libdir}/%{name}/audio-pa.so}
1212%{?with_sdl:%attr(755,root,root) %{_libdir}/%{name}/audio-sdl.so}
1777be93 1213%attr(755,root,root) %{_libdir}/%{name}/ui-curses.so
f4914ae2 1214%if %{with gtk3}
1777be93 1215%attr(755,root,root) %{_libdir}/%{name}/ui-gtk.so
32bf0518
JK
1216%endif
1217%{?with_sdl:%attr(755,root,root) %{_libdir}/%{name}/ui-sdl.so}
26eb5196 1218%{?with_spice:%attr(755,root,root) %{_libdir}/%{name}/ui-spice-app.so}
1777be93 1219
fabf5a9c
ER
1220%files img
1221%defattr(644,root,root,755)
1222%attr(755,root,root) %{_bindir}/qemu-img
1223%{_mandir}/man1/qemu-img.1*
1224
1225%files user
1226%defattr(644,root,root,755)
e14b0c24 1227/usr/lib/binfmt.d/qemu-*-dynamic.conf
ae1c5c71 1228%attr(755,root,root) %{_bindir}/qemu-aarch64
1777be93 1229%attr(755,root,root) %{_bindir}/qemu-aarch64_be
fabf5a9c
ER
1230%attr(755,root,root) %{_bindir}/qemu-alpha
1231%attr(755,root,root) %{_bindir}/qemu-arm
1232%attr(755,root,root) %{_bindir}/qemu-armeb
1233%attr(755,root,root) %{_bindir}/qemu-cris
cdd6b92f 1234%attr(755,root,root) %{_bindir}/qemu-hppa
59bc1300 1235%attr(755,root,root) %{_bindir}/qemu-i386
fabf5a9c
ER
1236%attr(755,root,root) %{_bindir}/qemu-io
1237%attr(755,root,root) %{_bindir}/qemu-m68k
1238%attr(755,root,root) %{_bindir}/qemu-microblaze
1239%attr(755,root,root) %{_bindir}/qemu-microblazeel
1240%attr(755,root,root) %{_bindir}/qemu-mips
1241%attr(755,root,root) %{_bindir}/qemu-mipsel
a56d4cfd
JB
1242%attr(755,root,root) %{_bindir}/qemu-mips64
1243%attr(755,root,root) %{_bindir}/qemu-mips64el
1244%attr(755,root,root) %{_bindir}/qemu-mipsn32
1245%attr(755,root,root) %{_bindir}/qemu-mipsn32el
cdd6b92f 1246%attr(755,root,root) %{_bindir}/qemu-nios2
05e8f0a4 1247%attr(755,root,root) %{_bindir}/qemu-or1k
fabf5a9c
ER
1248%attr(755,root,root) %{_bindir}/qemu-ppc
1249%attr(755,root,root) %{_bindir}/qemu-ppc64
1250%attr(755,root,root) %{_bindir}/qemu-ppc64abi32
f39d158a 1251%attr(755,root,root) %{_bindir}/qemu-ppc64le
1777be93
JP
1252%attr(755,root,root) %{_bindir}/qemu-riscv32
1253%attr(755,root,root) %{_bindir}/qemu-riscv64
fabf5a9c
ER
1254%attr(755,root,root) %{_bindir}/qemu-s390x
1255%attr(755,root,root) %{_bindir}/qemu-sh4
1256%attr(755,root,root) %{_bindir}/qemu-sh4eb
1257%attr(755,root,root) %{_bindir}/qemu-sparc
1258%attr(755,root,root) %{_bindir}/qemu-sparc32plus
1259%attr(755,root,root) %{_bindir}/qemu-sparc64
59bc1300 1260%attr(755,root,root) %{_bindir}/qemu-x86_64
1777be93
JP
1261%attr(755,root,root) %{_bindir}/qemu-xtensa
1262%attr(755,root,root) %{_bindir}/qemu-xtensaeb
fabf5a9c 1263
a75bdea7
ER
1264%if %{with user_static}
1265%files user-static
1266%defattr(644,root,root,755)
e14b0c24 1267/usr/lib/binfmt.d/qemu-*-static.conf
a75bdea7 1268%attr(755,root,root) %{_bindir}/qemu-aarch64-static
1777be93 1269%attr(755,root,root) %{_bindir}/qemu-aarch64_be-static
a75bdea7
ER
1270%attr(755,root,root) %{_bindir}/qemu-alpha-static
1271%attr(755,root,root) %{_bindir}/qemu-arm-static
1272%attr(755,root,root) %{_bindir}/qemu-armeb-static
1273%attr(755,root,root) %{_bindir}/qemu-cris-static
cdd6b92f 1274%attr(755,root,root) %{_bindir}/qemu-hppa-static
a75bdea7
ER
1275%attr(755,root,root) %{_bindir}/qemu-i386-static
1276%attr(755,root,root) %{_bindir}/qemu-m68k-static
1277%attr(755,root,root) %{_bindir}/qemu-microblaze-static
1278%attr(755,root,root) %{_bindir}/qemu-microblazeel-static
1279%attr(755,root,root) %{_bindir}/qemu-mips-static
1280%attr(755,root,root) %{_bindir}/qemu-mips64-static
1281%attr(755,root,root) %{_bindir}/qemu-mips64el-static
1282%attr(755,root,root) %{_bindir}/qemu-mipsel-static
1283%attr(755,root,root) %{_bindir}/qemu-mipsn32-static
1284%attr(755,root,root) %{_bindir}/qemu-mipsn32el-static
cdd6b92f 1285%attr(755,root,root) %{_bindir}/qemu-nios2-static
05e8f0a4 1286%attr(755,root,root) %{_bindir}/qemu-or1k-static
a75bdea7
ER
1287%attr(755,root,root) %{_bindir}/qemu-ppc-static
1288%attr(755,root,root) %{_bindir}/qemu-ppc64-static
1289%attr(755,root,root) %{_bindir}/qemu-ppc64abi32-static
1290%attr(755,root,root) %{_bindir}/qemu-ppc64le-static
1777be93
JP
1291%attr(755,root,root) %{_bindir}/qemu-riscv32-static
1292%attr(755,root,root) %{_bindir}/qemu-riscv64-static
a75bdea7
ER
1293%attr(755,root,root) %{_bindir}/qemu-s390x-static
1294%attr(755,root,root) %{_bindir}/qemu-sh4-static
1295%attr(755,root,root) %{_bindir}/qemu-sh4eb-static
1296%attr(755,root,root) %{_bindir}/qemu-sparc-static
1297%attr(755,root,root) %{_bindir}/qemu-sparc32plus-static
1298%attr(755,root,root) %{_bindir}/qemu-sparc64-static
1299%attr(755,root,root) %{_bindir}/qemu-tilegx-static
a75bdea7 1300%attr(755,root,root) %{_bindir}/qemu-x86_64-static
1777be93
JP
1301%attr(755,root,root) %{_bindir}/qemu-xtensa-static
1302%attr(755,root,root) %{_bindir}/qemu-xtensaeb-static
a75bdea7
ER
1303%endif
1304
ae1c5c71
JK
1305%files system-aarch64
1306%defattr(644,root,root,755)
1307%attr(755,root,root) %{_bindir}/qemu-system-aarch64
290ffd23
JP
1308%{_datadir}/%{name}/edk2-aarch64-code.fd
1309%{_datadir}/%{name}/firmware/60-edk2-aarch64.json
ae1c5c71 1310
fabf5a9c
ER
1311%files system-alpha
1312%defattr(644,root,root,755)
1313%attr(755,root,root) %{_bindir}/qemu-system-alpha
1314
1315%files system-arm
1316%defattr(644,root,root,755)
1317%attr(755,root,root) %{_bindir}/qemu-system-arm
290ffd23
JP
1318%{_datadir}/%{name}/edk2-arm-code.fd
1319%{_datadir}/%{name}/edk2-arm-vars.fd
1320%{_datadir}/%{name}/firmware/60-edk2-arm.json
fabf5a9c
ER
1321
1322%files system-cris
1323%defattr(644,root,root,755)
1324%attr(755,root,root) %{_bindir}/qemu-system-cris
1325
1777be93
JP
1326%files system-hppa
1327%defattr(644,root,root,755)
1328%attr(755,root,root) %{_bindir}/qemu-system-hppa
1329%{_datadir}/%{name}/hppa-firmware.img
1330
fabf5a9c
ER
1331%files system-lm32
1332%defattr(644,root,root,755)
1333%attr(755,root,root) %{_bindir}/qemu-system-lm32
1334
1335%files system-m68k
1336%defattr(644,root,root,755)
1337%attr(755,root,root) %{_bindir}/qemu-system-m68k
1338
1339%files system-microblaze
1340%defattr(644,root,root,755)
1341%attr(755,root,root) %{_bindir}/qemu-system-microblaze
1342%attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1343
1344%files system-mips
1345%defattr(644,root,root,755)
1346%attr(755,root,root) %{_bindir}/qemu-system-mips
1347%attr(755,root,root) %{_bindir}/qemu-system-mipsel
1348%attr(755,root,root) %{_bindir}/qemu-system-mips64
1349%attr(755,root,root) %{_bindir}/qemu-system-mips64el
1350
a56d4cfd
JB
1351%files system-moxie
1352%defattr(644,root,root,755)
1353%attr(755,root,root) %{_bindir}/qemu-system-moxie
1354
cdd6b92f
JP
1355%files system-nios2
1356%defattr(644,root,root,755)
1357%attr(755,root,root) %{_bindir}/qemu-system-nios2
1358
05e8f0a4 1359%files system-or1k
92c357d4 1360%defattr(644,root,root,755)
05e8f0a4 1361%attr(755,root,root) %{_bindir}/qemu-system-or1k
92c357d4 1362
fabf5a9c
ER
1363%files system-ppc
1364%defattr(644,root,root,755)
1365%attr(755,root,root) %{_bindir}/qemu-system-ppc
1366%attr(755,root,root) %{_bindir}/qemu-system-ppc64
1777be93 1367%{_datadir}/%{name}/canyonlands.dtb
b3255247 1368%{_datadir}/%{name}/qemu_vga.ndrv
f39d158a 1369%{_datadir}/%{name}/u-boot.e500
1777be93
JP
1370%{_datadir}/%{name}/u-boot-sam460-20100605.bin
1371
1372%files system-riscv32
1373%defattr(644,root,root,755)
1374%attr(755,root,root) %{_bindir}/qemu-system-riscv32
290ffd23 1375%{_datadir}/%{name}/opensbi-riscv32-virt-fw_jump.bin
1777be93
JP
1376
1377%files system-riscv64
1378%defattr(644,root,root,755)
1379%attr(755,root,root) %{_bindir}/qemu-system-riscv64
290ffd23
JP
1380%{_datadir}/%{name}/opensbi-riscv64-sifive_u-fw_jump.bin
1381%{_datadir}/%{name}/opensbi-riscv64-virt-fw_jump.bin
fabf5a9c
ER
1382
1383%files system-s390x
1384%defattr(644,root,root,755)
1385%attr(755,root,root) %{_bindir}/qemu-system-s390x
b3255247 1386%{_datadir}/%{name}/s390-netboot.img
fabf5a9c
ER
1387
1388%files system-sh4
1389%defattr(644,root,root,755)
1390%attr(755,root,root) %{_bindir}/qemu-system-sh4
1391%attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1392
1393%files system-sparc
1394%defattr(644,root,root,755)
1395%attr(755,root,root) %{_bindir}/qemu-system-sparc
1396%attr(755,root,root) %{_bindir}/qemu-system-sparc64
1397
112b8450
AM
1398%files system-tricore
1399%defattr(644,root,root,755)
1400%attr(755,root,root) %{_bindir}/qemu-system-tricore
1401
72ddf007
PS
1402%files system-unicore32
1403%defattr(644,root,root,755)
1404%attr(755,root,root) %{_bindir}/qemu-system-unicore32
1405
fabf5a9c
ER
1406%files system-x86
1407%defattr(644,root,root,755)
1408%attr(755,root,root) %{_bindir}/qemu-system-i386
1409%attr(755,root,root) %{_bindir}/qemu-system-x86_64
e53a3a53 1410%ifarch %{ix86} %{x8664} x32
41ed6e2c
JR
1411%config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1412%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
41ed6e2c 1413%endif
af556ac1 1414%{_datadir}/%{name}/bios.bin
ae1c5c71 1415%{_datadir}/%{name}/bios-256k.bin
26eb5196 1416%{_datadir}/%{name}/bios-microvm.bin
290ffd23
JP
1417%{_datadir}/%{name}/edk2-i386-code.fd
1418%{_datadir}/%{name}/edk2-i386-secure-code.fd
1419%{_datadir}/%{name}/edk2-i386-vars.fd
1420%{_datadir}/%{name}/edk2-x86_64-code.fd
1421%{_datadir}/%{name}/edk2-x86_64-secure-code.fd
1422%{_datadir}/%{name}/firmware/50-edk2-i386-secure.json
1423%{_datadir}/%{name}/firmware/50-edk2-x86_64-secure.json
1424%{_datadir}/%{name}/firmware/60-edk2-i386.json
1425%{_datadir}/%{name}/firmware/60-edk2-x86_64.json
fabf5a9c
ER
1426
1427%files system-xtensa
1428%defattr(644,root,root,755)
1429%attr(755,root,root) %{_bindir}/qemu-system-xtensa
1430%attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
93473205
JR
1431
1432%files guest-agent
008c880e 1433%defattr(644,root,root,755)
93473205
JR
1434%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
1435%{systemdunitdir}/qemu-guest-agent.service
ccb0f0ea
AM
1436%attr(754,root,root) /etc/rc.d/init.d/qemu-ga
1437%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/qemu-ga
93473205 1438%attr(755,root,root) %{_bindir}/qemu-ga
2f80d753 1439%{_mandir}/man7/qemu-ga-ref.7*
56eebfcf 1440%{_mandir}/man8/qemu-ga.8*
ae1c5c71
JK
1441
1442%files module-block-curl
1443%defattr(644,root,root,755)
1444%attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1445
c218d8d3 1446%if %{with glusterfs}
ae1c5c71
JK
1447%files module-block-gluster
1448%defattr(644,root,root,755)
1449%attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
c218d8d3 1450%endif
ae1c5c71 1451
c218d8d3 1452%if %{with iscsi}
ae1c5c71
JK
1453%files module-block-iscsi
1454%defattr(644,root,root,755)
1455%attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
c218d8d3 1456%endif
ae1c5c71 1457
c218d8d3 1458%if %{with ceph}
ae1c5c71
JK
1459%files module-block-rbd
1460%defattr(644,root,root,755)
1461%attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
c218d8d3 1462%endif
ae1c5c71
JK
1463
1464%files module-block-ssh
1465%defattr(644,root,root,755)
1466%attr(755,root,root) %{_libdir}/%{name}/block-ssh.so
This page took 0.406184 seconds and 4 git commands to generate.