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