]>
Commit | Line | Data |
---|---|---|
b52de85c | 1 | # TODO: |
fb415d8b JB |
2 | # - parallels-sdk >= 7.0.22? |
3 | # - virtuozzo storage? | |
40a24f8b | 4 | # - mdevctl |
1c850183 JB |
5 | # - mm-ctl (https://github.com/tfukushima/mm-ctl ?) |
6 | # - numad (https://pagure.io/numad/ or https://github.com/yhaenggi/numad/releases ?) | |
7 | # - vstorage, vstorage-mount | |
8357fab1 | 8 | # - pldize virtlockd.init |
af7f943c | 9 | # - update vserver patch, if anybody needs it |
1c850183 | 10 | # - package firewalld zone definition (see files) |
e7875b0f | 11 | # |
94462445 | 12 | # Conditional build: |
af7f943c | 13 | # - virtualization |
423a0b96 JR |
14 | %bcond_without esx # VMware ESX support |
15 | %bcond_without hyperv # Hyper-V support | |
ea8a16b2 | 16 | %bcond_without libxl # libxenlight support |
423a0b96 | 17 | %bcond_without lxc # LXC support |
bf949ec1 | 18 | %bcond_without openvz # OpenVZ support |
f2c82f45 | 19 | %bcond_without qemu # Qemu support |
423a0b96 JR |
20 | %bcond_without vbox # VirtualBox support |
21 | %bcond_without vmware # VMware Workstation/Player support | |
eb319e62 | 22 | %bcond_with vserver # Support for Linux-VServer guests |
af7f943c JB |
23 | # - storage |
24 | %bcond_without ceph # RADOS BD (Ceph) storage support | |
25 | %bcond_without glusterfs # GlusterFS storage support | |
26 | # - storage locking | |
27 | %bcond_without sanlock # sanlock storage lock manager | |
28 | # - other | |
29 | %bcond_without netcf # host interfaces support | |
30 | %bcond_without polkit # PolicyKit support | |
31 | %bcond_without systemtap # systemtap/dtrace probes | |
32 | %bcond_without wireshark # wireshark dissector module | |
04ecdedc | 33 | %bcond_without static_libs # static libraries build |
94462445 | 34 | |
148a9af3 JB |
35 | # qemu available only on x86 and ppc |
36 | %ifnarch %{ix86} %{x8664} ppc | |
37 | %undefine with_qemu | |
38 | %endif | |
96de3a81 | 39 | |
1c850183 JB |
40 | # Xen supported architectures |
41 | %ifnarch %{ix86} %{x8664} %{arm} aarch64 | |
5c892098 | 42 | %undefine with_libxl |
94462445 | 43 | %endif |
6d974b69 | 44 | |
94462445 | 45 | Summary: Toolkit to interact with virtualization capabilities |
148a9af3 | 46 | Summary(pl.UTF-8): Narzędzia współpracujące z funkcjami wirtualizacji |
94462445 | 47 | Name: libvirt |
542efd59 | 48 | Version: 8.10.0 |
e8aae7dd | 49 | Release: 1 |
148a9af3 | 50 | License: LGPL v2.1+ |
423a0b96 | 51 | Group: Libraries |
542efd59 JB |
52 | Source0: https://download.libvirt.org/%{name}-%{version}.tar.xz |
53 | # Source0-md5: 47feb4bed510cb7ed8fdc5be6b9d6d04 | |
e285e5e5 | 54 | Source1: %{name}.init |
ed4dd5b7 | 55 | Source2: %{name}.tmpfiles |
5296d739 | 56 | Patch0: %{name}-sasl.patch |
40a24f8b | 57 | Patch1: %{name}-paths.patch |
423a0b96 | 58 | Patch2: %{name}-qemu-acl.patch |
40a24f8b | 59 | Patch3: %{name}-path-options.patch |
be8dc440 JK |
60 | Patch4: %{name}-udevadm-settle.patch |
61 | Patch5: vserver.patch | |
62 | Patch6: bashisms.patch | |
1c850183 | 63 | URL: https://www.libvirt.org/ |
fb415d8b JB |
64 | BuildRequires: acl-devel |
65 | BuildRequires: attr-devel | |
7ce5923d | 66 | BuildRequires: audit-libs-devel |
fa080175 | 67 | BuildRequires: augeas-devel |
acb65c74 | 68 | BuildRequires: bash-completion-devel >= 1:2.0 |
83426b5b | 69 | %{?with_ceph:BuildRequires: ceph-devel} |
9c616e1f | 70 | BuildRequires: curl-devel >= 7.19.1 |
1c850183 | 71 | BuildRequires: cyrus-sasl-devel >= 2.1.26 |
54247c34 | 72 | BuildRequires: dbus-devel >= 1.0.0 |
4e034fd2 | 73 | BuildRequires: device-mapper-devel >= 1.0.0 |
1c850183 JB |
74 | # rst2html5 rst2man |
75 | BuildRequires: docutils | |
5cbe4501 | 76 | BuildRequires: gawk |
0513cc2a | 77 | BuildRequires: gcc >= 6:4.4 |
e9f5f452 | 78 | BuildRequires: gettext-tools >= 0.17 |
9c616e1f | 79 | BuildRequires: glib2-devel >= 1:2.56.0 |
6dcba5af | 80 | %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4.1} |
9c616e1f | 81 | BuildRequires: gnutls-devel >= 3.6.0 |
69187f5d | 82 | BuildRequires: libapparmor-devel |
7ce5923d JB |
83 | BuildRequires: libblkid-devel >= 2.17 |
84 | BuildRequires: libcap-ng-devel >= 0.4.0 | |
9c616e1f | 85 | BuildRequires: libfuse3-devel >= 3.1.0 |
7ce5923d | 86 | BuildRequires: libgcrypt-devel |
1c850183 | 87 | BuildRequires: libiscsi-devel >= 1.18.0 |
54247c34 | 88 | BuildRequires: libnl-devel >= 3.2 |
1c850183 | 89 | BuildRequires: libpcap-devel >= 1.5.0 |
fb415d8b | 90 | BuildRequires: libselinux-devel >= 2.5 |
9c616e1f | 91 | BuildRequires: libssh-devel >= 0.8.1 |
e9ea35db | 92 | BuildRequires: libssh2-devel >= 1.3 |
40a24f8b | 93 | BuildRequires: libtirpc-devel |
1c850183 JB |
94 | BuildRequires: libxml2-devel >= 1:2.9.1 |
95 | BuildRequires: libxml2-progs >= 1:2.9.1 | |
fa080175 | 96 | BuildRequires: libxslt-devel |
1c850183 | 97 | BuildRequires: libxslt-progs |
db71e203 | 98 | BuildRequires: meson >= 0.56.0 |
94462445 | 99 | BuildRequires: ncurses-devel |
0c4e060a | 100 | %{?with_netcf:BuildRequires: netcf-devel >= 0.2.0} |
04ecdedc | 101 | BuildRequires: ninja >= 1.5 |
40a24f8b JB |
102 | BuildRequires: nss-devel >= 3 |
103 | BuildRequires: numactl-devel >= 2.0.6 | |
104 | %{?with_hyperv:BuildRequires: openwsman-devel >= 2.6.3} | |
36a3330a | 105 | BuildRequires: parted-devel >= 1.8.0 |
69187f5d | 106 | BuildRequires: pkgconfig |
8b51fd22 | 107 | %{?with_polkit:BuildRequires: polkit-devel >= 0.90} |
04ecdedc | 108 | %{?with_polkit:BuildRequires: polkit} |
1c850183 | 109 | BuildRequires: python3 >= 1:3.0 |
40a24f8b | 110 | BuildRequires: readline-devel >= 7.0 |
6827ad9b | 111 | BuildRequires: rpcsvc-proto |
2508995e | 112 | BuildRequires: rpm-build >= 4.6 |
0cbba7f6 | 113 | BuildRequires: rpmbuild(macros) >= 1.752 |
40a24f8b JB |
114 | %{?with_sanlock:BuildRequires: sanlock-devel >= 3.5.0} |
115 | BuildRequires: sed >= 4.0 | |
5bb742b4 | 116 | BuildRequires: systemd-devel |
3e5ed185 | 117 | %{?with_systemtap:BuildRequires: systemtap-sdt-devel} |
887cc7c4 | 118 | BuildRequires: tar >= 1:1.22 |
1c850183 | 119 | BuildRequires: udev-devel >= 1:219 |
40a24f8b | 120 | %{?with_wireshark:BuildRequires: wireshark-devel >= 2.6.0} |
9c616e1f | 121 | %{?with_libxl:BuildRequires: xen-devel >= 4.9} |
94462445 | 122 | # For disk driver |
7ce5923d | 123 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.10.0 |
887cc7c4 | 124 | BuildRequires: xz |
1c850183 | 125 | BuildRequires: yajl-devel >= 2.0.3 |
9c616e1f | 126 | Requires: curl-libs >= 7.19.1 |
1c850183 JB |
127 | Requires: cyrus-sasl-libs >= 2.1.26 |
128 | Requires: device-mapper-libs >= 1.0.0 | |
9c616e1f JB |
129 | Requires: glib2 >= 1:2.56.0 |
130 | Requires: gnutls-libs >= 3.6.0 | |
7ce5923d | 131 | Requires: libcap-ng >= 0.4.0 |
54247c34 | 132 | Requires: libnl >= 3.2 |
1c850183 | 133 | Requires: libpcap >= 1.5.0 |
fb415d8b | 134 | Requires: libselinux >= 2.5 |
9c616e1f | 135 | Requires: libssh >= 0.8.1 |
e9ea35db | 136 | Requires: libssh2 >= 1.3 |
1c850183 | 137 | Requires: libxml2 >= 1:2.9.1 |
40a24f8b | 138 | %{?with_hyperv:Requires: openwsman-libs >= 2.6.3} |
1c850183 | 139 | Requires: yajl >= 2.0.3 |
40a24f8b JB |
140 | Obsoletes: libvirt-daemon-esx < 0.9.13 |
141 | Obsoletes: libvirt-daemon-hyperv < 0.9.13 | |
142 | Obsoletes: libvirt-daemon-openvz < 0.9.13 | |
be03a776 JB |
143 | Obsoletes: libvirt-daemon-phyp < 6.0.0 |
144 | Obsoletes: libvirt-daemon-uml < 5.0.0 | |
40a24f8b | 145 | Obsoletes: libvirt-daemon-vmware < 0.9.13 |
94462445 ER |
146 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
147 | ||
94462445 ER |
148 | %description |
149 | Libvirt is a C toolkit to interact with the virtualization | |
150 | capabilities of recent versions of Linux. | |
151 | ||
152 | Virtualization of the Linux Operating System means the ability to run | |
153 | multiple instances of Operating Systems concurently on a single | |
154 | hardware system where the basic resources are driven by a Linux | |
155 | instance. The library aim at providing long term stable C API | |
156 | initially for the Xen paravirtualization but should be able to | |
157 | integrate other virtualization mechanisms if needed. | |
158 | ||
cf4bec93 JB |
159 | This package contains the base libraries and configuration file. |
160 | ||
148a9af3 | 161 | %description -l pl.UTF-8 |
423a0b96 JR |
162 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji |
163 | obecnych wersji Linuksa. | |
148a9af3 JB |
164 | |
165 | Wirtualizacja w systemie operacyjnym Linux oznacza możliwość | |
166 | jednoczesnego uruchamiania wielu instancji systemu operacyjnego na | |
167 | pojedynczym systemie sprzętowym, którego podstawowe zasoby są | |
168 | zarządzane przez instancję Linuksa. Celem biblioteki jest zapewnienie | |
169 | długotrwale stabilnego API C, początkowo do parawirtualizacji Xen, ale | |
170 | dającej się zintegrować w razie potrzeby z innymi mechanizmami | |
171 | wirtualizacji. | |
172 | ||
cf4bec93 JB |
173 | Ten pakiet zawiera podstawowe biblioteki oraz plik konfiguracyjny. |
174 | ||
842a4333 | 175 | %package -n bash-completion-%{name} |
be03a776 | 176 | Summary: bash-completion for libvirt |
1c850183 | 177 | Summary(pl.UTF-8): Bashowe dopełnianie składni poleceń libvirt |
be03a776 | 178 | Group: Applications/Shells |
9c616e1f | 179 | Requires: bash-completion >= 1:2.0 |
5d55cc1a | 180 | BuildArch: noarch |
842a4333 JP |
181 | |
182 | %description -n bash-completion-%{name} | |
183 | This package provides bash-completion for libvirt. | |
184 | ||
1c850183 JB |
185 | %description -n bash-completion-%{name} -l pl.UTF-8 |
186 | Ten pakiet zapewnia bashowe dopełnianie składni dla poleceń libvirt. | |
187 | ||
94462445 | 188 | %package devel |
148a9af3 JB |
189 | Summary: Development files for programs using libvirt |
190 | Summary(pl.UTF-8): Pliki programistyczne do programów wykorzystujących libvirt | |
94462445 ER |
191 | Group: Development/Libraries |
192 | Requires: %{name} = %{version}-%{release} | |
94462445 ER |
193 | |
194 | %description devel | |
195 | Libvirt is a C toolkit to interact with the virtualization | |
196 | capabilities of recent versions of Linux. | |
197 | ||
148a9af3 JB |
198 | This package contains the header files needed for developing programs |
199 | using the libvirt library. | |
200 | ||
201 | %description devel -l pl.UTF-8 | |
423a0b96 JR |
202 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji |
203 | obecnych wersji Linuksa. | |
148a9af3 JB |
204 | |
205 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów | |
206 | wykorzystujących bibliotekę libvirt. | |
94462445 ER |
207 | |
208 | %package static | |
209 | Summary: Development static libraries for programs using libvirt | |
148a9af3 | 210 | Summary(pl.UTF-8): Statyczne biblioteki programistyczne do programów wykorzystujących libvirt |
94462445 | 211 | Group: Development/Libraries |
148a9af3 | 212 | Requires: %{name}-devel = %{version}-%{release} |
94462445 ER |
213 | |
214 | %description static | |
215 | Libvirt is a C toolkit to interact with the virtualization | |
216 | capabilities of recent versions of Linux. | |
217 | ||
148a9af3 JB |
218 | This package contains the static libraries for developing programs |
219 | using the libvirt library. | |
220 | ||
221 | %description static -l pl.UTF-8 | |
423a0b96 JR |
222 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji |
223 | obecnych wersji Linuksa. | |
148a9af3 JB |
224 | |
225 | Ten pakiet zawiera biblioteki statyczne do tworzenia programów | |
226 | wykorzystujących bibliotekę libvirt. | |
94462445 | 227 | |
1c850183 JB |
228 | %package doc |
229 | Summary: Documentation for libvirt | |
230 | Summary(pl.UTF-8): Dokumentacja do libvirt | |
231 | Group: Documentation | |
5d55cc1a | 232 | BuildArch: noarch |
1c850183 JB |
233 | |
234 | %description doc | |
235 | Documentation for libvirt. | |
236 | ||
237 | %description doc -l pl.UTF-8 | |
238 | Dokumentacja do libvirt. | |
239 | ||
423a0b96 JR |
240 | %package lock-sanlock |
241 | Summary: Sanlock lock manager plugin for libvirt | |
242 | Summary(pl.UTF-8): Zarządca blokad sanlock dla biblioteki libvirt | |
243 | Group: Libraries | |
4ef34a20 | 244 | Requires: %{name}-daemon = %{version}-%{release} |
40a24f8b | 245 | Requires: sanlock-libs >= 3.5.0 |
423a0b96 JR |
246 | |
247 | %description lock-sanlock | |
248 | Sanlock lock manager plugin for libvirt. | |
249 | ||
250 | %description lock-sanlock -l pl.UTF-8 | |
251 | Zarządca blokad sanlock dla biblioteki libvirt. | |
252 | ||
253 | %package daemon | |
254 | Summary: Server side daemon and supporting files for libvirt library | |
cf4bec93 | 255 | Summary(pl.UTF-8): Demon działający po stronie serwera oraz pliki wspierające dla biblioteki libvirt |
423a0b96 | 256 | Group: Applications/System |
1c850183 JB |
257 | Requires(post): systemd-units |
258 | Requires(post,preun): /sbin/chkconfig | |
259 | Requires(postun): systemd-units | |
260 | Requires(preun): systemd-units | |
94462445 | 261 | Requires: %{name} = %{version}-%{release} |
1c850183 | 262 | Requires: device-mapper >= 1.0.0 |
423a0b96 | 263 | Requires: iproute2 |
7ce5923d | 264 | Requires: libblkid >= 2.17 |
1c850183 JB |
265 | # iscsi-direct driver |
266 | Requires: libiscsi >= 1.18.0 | |
0c4e060a | 267 | %{?with_netcf:Requires: netcf >= 0.2.0} |
7ce5923d | 268 | Requires: parted-libs >= 1.8.0 |
8b51fd22 | 269 | Requires: rc-scripts |
423a0b96 JR |
270 | # Needed for probing the power management features of the host. |
271 | Requires: pm-utils | |
bf949ec1 | 272 | Requires: systemd-units >= 37-0.10 |
1c850183 | 273 | Requires: udev-libs >= 1:219 |
423a0b96 JR |
274 | Requires: util-linux |
275 | Requires: virtual(module-tools) | |
7ce5923d | 276 | Requires: xorg-lib-libpciaccess >= 0.10.0 |
624d0ccc | 277 | Suggests: bridge-utils |
1c850183 JB |
278 | Suggests: cyrus-sasl >= 2.1.26 |
279 | Suggests: cyrus-sasl-digest-md5 >= 2.1.26 | |
8a8149a9 | 280 | Suggests: dmidecode |
423a0b96 | 281 | Suggests: dnsmasq >= 2.41 |
8a8149a9 JR |
282 | Suggests: ebtables |
283 | Suggests: gawk | |
1c850183 | 284 | Suggests: glusterfs-client >= 3.4.1 |
8a8149a9 | 285 | Suggests: iptables |
423a0b96 JR |
286 | Suggests: iptables |
287 | Suggests: libcgroup | |
624d0ccc | 288 | Suggests: lvm2 |
423a0b96 JR |
289 | Suggests: numad |
290 | Suggests: open-iscsi | |
54247c34 | 291 | Suggests: parted >= 1.8.0 |
423a0b96 | 292 | Suggests: polkit >= 0.93 |
cdcb191c | 293 | #Suggests: radvd |
bf949ec1 | 294 | Suggests: scrub |
8b51fd22 | 295 | Provides: libvirt(hypervisor) |
94462445 | 296 | |
423a0b96 JR |
297 | %description daemon |
298 | Server side daemon required to manage the virtualization capabilities | |
299 | of recent versions of Linux. Requires a hypervisor specific sub-RPM | |
300 | for specific drivers. | |
301 | ||
cf4bec93 JB |
302 | %description daemon -l pl.UTF-8 |
303 | Demon działający po stronie serwera wymagany do zarządzania funkcjami | |
304 | wirtualizacji nowych wersji Linuksa. Wymaga podpakietu specyficznego | |
305 | dla hipernadzorcy. | |
306 | ||
fb415d8b JB |
307 | %package daemon-storage-gluster |
308 | Summary: Storage driver plugin for GlusterFS | |
309 | Summary(pl.UTF-8): Wtyczka składowania danych wykorzystująca GlusterFS | |
310 | Group: Libraries | |
311 | Requires: %{name}-daemon = %{version}-%{release} | |
312 | Requires: glusterfs-libs >= 3.4.1 | |
313 | ||
314 | %description daemon-storage-gluster | |
315 | Storage driver plugin for GlusterFS. | |
316 | ||
317 | %description daemon-storage-gluster -l pl.UTF-8 | |
318 | Wtyczka składowania danych wykorzystująca system plików GlusterFS. | |
319 | ||
320 | %package daemon-storage-rbd | |
321 | Summary: Storage driver plugin for Ceph RADOS Block Device | |
322 | Summary(pl.UTF-8): Wtyczka składowania danych wykorzystująca urządzenie blokowe RADOS (Ceph) | |
323 | Group: Libraries | |
324 | Requires: %{name}-daemon = %{version}-%{release} | |
325 | ||
326 | %description daemon-storage-rbd | |
327 | Storage driver plugin for Ceph RADOS Block Device. | |
328 | ||
329 | %description daemon-storage-rbd -l pl.UTF-8 | |
330 | Wtyczka składowania danych wykorzystująca urządzenie blokowe RADOS | |
331 | (system plików Ceph). | |
332 | ||
423a0b96 | 333 | %package daemon-libxl |
cf4bec93 JB |
334 | Summary: Server side driver required to run XEN guests (xenlight) |
335 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości XEN (xenlight) | |
336 | Group: Libraries | |
423a0b96 | 337 | Requires: %{name}-daemon = %{version}-%{release} |
9c616e1f | 338 | Requires: xen >= 4.9 |
423a0b96 | 339 | Provides: libvirt(hypervisor) |
be03a776 | 340 | Obsoletes: libvirt-daemon-xen < 4.3.0 |
423a0b96 JR |
341 | |
342 | %description daemon-libxl | |
cf4bec93 JB |
343 | Server side driver required to manage the virtualization capabilities |
344 | of XEN via xenlight interface. | |
345 | ||
346 | %description daemon-libxl -l pl.UTF-8 | |
347 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
348 | wirtualizacji XEN poprzez interfejs xenlight. | |
423a0b96 JR |
349 | |
350 | %package daemon-lxc | |
cf4bec93 JB |
351 | Summary: Server side driver required to run LXC guests |
352 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości LXC | |
353 | Group: Libraries | |
423a0b96 | 354 | Requires: %{name}-daemon = %{version}-%{release} |
9c616e1f | 355 | Requires: libfuse3 >= 3.1.0 |
423a0b96 JR |
356 | Provides: libvirt(hypervisor) |
357 | ||
358 | %description daemon-lxc | |
cf4bec93 JB |
359 | Server side driver required to manage the virtualization capabilities |
360 | of LXC. | |
361 | ||
362 | %description daemon-lxc -l pl.UTF-8 | |
363 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
364 | wirtualizacji LXC. | |
423a0b96 | 365 | |
423a0b96 | 366 | %package daemon-qemu |
cf4bec93 JB |
367 | Summary: Server side driver required to run QEMU guests |
368 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości QEMU | |
369 | Group: Libraries | |
423a0b96 JR |
370 | Requires: %{name}-daemon = %{version}-%{release} |
371 | Requires: /usr/bin/qemu-img | |
423a0b96 JR |
372 | Requires: bzip2 |
373 | Requires: gzip | |
374 | Requires: lzop | |
9c616e1f | 375 | Requires: qemu-system-x86 >= 4.2 |
423a0b96 JR |
376 | Requires: xz |
377 | Provides: libvirt(hypervisor) | |
378 | ||
379 | %description daemon-qemu | |
cf4bec93 JB |
380 | Server side driver required to manage the virtualization capabilities |
381 | of the QEMU emulators. | |
382 | ||
383 | %description daemon-qemu -l pl.UTF-8 | |
384 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
385 | wirtualizacji emulatora QEMU. | |
423a0b96 | 386 | |
1c850183 JB |
387 | %package daemon-vbox |
388 | Summary: Server side driver required to run VirtalBox guests | |
389 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości VirtalBox | |
390 | Group: Libraries | |
391 | Requires: %{name}-daemon = %{version}-%{release} | |
392 | Requires: VirtualBox >= 5.2 | |
393 | Provides: libvirt(hypervisor) | |
394 | ||
395 | %description daemon-vbox | |
396 | Server side driver required to manage the virtualization capabilities | |
397 | of VirtualBox. | |
398 | ||
399 | %description daemon-vbox -l pl.UTF-8 | |
400 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
401 | wirtualizacji VirtualBoksa. | |
402 | ||
b040b949 JR |
403 | %package daemon-chd |
404 | Summary: Cloud Hypervisor server side driver | |
55844f4c | 405 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości Cloud Hypervisor |
b040b949 JR |
406 | Group: Libraries |
407 | Requires: %{name}-daemon = %{version}-%{release} | |
408 | Provides: libvirt(hypervisor) | |
409 | ||
410 | %description daemon-chd | |
411 | Cloud Hypervisor is an open source Virtual Machine Monitor (VMM) that | |
412 | runs on top of KVM. The project focuses on exclusively running modern, | |
413 | cloud workloads, on top of a limited set of hardware architectures and | |
414 | platforms. Cloud workloads refers to those that are usually run by | |
415 | customers inside a cloud provider. For our purposes this means modern | |
416 | operating systems with most I/O handled by paravirtualised devices | |
417 | (i.e. virtio), no requirement for legacy devices, and 64-bit CPUs. | |
418 | ||
55844f4c JB |
419 | %description daemon-chd -l pl.UTF-8 |
420 | Cloud Hypervisor to mający otwarte źródła monitor maszyn wirtualnych | |
421 | (VMM), działający powyżej KVM. Projekt skupia się wyłącznie na | |
422 | uruchamianiu nowoczesnych, chmurowych zadań na ograniczonym zbiorze | |
423 | architektur i platform sprzętowych. Zadania chmurowe to te, które | |
424 | zwykle są uruchamiane przez klientów u dostawców chmurowych. W tym | |
425 | przypadku oznacza to nowoczesne systemy operacyjne z większością | |
426 | we/wy obsługiwaną przez urządzenia parawirtualizowane (np. virtio), | |
427 | bez wymogu tradycyjnych urządzeń, oraz 64-bitowe procesory. | |
428 | ||
423a0b96 | 429 | %package client |
cf4bec93 JB |
430 | Summary: Client side utilities of the libvirt library |
431 | Summary(pl.UTF-8): Narzędzia klienckie do biblioteki libvirt | |
423a0b96 | 432 | Group: Applications/System |
423a0b96 | 433 | Requires(post): systemd-units |
8b51fd22 | 434 | Requires(post,preun): /sbin/chkconfig |
423a0b96 | 435 | Requires(postun): systemd-units |
8b51fd22 | 436 | Requires(preun): systemd-units |
1c850183 JB |
437 | Requires: %{name} = %{version}-%{release} |
438 | Requires: gettext >= 0.18.1.1-6 | |
9c616e1f | 439 | Requires: gnutls >= 3.6.0 |
1c850183 JB |
440 | Requires: netcat-openbsd |
441 | Requires: rc-scripts | |
423a0b96 JR |
442 | |
443 | %description client | |
cf4bec93 JB |
444 | Client binaries needed to access to the virtualization capabilities of |
445 | recent versions of Linux (and other OSes). | |
446 | ||
447 | %description client -l pl.UTF-8 | |
448 | Programy klienckie potrzebne do funkcji wirtualizacji nowych wersji | |
449 | Linuksa (oraz innych systemów operacyjnych). | |
423a0b96 JR |
450 | |
451 | %package utils | |
cf4bec93 JB |
452 | Summary: Tools to interact with virtualization capabilities (metapackage) |
453 | Summary(pl.UTF-8): Narzędzia do współpracy z funkcjami wirtualizacyjnymi (metapakiet) | |
423a0b96 JR |
454 | Group: Applications/System |
455 | Requires: %{name}-client = %{version}-%{release} | |
456 | Requires: %{name}-daemon = %{version}-%{release} | |
40e7715f | 457 | %{?with_libxl:Requires: %{name}-daemon-libxl = %{version}-%{release}} |
423a0b96 | 458 | Requires: %{name}-daemon-lxc = %{version}-%{release} |
423a0b96 | 459 | Requires: %{name}-daemon-qemu = %{version}-%{release} |
423a0b96 | 460 | |
94462445 ER |
461 | %description utils |
462 | Libvirt is a C toolkit to interact with the virtualization | |
463 | capabilities of recent versions of Linux. | |
464 | ||
cf4bec93 | 465 | This is metapackage gathering all tools for the libvirt library. |
94462445 | 466 | |
148a9af3 | 467 | %description utils -l pl.UTF-8 |
423a0b96 JR |
468 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji |
469 | obecnych wersji Linuksa. | |
148a9af3 | 470 | |
cf4bec93 JB |
471 | To jest metapakiet zbierający wszystkie narzędzia przeznaczone dla |
472 | biblioteki libvirt. | |
148a9af3 | 473 | |
3e5ed185 JB |
474 | %package -n systemtap-libvirt |
475 | Summary: systemtap/dtrace probes for libvirt | |
476 | Summary(pl.UTF-8): Sondy systemtap/dtrace dla libvirt | |
477 | Group: Development/Tools | |
478 | Requires: %{name} = %{version}-%{release} | |
479 | Requires: systemtap-client | |
480 | ||
481 | %description -n systemtap-libvirt | |
482 | systemtap/dtrace probes for libvirt. | |
483 | ||
484 | %description -n systemtap-libvirt -l pl.UTF-8 | |
485 | Sondy systemtap/dtrace dla libvirt. | |
486 | ||
af7f943c JB |
487 | %package -n wireshark-libvirt |
488 | Summary: Wireshark dissector module for libvirt packets | |
489 | Summary(pl.UTF-8): Moduł sekcji Wiresharka do pakietów libvirt | |
490 | Group: Libraries | |
40a24f8b | 491 | Requires: wireshark >= 2.6.0 |
af7f943c JB |
492 | |
493 | %description -n wireshark-libvirt | |
494 | Wireshark dissector module for libvirt packets. | |
495 | ||
496 | %description -n wireshark-libvirt -l pl.UTF-8 | |
497 | Moduł sekcji Wiresharka do pakietów libvirt. | |
498 | ||
94462445 ER |
499 | %prep |
500 | %setup -q | |
be8dc440 | 501 | %patch0 -p1 |
1c850183 | 502 | %patch1 -p1 |
be8dc440 | 503 | %patch2 -p1 |
40a24f8b | 504 | %patch3 -p1 |
8357fab1 | 505 | %patch4 -p1 |
be8dc440 JK |
506 | %{?with_vserver:%patch5 -p1} |
507 | %patch6 -p1 | |
40a24f8b JB |
508 | |
509 | %if %{with static_libs} | |
510 | %{__sed} -i '/^libvirt\(_admin\|_lxc\|_qemu\)\?_lib = / s/shared_library/library/' src/meson.build | |
511 | %endif | |
5296d739 | 512 | |
542efd59 JB |
513 | %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' tools/virt-qemu-qmp-proxy |
514 | ||
94462445 | 515 | %build |
40a24f8b JB |
516 | %meson build \ |
517 | -Dbash_completion=enabled \ | |
518 | -Dbash_completion_dir=%{bash_compdir} \ | |
519 | %{!?with_esx:-Ddriver_esx=disabled} \ | |
520 | %{!?with_hyperv:-Ddriver_hyperv=disabled} \ | |
521 | %{!?with_libxl:-Ddriver_libxl=disabled} \ | |
522 | %{!?with_lxc:-Ddriver_lxc=disabled} \ | |
523 | %{!?with_openvz:-Ddriver_openvz=disabled} \ | |
524 | %{!?with_qemu:-Ddriver_qemu=disabled} \ | |
525 | %{!?with_vbox:-Ddriver_vbox=disabled} \ | |
526 | %{!?with_vmware:-Ddriver_vmware=disabled} \ | |
527 | %{!?with_systemtap:-Ddtrace=disabled} \ | |
528 | %{!?with_glusterfs:-Dglusterfs=disabled} \ | |
529 | -Dinit_script=systemd \ | |
530 | %{!?with_netcf:-Dnetcf=disabled} \ | |
531 | -Dpackager="PLD-Linux" \ | |
532 | -Dpackager_version="%{name}-%{version}-%{release}.%{_target_cpu}" \ | |
533 | %{!?with_polkit:-Dpolkit=disabled} \ | |
534 | -Dqemu_group=qemu \ | |
535 | -Dqemu_user=qemu \ | |
536 | -Drpath=disabled \ | |
537 | %{!?with_sanlock:-Dsanlock=disabled} \ | |
538 | %{!?with_glusterfs:-Dstorage_gluster=disabled} \ | |
539 | %{!?with_ceph:-Dstorage_rbd=disabled} \ | |
540 | %{?with_vbox:-Dvbox_xpcomc_dir=%{_libdir}/VirtualBox} \ | |
541 | %{!?with_wireshark:-Dwireshark_dissector=disabled} \ | |
542 | -Daugparse_path=/usr/bin/augparse \ | |
543 | -Ddmidecode_path=/usr/sbin/dmidecode \ | |
544 | -Ddnsmasq_path=/usr/sbin/dnsmasq \ | |
545 | -Debtables_path=/usr/sbin/ebtables \ | |
546 | -Dip_path=/sbin/ip \ | |
547 | -Dip6tables_path=/usr/sbin/ip6tables \ | |
548 | -Diptables_path=/usr/sbin/iptables \ | |
549 | -Discsiadm_path=/sbin/iscsiadm \ | |
550 | -Dlvchange_path=/sbin/lvchange \ | |
551 | -Dlvcreate_path=/sbin/lvcreate \ | |
552 | -Dlvremove_path=/sbin/lvremove \ | |
553 | -Dlvs_path=/sbin/lvs \ | |
554 | -Dmm_ctl_path=/usr/sbin/mm-ctl \ | |
555 | -Dmkfs_path=/sbin/mkfs \ | |
556 | -Dmodprobe_path=/sbin/modprobe \ | |
557 | -Dmount_path=/bin/mount \ | |
558 | -Dnumad_path=/usr/bin/numad \ | |
559 | -Dovs_vsctl_path=/usr/bin/ovs-vsctl \ | |
560 | -Dparted_path=/usr/sbin/parted \ | |
561 | -Dpvcreate_path=/sbin/pvcreate \ | |
562 | -Dpvremove_path=/sbin/pvremove \ | |
563 | -Dpvs_path=/sbin/pvs \ | |
564 | -Dqemu_bridge_path=%{_libexecdir}/qemu-bridge-helper \ | |
565 | -Dqemu_dbus_daemon_path=/usr/bin/dbus-daemon \ | |
566 | -Dqemu_pr_path=/usr/bin/qemu-pr-helper \ | |
567 | -Dradvd_path=/usr/sbin/radvd \ | |
568 | -Drmmod_path=/sbin/rmmod \ | |
569 | -Dscrub_path=/usr/bin/scrub \ | |
40a24f8b JB |
570 | -Dshowmount_path=/usr/sbin/showmount \ |
571 | -Dtc_path=/sbin/tc \ | |
572 | -Dudevadm_path=/sbin/udevadm \ | |
573 | -Dumount_path=/bin/umount \ | |
574 | -Dvgchange_path=/sbin/vgchange \ | |
575 | -Dvgcreate_path=/sbin/vgcreate \ | |
576 | -Dvgremove_path=/sbin/vgremove \ | |
577 | -Dvgscan_path=/sbin/vgscan \ | |
578 | -Dvgs_path=/sbin/vgs \ | |
579 | -Dzfs_path=/usr/sbin/zfs \ | |
580 | -Dzpool_path=/usr/sbin/zpool | |
581 | ||
582 | # TODO: package and update paths | |
583 | # -Dmdevctl_path=??? | |
584 | # -Dpdwtags=??? | |
585 | # -Dqemu_slirp_path=???/slirp-helper | |
586 | # -Dvstorage_path=???/vstorage | |
587 | # -Dvstorage_mount_path=???/vstorage-mount | |
588 | ||
589 | %ninja_build -C build | |
94462445 ER |
590 | |
591 | %install | |
592 | rm -rf $RPM_BUILD_ROOT | |
663e5db6 | 593 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d \ |
423a0b96 | 594 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} |
ed4dd5b7 | 595 | |
40a24f8b | 596 | %ninja_install -C build |
94462445 | 597 | |
96de3a81 ER |
598 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/libvirtd |
599 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf | |
e285e5e5 | 600 | |
94462445 ER |
601 | %find_lang %{name} |
602 | ||
603 | %clean | |
604 | rm -rf $RPM_BUILD_ROOT | |
605 | ||
5296d739 JB |
606 | %post -p /sbin/ldconfig |
607 | %postun -p /sbin/ldconfig | |
94462445 | 608 | |
423a0b96 | 609 | %post daemon |
8b51fd22 ER |
610 | /sbin/chkconfig --add libvirtd |
611 | %service libvirtd restart | |
bf949ec1 | 612 | %systemd_post libvirtd.service |
423a0b96 JR |
613 | |
614 | %preun daemon | |
8b51fd22 ER |
615 | if [ "$1" = "0" ]; then |
616 | %service -q libvirtd stop | |
617 | /sbin/chkconfig --del libvirtd | |
618 | fi | |
423a0b96 JR |
619 | %systemd_preun libvirtd.service |
620 | ||
621 | %postun daemon | |
622 | %systemd_reload | |
623 | ||
624 | %post client | |
8b51fd22 ER |
625 | /sbin/chkconfig --add libvirt-guests |
626 | %service -n libvirt-guests restart | |
bf949ec1 JR |
627 | NORESTART=1 |
628 | %systemd_post libvirt-guests.service | |
629 | ||
423a0b96 | 630 | %preun client |
bf949ec1 | 631 | %systemd_preun libvirt-guests.service |
8b51fd22 ER |
632 | if [ "$1" = "0" ]; then |
633 | %service -q libvirt-guests stop | |
634 | /sbin/chkconfig --del libvirt-guests | |
635 | fi | |
bf949ec1 | 636 | |
423a0b96 | 637 | %postun client |
bf949ec1 JR |
638 | %systemd_reload |
639 | ||
94462445 ER |
640 | %files -f %{name}.lang |
641 | %defattr(644,root,root,755) | |
40a24f8b | 642 | %doc AUTHORS.rst NEWS.rst README.rst |
cf4bec93 | 643 | %dir %{_sysconfdir}/libvirt |
423a0b96 | 644 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirt.conf |
5296d739 JB |
645 | %attr(755,root,root) %{_libdir}/libvirt.so.*.*.* |
646 | %attr(755,root,root) %ghost %{_libdir}/libvirt.so.0 | |
b2ff1d91 JB |
647 | %attr(755,root,root) %{_libdir}/libvirt-admin.so.*.*.* |
648 | %attr(755,root,root) %ghost %{_libdir}/libvirt-admin.so.0 | |
bf7aa31b JB |
649 | %if %{with lxc} |
650 | %attr(755,root,root) %{_libdir}/libvirt-lxc.so.*.*.* | |
651 | %attr(755,root,root) %ghost %{_libdir}/libvirt-lxc.so.0 | |
652 | %endif | |
5296d739 JB |
653 | %attr(755,root,root) %{_libdir}/libvirt-qemu.so.*.*.* |
654 | %attr(755,root,root) %ghost %{_libdir}/libvirt-qemu.so.0 | |
fb415d8b JB |
655 | |
656 | # NSS modules | |
657 | %attr(755,root,root) %{_libdir}/libnss_libvirt.so.2 | |
658 | %attr(755,root,root) %{_libdir}/libnss_libvirt_guest.so.2 | |
bf7aa31b | 659 | |
423a0b96 | 660 | %dir %{_libdir}/libvirt |
c47719f5 | 661 | %dir %{_datadir}/libvirt |
3ac3cd0c | 662 | |
842a4333 JP |
663 | %files -n bash-completion-%{name} |
664 | %defattr(644,root,root,755) | |
1c850183 JB |
665 | %{bash_compdir}/virsh |
666 | %{bash_compdir}/virt-admin | |
842a4333 | 667 | |
94462445 ER |
668 | %files devel |
669 | %defattr(644,root,root,755) | |
5296d739 | 670 | %attr(755,root,root) %{_libdir}/libvirt.so |
b2ff1d91 | 671 | %attr(755,root,root) %{_libdir}/libvirt-admin.so |
bf7aa31b | 672 | %{?with_lxc:%attr(755,root,root) %{_libdir}/libvirt-lxc.so} |
b842fe72 | 673 | %attr(755,root,root) %{_libdir}/libvirt-qemu.so |
f4fa2857 | 674 | %{_datadir}/%{name}/api |
5296d739 | 675 | %{_includedir}/%{name} |
771a9acb | 676 | %{_pkgconfigdir}/libvirt.pc |
c25279f9 | 677 | %{_pkgconfigdir}/libvirt-admin.pc |
771a9acb | 678 | %{?with_lxc:%{_pkgconfigdir}/libvirt-lxc.pc} |
b842fe72 | 679 | %{_pkgconfigdir}/libvirt-qemu.pc |
fb415d8b JB |
680 | %{_mandir}/man7/virkeycode-*.7* |
681 | %{_mandir}/man7/virkeyname-*.7* | |
94462445 | 682 | |
7b850baf | 683 | %if %{with static_libs} |
94462445 ER |
684 | %files static |
685 | %defattr(644,root,root,755) | |
5296d739 | 686 | %{_libdir}/libvirt.a |
bf7aa31b | 687 | %{?with_lxc:%{_libdir}/libvirt-lxc.a} |
b842fe72 | 688 | %{_libdir}/libvirt-qemu.a |
7b850baf | 689 | %endif |
94462445 | 690 | |
1c850183 JB |
691 | %files doc |
692 | %defattr(644,root,root,755) | |
693 | %dir %{_docdir}/libvirt | |
694 | %{_docdir}/libvirt/examples | |
695 | %{_docdir}/libvirt/html | |
696 | ||
cf4bec93 JB |
697 | %if %{with sanlock} |
698 | %files lock-sanlock | |
699 | %defattr(644,root,root,755) | |
700 | %attr(755,root,root) %{_sbindir}/virt-sanlock-cleanup | |
cf5c6c57 | 701 | %attr(755,root,root) %{_libexecdir}/libvirt_sanlock_helper |
cf4bec93 JB |
702 | %attr(755,root,root) %{_libdir}/libvirt/lock-driver/sanlock.so |
703 | %{_datadir}/augeas/lenses/libvirt_sanlock.aug | |
fef7eb20 | 704 | %if %{with qemu} |
cf4bec93 | 705 | %{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug |
fef7eb20 | 706 | %endif |
cf4bec93 JB |
707 | %dir /var/lib/libvirt/sanlock |
708 | %{_mandir}/man8/virt-sanlock-cleanup.8* | |
cf4bec93 JB |
709 | %endif |
710 | ||
423a0b96 | 711 | %files daemon |
94462445 | 712 | %defattr(644,root,root,755) |
9c616e1f JB |
713 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor.d/abstractions/libvirt-lxc |
714 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor.d/abstractions/libvirt-qemu | |
715 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor.d/libvirt | |
716 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor.d/local/usr.lib.libvirt.virt-aa-helper | |
717 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor.d/usr.lib.libvirt.virt-aa-helper | |
718 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor.d/usr.sbin.libvirtd | |
719 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor.d/usr.sbin.virtqemud | |
720 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor.d/usr.sbin.virtxend | |
1c850183 | 721 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirt-admin.conf |
423a0b96 | 722 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirtd.conf |
1c850183 | 723 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtinterfaced.conf |
62e11f33 | 724 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtlockd.conf |
c25279f9 | 725 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtlogd.conf |
1c850183 JB |
726 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtnetworkd.conf |
727 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtnodedevd.conf | |
728 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtnwfilterd.conf | |
729 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtproxyd.conf | |
730 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtsecretd.conf | |
731 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtstoraged.conf | |
732 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu | |
733 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks | |
423a0b96 | 734 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/default.xml |
1c850183 | 735 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks/autostart |
423a0b96 | 736 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml |
1c850183 | 737 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/nwfilter |
423a0b96 | 738 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/nwfilter/*.xml |
72b1baa0 | 739 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sasl/libvirt.conf |
1c850183 | 740 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd |
bf949ec1 | 741 | %attr(754,root,root) /etc/rc.d/init.d/libvirtd |
bf949ec1 | 742 | %{systemdunitdir}/libvirtd.service |
538e1954 JP |
743 | %{systemdunitdir}/libvirtd.socket |
744 | %{systemdunitdir}/libvirtd-admin.socket | |
745 | %{systemdunitdir}/libvirtd-ro.socket | |
746 | %{systemdunitdir}/libvirtd-tcp.socket | |
747 | %{systemdunitdir}/libvirtd-tls.socket | |
2114e9b8 | 748 | %{systemdunitdir}/virt-guest-shutdown.target |
1c850183 JB |
749 | %{systemdunitdir}/virtinterfaced.service |
750 | %{systemdunitdir}/virtinterfaced.socket | |
751 | %{systemdunitdir}/virtinterfaced-admin.socket | |
752 | %{systemdunitdir}/virtinterfaced-ro.socket | |
4ef34a20 JB |
753 | %{systemdunitdir}/virtlockd.service |
754 | %{systemdunitdir}/virtlockd.socket | |
a7243fbe | 755 | %{systemdunitdir}/virtlockd-admin.socket |
c25279f9 MM |
756 | %{systemdunitdir}/virtlogd.service |
757 | %{systemdunitdir}/virtlogd.socket | |
a7243fbe | 758 | %{systemdunitdir}/virtlogd-admin.socket |
1c850183 JB |
759 | %{systemdunitdir}/virtnetworkd.service |
760 | %{systemdunitdir}/virtnetworkd.socket | |
761 | %{systemdunitdir}/virtnetworkd-admin.socket | |
762 | %{systemdunitdir}/virtnetworkd-ro.socket | |
763 | %{systemdunitdir}/virtnodedevd.service | |
764 | %{systemdunitdir}/virtnodedevd.socket | |
765 | %{systemdunitdir}/virtnodedevd-admin.socket | |
766 | %{systemdunitdir}/virtnodedevd-ro.socket | |
767 | %{systemdunitdir}/virtnwfilterd.service | |
768 | %{systemdunitdir}/virtnwfilterd.socket | |
769 | %{systemdunitdir}/virtnwfilterd-admin.socket | |
770 | %{systemdunitdir}/virtnwfilterd-ro.socket | |
771 | %{systemdunitdir}/virtproxyd.service | |
772 | %{systemdunitdir}/virtproxyd.socket | |
773 | %{systemdunitdir}/virtproxyd-admin.socket | |
774 | %{systemdunitdir}/virtproxyd-ro.socket | |
775 | %{systemdunitdir}/virtproxyd-tcp.socket | |
776 | %{systemdunitdir}/virtproxyd-tls.socket | |
777 | %{systemdunitdir}/virtsecretd.service | |
778 | %{systemdunitdir}/virtsecretd.socket | |
779 | %{systemdunitdir}/virtsecretd-admin.socket | |
780 | %{systemdunitdir}/virtsecretd-ro.socket | |
781 | %{systemdunitdir}/virtstoraged.service | |
782 | %{systemdunitdir}/virtstoraged.socket | |
783 | %{systemdunitdir}/virtstoraged-admin.socket | |
784 | %{systemdunitdir}/virtstoraged-ro.socket | |
9e91fdad | 785 | %config(noreplace) %verify(not md5 mtime size) /usr/lib/sysctl.d/60-libvirtd.conf |
423a0b96 | 786 | %attr(755,root,root) %{_sbindir}/libvirtd |
1c850183 | 787 | %attr(755,root,root) %{_sbindir}/virtinterfaced |
4ef34a20 | 788 | %attr(755,root,root) %{_sbindir}/virtlockd |
c25279f9 | 789 | %attr(755,root,root) %{_sbindir}/virtlogd |
1c850183 JB |
790 | %attr(755,root,root) %{_sbindir}/virtnetworkd |
791 | %attr(755,root,root) %{_sbindir}/virtnodedevd | |
792 | %attr(755,root,root) %{_sbindir}/virtnwfilterd | |
793 | %attr(755,root,root) %{_sbindir}/virtproxyd | |
794 | %attr(755,root,root) %{_sbindir}/virtsecretd | |
795 | %attr(755,root,root) %{_sbindir}/virtstoraged | |
796 | %attr(755,root,root) %{_libexecdir}/libvirt_iohelper | |
797 | %attr(755,root,root) %{_libexecdir}/libvirt_leaseshelper | |
798 | %attr(755,root,root) %{_libexecdir}/libvirt_parthelper | |
799 | %attr(755,root,root) %{_libexecdir}/virt-aa-helper | |
800 | # TODO: | |
542efd59 JB |
801 | #%{_libdir}/firewalld/policies/libvirt-routed-in.xml |
802 | #%{_libdir}/firewalld/policies/libvirt-routed-out.xml | |
803 | #%{_libdir}/firewalld/policies/libvirt-to-host.xml | |
1c850183 | 804 | #%{_libdir}/firewalld/zones/libvirt.xml |
542efd59 | 805 | #%{_libdir}/firewalld/zones/libvirt-routed.xml |
1c850183 | 806 | %dir %{_libdir}/libvirt/connection-driver |
728328ae | 807 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_interface.so |
1c850183 JB |
808 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_network.so |
809 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nodedev.so | |
810 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nwfilter.so | |
811 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_secret.so | |
812 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_storage.so | |
813 | %dir %{_libdir}/libvirt/lock-driver | |
814 | %attr(755,root,root) %{_libdir}/libvirt/lock-driver/lockd.so | |
815 | %dir %{_libdir}/libvirt/storage-backend | |
816 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_disk.so | |
817 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_fs.so | |
818 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_iscsi.so | |
819 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_iscsi-direct.so | |
820 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_logical.so | |
821 | # mpath requires libdevmapper, but libvirt itself requires it too | |
822 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_mpath.so | |
823 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_scsi.so | |
b040b949 | 824 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_vstorage.so |
1c850183 JB |
825 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_zfs.so |
826 | %dir %{_libdir}/libvirt/storage-file | |
827 | %attr(755,root,root) %{_libdir}/libvirt/storage-file/libvirt_storage_file_fs.so | |
423a0b96 | 828 | %{_datadir}/augeas/lenses/libvirtd.aug |
4ef34a20 | 829 | %{_datadir}/augeas/lenses/libvirt_lockd.aug |
1c850183 | 830 | %{_datadir}/augeas/lenses/virtinterfaced.aug |
62e11f33 | 831 | %{_datadir}/augeas/lenses/virtlockd.aug |
c25279f9 | 832 | %{_datadir}/augeas/lenses/virtlogd.aug |
1c850183 JB |
833 | %{_datadir}/augeas/lenses/virtnetworkd.aug |
834 | %{_datadir}/augeas/lenses/virtnodedevd.aug | |
835 | %{_datadir}/augeas/lenses/virtnwfilterd.aug | |
836 | %{_datadir}/augeas/lenses/virtproxyd.aug | |
837 | %{_datadir}/augeas/lenses/virtsecretd.aug | |
838 | %{_datadir}/augeas/lenses/virtstoraged.aug | |
423a0b96 | 839 | %{_datadir}/augeas/lenses/tests/test_libvirtd.aug |
1c850183 | 840 | %{_datadir}/augeas/lenses/tests/test_virtinterfaced.aug |
62e11f33 | 841 | %{_datadir}/augeas/lenses/tests/test_virtlockd.aug |
c25279f9 | 842 | %{_datadir}/augeas/lenses/tests/test_virtlogd.aug |
1c850183 JB |
843 | %{_datadir}/augeas/lenses/tests/test_virtnetworkd.aug |
844 | %{_datadir}/augeas/lenses/tests/test_virtnodedevd.aug | |
845 | %{_datadir}/augeas/lenses/tests/test_virtnwfilterd.aug | |
846 | %{_datadir}/augeas/lenses/tests/test_virtproxyd.aug | |
847 | %{_datadir}/augeas/lenses/tests/test_virtsecretd.aug | |
848 | %{_datadir}/augeas/lenses/tests/test_virtstoraged.aug | |
849 | %{_datadir}/libvirt/cpu_map | |
3e5ed185 JB |
850 | %if %{with polkit} |
851 | %{_datadir}/polkit-1/actions/org.libvirt.api.policy | |
852 | %{_datadir}/polkit-1/actions/org.libvirt.unix.policy | |
9e91fdad | 853 | %{_datadir}/polkit-1/rules.d/50-libvirt.rules |
3e5ed185 | 854 | %endif |
e4177f0c | 855 | %{_mandir}/man8/libvirtd.8* |
62e11f33 | 856 | %{_mandir}/man8/virtlockd.8* |
c25279f9 | 857 | %{_mandir}/man8/virtlogd.8* |
b040b949 JR |
858 | %{_mandir}/man8/virtinterfaced.8* |
859 | %{_mandir}/man8/virtnetworkd.8* | |
860 | %{_mandir}/man8/virtnodedevd.8* | |
861 | %{_mandir}/man8/virtnwfilterd.8* | |
862 | %{_mandir}/man8/virtproxyd.8* | |
863 | %{_mandir}/man8/virtsecretd.8* | |
864 | %{_mandir}/man8/virtstoraged.8* | |
d5a575f6 | 865 | %dir /var/lib/libvirt |
621ed3d1 | 866 | %dir /var/lib/libvirt/dnsmasq |
423a0b96 | 867 | %attr(711,root,root) %dir /var/lib/libvirt/boot |
621ed3d1 | 868 | %attr(700,root,root) %dir /var/lib/libvirt/network |
423a0b96 JR |
869 | %attr(711,root,root) %dir /var/lib/libvirt/images |
870 | %attr(711,root,root) %dir /var/lib/libvirt/filesystems | |
871 | %attr(700,root,root) %dir /var/log/libvirt | |
872 | %attr(711,root,root) %dir /var/cache/libvirt | |
621ed3d1 | 873 | %dir /var/run/libvirt |
423a0b96 JR |
874 | %dir /var/run/libvirt/network |
875 | %{systemdtmpfilesdir}/%{name}.conf | |
fb415d8b JB |
876 | |
877 | %if %{with glusterfs} | |
878 | %files daemon-storage-gluster | |
879 | %defattr(644,root,root,755) | |
880 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_gluster.so | |
c9fcc2fd | 881 | %attr(755,root,root) %{_libdir}/libvirt/storage-file/libvirt_storage_file_gluster.so |
fb415d8b JB |
882 | %endif |
883 | ||
884 | %if %{with ceph} | |
885 | %files daemon-storage-rbd | |
886 | %defattr(644,root,root,755) | |
887 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_rbd.so | |
888 | %endif | |
423a0b96 | 889 | |
eae1555f | 890 | %if %{with libxl} |
423a0b96 JR |
891 | %files daemon-libxl |
892 | %defattr(644,root,root,755) | |
9e91fdad JB |
893 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl.conf |
894 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl-lockd.conf | |
895 | %{?with_sanlock:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl-sanlock.conf} | |
1c850183 | 896 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtxend.conf |
9e91fdad | 897 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.libxl |
1c850183 JB |
898 | %{systemdunitdir}/virtxend.service |
899 | %{systemdunitdir}/virtxend.socket | |
900 | %{systemdunitdir}/virtxend-admin.socket | |
901 | %{systemdunitdir}/virtxend-ro.socket | |
902 | %attr(755,root,root) %{_sbindir}/virtxend | |
273917b1 | 903 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_libxl.so |
9e91fdad | 904 | %{_datadir}/augeas/lenses/libvirtd_libxl.aug |
1c850183 | 905 | %{_datadir}/augeas/lenses/virtxend.aug |
9e91fdad | 906 | %{_datadir}/augeas/lenses/tests/test_libvirtd_libxl.aug |
1c850183 | 907 | %{_datadir}/augeas/lenses/tests/test_virtxend.aug |
423a0b96 JR |
908 | %attr(700,root,root) %dir /var/lib/libvirt/libxl |
909 | %attr(700,root,root) %dir /var/run/libvirt/libxl | |
910 | %attr(700,root,root) %dir /var/log/libvirt/libxl | |
b040b949 | 911 | %{_mandir}/man8/virtxend.8* |
423a0b96 JR |
912 | %endif |
913 | ||
eae1555f | 914 | %if %{with lxc} |
423a0b96 JR |
915 | %files daemon-lxc |
916 | %defattr(644,root,root,755) | |
917 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/lxc.conf | |
1c850183 | 918 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtlxcd.conf |
423a0b96 | 919 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.lxc |
1c850183 JB |
920 | %{systemdunitdir}/virtlxcd.service |
921 | %{systemdunitdir}/virtlxcd.socket | |
922 | %{systemdunitdir}/virtlxcd-admin.socket | |
923 | %{systemdunitdir}/virtlxcd-ro.socket | |
924 | %attr(755,root,root) %{_sbindir}/virtlxcd | |
925 | %attr(755,root,root) %{_libexecdir}/libvirt_lxc | |
926 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_lxc.so | |
927 | %{_datadir}/augeas/lenses/libvirtd_lxc.aug | |
928 | %{_datadir}/augeas/lenses/virtlxcd.aug | |
929 | %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug | |
930 | %{_datadir}/augeas/lenses/tests/test_virtlxcd.aug | |
423a0b96 | 931 | %attr(700,root,root) %dir /var/lib/libvirt/lxc |
621ed3d1 | 932 | %attr(700,root,root) %dir /var/run/libvirt/lxc |
423a0b96 | 933 | %attr(700,root,root) %dir /var/log/libvirt/lxc |
b040b949 | 934 | %{_mandir}/man8/virtlxcd.8* |
423a0b96 JR |
935 | %endif |
936 | ||
621ed3d1 | 937 | %if %{with qemu} |
423a0b96 JR |
938 | %files daemon-qemu |
939 | %defattr(644,root,root,755) | |
542efd59 | 940 | %attr(755,root,root) %{_bindir}/virt-qemu-qmp-proxy |
1c850183 | 941 | %attr(755,root,root) %{_bindir}/virt-qemu-run |
542efd59 JB |
942 | %attr(755,root,root) %{_bindir}/virt-qemu-sev-validate |
943 | %attr(755,root,root) %{_sbindir}/virtqemud | |
423a0b96 | 944 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu.conf |
9e91fdad | 945 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu-lockd.conf |
1c850183 | 946 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtqemud.conf |
9e91fdad | 947 | %{?with_sanlock:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu-sanlock.conf} |
423a0b96 | 948 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.qemu |
1c850183 JB |
949 | %{systemdunitdir}/virtqemud.service |
950 | %{systemdunitdir}/virtqemud.socket | |
951 | %{systemdunitdir}/virtqemud-admin.socket | |
952 | %{systemdunitdir}/virtqemud-ro.socket | |
1c850183 JB |
953 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_qemu.so |
954 | %{_datadir}/augeas/lenses/libvirtd_qemu.aug | |
955 | %{_datadir}/augeas/lenses/virtqemud.aug | |
956 | %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug | |
957 | %{_datadir}/augeas/lenses/tests/test_libvirt_lockd.aug | |
958 | %{_datadir}/augeas/lenses/tests/test_virtqemud.aug | |
423a0b96 JR |
959 | %attr(750,qemu,qemu) %dir /var/cache/libvirt/qemu |
960 | %attr(750,qemu,qemu) %dir /var/lib/libvirt/qemu | |
621ed3d1 JB |
961 | %attr(700,root,root) %dir /var/log/libvirt/qemu |
962 | %attr(700,root,root) %dir /var/run/libvirt/qemu | |
04ecdedc | 963 | %{_prefix}/lib/sysctl.d/60-qemu-postcopy-migration.conf |
542efd59 JB |
964 | %{_mandir}/man1/virt-qemu-qmp-proxy.1* |
965 | %{_mandir}/man1/virt-qemu-run.1* | |
966 | %{_mandir}/man1/virt-qemu-sev-validate.1* | |
b040b949 | 967 | %{_mandir}/man8/virtqemud.8* |
1c850183 JB |
968 | %endif |
969 | ||
970 | %if %{with vbox} | |
971 | %files daemon-vbox | |
972 | %defattr(644,root,root,755) | |
973 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtvboxd.conf | |
1c850183 JB |
974 | %{systemdunitdir}/virtvboxd.service |
975 | %{systemdunitdir}/virtvboxd.socket | |
976 | %{systemdunitdir}/virtvboxd-admin.socket | |
977 | %{systemdunitdir}/virtvboxd-ro.socket | |
978 | %attr(755,root,root) %{_sbindir}/virtvboxd | |
979 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_vbox.so | |
980 | %{_datadir}/augeas/lenses/virtvboxd.aug | |
981 | %{_datadir}/augeas/lenses/tests/test_virtvboxd.aug | |
b040b949 | 982 | %{_mandir}/man8/virtvboxd.8* |
423a0b96 JR |
983 | %endif |
984 | ||
1dff3987 | 985 | %ifnarch %{ix86} |
b040b949 JR |
986 | %files daemon-chd |
987 | %defattr(644,root,root,755) | |
988 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtchd.conf | |
989 | %{systemdunitdir}/virtchd.service | |
990 | %{systemdunitdir}/virtchd.socket | |
991 | %{systemdunitdir}/virtchd-admin.socket | |
992 | %{systemdunitdir}/virtchd-ro.socket | |
993 | %attr(755,root,root) %{_sbindir}/virtchd | |
994 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_ch.so | |
995 | %{_datadir}/augeas/lenses/virtchd.aug | |
996 | %{_datadir}/augeas/lenses/tests/test_virtchd.aug | |
1dff3987 | 997 | %endif |
b040b949 | 998 | |
423a0b96 JR |
999 | %files client |
1000 | %defattr(644,root,root,755) | |
04ecdedc | 1001 | %{systemdunitdir}/libvirt-guests.service |
62e11f33 | 1002 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virt-login-shell.conf |
423a0b96 | 1003 | %attr(755,root,root) %{_bindir}/virsh |
c25279f9 | 1004 | %attr(755,root,root) %{_bindir}/virt-admin |
423a0b96 | 1005 | %attr(755,root,root) %{_bindir}/virt-host-validate |
1c850183 | 1006 | # TODO: %attr(4754,root,virtlogin) and virtlogin group to access binary |
62e11f33 | 1007 | %attr(4755,root,root) %{_bindir}/virt-login-shell |
423a0b96 | 1008 | %attr(755,root,root) %{_bindir}/virt-xml-validate |
b040b949 | 1009 | %attr(755,root,root) %{_bindir}/virt-pki-query-dn |
423a0b96 | 1010 | %attr(755,root,root) %{_bindir}/virt-pki-validate |
40a24f8b | 1011 | %attr(755,root,root) %{_bindir}/virt-ssh-helper |
4ef34a20 | 1012 | %attr(754,root,root) %{_libexecdir}/libvirt-guests.sh |
1c850183 | 1013 | %attr(754,root,root) %{_libexecdir}/virt-login-shell-helper |
423a0b96 | 1014 | %{_mandir}/man1/virsh.1* |
c25279f9 | 1015 | %{_mandir}/man1/virt-admin.1* |
423a0b96 | 1016 | %{_mandir}/man1/virt-host-validate.1* |
62e11f33 | 1017 | %{_mandir}/man1/virt-login-shell.1* |
423a0b96 | 1018 | %{_mandir}/man1/virt-xml-validate.1* |
b040b949 | 1019 | %{_mandir}/man1/virt-pki-query-dn.1* |
423a0b96 | 1020 | %{_mandir}/man1/virt-pki-validate.1* |
b040b949 JR |
1021 | %{_mandir}/man8/libvirt-guests.8* |
1022 | %{_mandir}/man8/virt-ssh-helper.8* | |
423a0b96 JR |
1023 | %dir %{_datadir}/libvirt/schemas |
1024 | %{_datadir}/libvirt/schemas/basictypes.rng | |
1025 | %{_datadir}/libvirt/schemas/capability.rng | |
40a24f8b | 1026 | %{_datadir}/libvirt/schemas/cpu.rng |
2114e9b8 | 1027 | %{_datadir}/libvirt/schemas/cputypes.rng |
423a0b96 | 1028 | %{_datadir}/libvirt/schemas/domain.rng |
1c850183 | 1029 | %{_datadir}/libvirt/schemas/domainbackup.rng |
3958e395 | 1030 | %{_datadir}/libvirt/schemas/domaincaps.rng |
1c850183 | 1031 | %{_datadir}/libvirt/schemas/domaincheckpoint.rng |
423a0b96 | 1032 | %{_datadir}/libvirt/schemas/domaincommon.rng |
9c616e1f | 1033 | %{_datadir}/libvirt/schemas/domainoverrides.rng |
423a0b96 | 1034 | %{_datadir}/libvirt/schemas/domainsnapshot.rng |
9c616e1f | 1035 | %{_datadir}/libvirt/schemas/inactiveDomain.rng |
423a0b96 JR |
1036 | %{_datadir}/libvirt/schemas/interface.rng |
1037 | %{_datadir}/libvirt/schemas/network.rng | |
1038 | %{_datadir}/libvirt/schemas/networkcommon.rng | |
bf4e4e30 | 1039 | %{_datadir}/libvirt/schemas/networkport.rng |
423a0b96 JR |
1040 | %{_datadir}/libvirt/schemas/nodedev.rng |
1041 | %{_datadir}/libvirt/schemas/nwfilter.rng | |
c9fcc2fd JP |
1042 | %{_datadir}/libvirt/schemas/nwfilter_params.rng |
1043 | %{_datadir}/libvirt/schemas/nwfilterbinding.rng | |
542efd59 | 1044 | %{_datadir}/libvirt/schemas/privatedata.rng |
423a0b96 | 1045 | %{_datadir}/libvirt/schemas/secret.rng |
521fc25f | 1046 | %{_datadir}/libvirt/schemas/storagecommon.rng |
423a0b96 | 1047 | %{_datadir}/libvirt/schemas/storagepool.rng |
549ba196 | 1048 | %{_datadir}/libvirt/schemas/storagepoolcaps.rng |
423a0b96 | 1049 | %{_datadir}/libvirt/schemas/storagevol.rng |
fb415d8b JB |
1050 | # for test driver (built into libvirt) |
1051 | %{_datadir}/libvirt/test-screenshot.png | |
423a0b96 JR |
1052 | |
1053 | %files utils | |
1054 | %defattr(644,root,root,755) | |
3e5ed185 JB |
1055 | |
1056 | %if %{with systemtap} | |
1057 | %files -n systemtap-libvirt | |
1058 | %defattr(644,root,root,755) | |
1059 | %{_datadir}/systemtap/tapset/libvirt_functions.stp | |
1060 | %{_datadir}/systemtap/tapset/libvirt_probes.stp | |
4238dfc2 | 1061 | %{?with_qemu:%{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp} |
3e5ed185 | 1062 | %endif |
af7f943c JB |
1063 | |
1064 | %if %{with wireshark} | |
1065 | %files -n wireshark-libvirt | |
1066 | %defattr(644,root,root,755) | |
51dab576 | 1067 | %attr(755,root,root) %{_libdir}/wireshark/plugins/*/epan/libvirt.so |
af7f943c | 1068 | %endif |