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