]>
Commit | Line | Data |
---|---|---|
94462445 ER |
1 | # |
2 | # Conditional build: | |
bc484957 | 3 | %bcond_without xen # xen |
5296d739 | 4 | %bcond_without xen_proxy # Xen proxy |
94462445 | 5 | %bcond_without qemu # Qemu |
4e034fd2 | 6 | %bcond_without polkit # PolicyKit |
fa6419a6 | 7 | %bcond_with sanlock # sanlock storage lock manager |
36a3330a | 8 | %bcond_with netcf # host interfaces support |
bf949ec1 JR |
9 | %bcond_without uml # UML support |
10 | %bcond_without openvz # OpenVZ support | |
11 | %bcond_without phyp # PHYP support | |
12 | %bcond_without xenapi # XenAPI support | |
13 | %bcond_without libxl # libxenlight | |
14 | %bcond_without esx # ESX support | |
15 | %bcond_without hyperv # Hyper-V support | |
94462445 | 16 | |
148a9af3 JB |
17 | # qemu available only on x86 and ppc |
18 | %ifnarch %{ix86} %{x8664} ppc | |
19 | %undefine with_qemu | |
20 | %endif | |
bc484957 | 21 | # Xen is available only on x86 and ia64 |
94462445 ER |
22 | %ifnarch %{ix86} %{x8664} ia64 |
23 | %undefine with_xen | |
24 | %endif | |
94462445 ER |
25 | %if %{without xen} |
26 | %undefine with_xen_proxy | |
27 | %endif | |
28 | ||
94462445 | 29 | Summary: Toolkit to interact with virtualization capabilities |
148a9af3 | 30 | Summary(pl.UTF-8): Narzędzia współpracujące z funkcjami wirtualizacji |
94462445 | 31 | Name: libvirt |
85a20fc2 | 32 | Version: 0.9.10 |
26b43d7d | 33 | Release: 9 |
148a9af3 | 34 | License: LGPL v2.1+ |
94462445 | 35 | Group: Base/Kernel |
94462445 | 36 | Source0: ftp://ftp.libvirt.org/libvirt/%{name}-%{version}.tar.gz |
85a20fc2 | 37 | # Source0-md5: a424bb793521e637349da47e93dd5fff |
e285e5e5 | 38 | Source1: %{name}.init |
ed4dd5b7 | 39 | Source2: %{name}.tmpfiles |
5296d739 | 40 | Patch0: %{name}-sasl.patch |
a5db73fd | 41 | Patch1: %{name}-lxc.patch |
d6de3d6a | 42 | Patch2: libvirt-qemu-acl.patch |
c8f65936 | 43 | Patch3: libvirt-xend.patch |
87bef338 | 44 | Patch4: lxc-without-selinux.patch |
5296d739 | 45 | URL: http://www.libvirt.org/ |
7ce5923d | 46 | BuildRequires: audit-libs-devel |
fa080175 | 47 | BuildRequires: augeas-devel |
148a9af3 | 48 | BuildRequires: autoconf >= 2.50 |
69187f5d | 49 | BuildRequires: automake |
4e034fd2 | 50 | BuildRequires: avahi-devel >= 0.6.0 |
4e034fd2 | 51 | BuildRequires: curl-devel >= 7.18.0 |
69187f5d | 52 | BuildRequires: cyrus-sasl-devel |
4e034fd2 | 53 | BuildRequires: device-mapper-devel >= 1.0.0 |
5cbe4501 | 54 | BuildRequires: gawk |
7ce5923d | 55 | BuildRequires: gettext-devel >= 0.17 |
4e034fd2 | 56 | BuildRequires: gnutls-devel >= 1.0.25 |
69187f5d | 57 | BuildRequires: libapparmor-devel |
7ce5923d JB |
58 | BuildRequires: libblkid-devel >= 2.17 |
59 | BuildRequires: libcap-ng-devel >= 0.4.0 | |
60 | BuildRequires: libgcrypt-devel | |
61 | BuildRequires: libnl1-devel >= 1.1 | |
62 | BuildRequires: libpcap-devel >= 1.0.0 | |
63 | BuildRequires: libselinux-devel >= 2.0.82 | |
64 | BuildRequires: libssh2-devel >= 1.0 | |
69187f5d | 65 | BuildRequires: libstdc++-devel |
66 | BuildRequires: libtool | |
7ce5923d | 67 | BuildRequires: libxml2-devel >= 1:2.6.0 |
fa080175 | 68 | BuildRequires: libxslt-devel |
69 | BuildRequires: openldap-devel | |
fec4200b | 70 | BuildRequires: openwsman-devel >= 2.2.3 |
94462445 | 71 | BuildRequires: ncurses-devel |
36a3330a | 72 | %{?with_netcf:BuildRequires: netcf-devel >= 0.1.4} |
69187f5d | 73 | BuildRequires: numactl-devel |
36a3330a | 74 | BuildRequires: parted-devel >= 1.8.0 |
69187f5d | 75 | BuildRequires: perl-tools-pod |
36a3330a | 76 | %{?with_polkit:BuildRequires: polkit >= 0.90} |
69187f5d | 77 | BuildRequires: pkgconfig |
36a3330a | 78 | BuildRequires: python |
94462445 ER |
79 | BuildRequires: python-devel |
80 | BuildRequires: readline-devel | |
69187f5d | 81 | BuildRequires: rpm-pythonprov |
bf949ec1 | 82 | BuildRequires: rpmbuild(macros) >= 1.627 |
621ed3d1 | 83 | %{?with_sanlock:BuildRequires: sanlock-devel >= 0.8} |
69187f5d | 84 | BuildRequires: udev-devel >= 145 |
bc484957 | 85 | %{?with_xen:BuildRequires: xen-devel >= 4.1.2} |
94462445 | 86 | # For disk driver |
7ce5923d | 87 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.10.0 |
36a3330a | 88 | BuildRequires: yajl-devel |
7ce5923d JB |
89 | Requires: curl-libs >= 7.18.0 |
90 | Requires: device-mapper >= 1.0.0 | |
91 | Requires: gnutls >= 1.0.25 | |
92 | Requires: libcap-ng >= 0.4.0 | |
93 | Requires: libnl1 >= 1.1 | |
94 | Requires: libpcap >= 1.0.0 | |
95 | Requires: libselinux >= 2.0.82 | |
96 | Requires: libssh2 >= 1.0 | |
97 | Requires: libxml2 >= 1:2.6.0 | |
fec4200b | 98 | Requires: openwsman-libs >= 2.2.3 |
94462445 ER |
99 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
100 | ||
94462445 ER |
101 | %description |
102 | Libvirt is a C toolkit to interact with the virtualization | |
103 | capabilities of recent versions of Linux. | |
104 | ||
105 | Virtualization of the Linux Operating System means the ability to run | |
106 | multiple instances of Operating Systems concurently on a single | |
107 | hardware system where the basic resources are driven by a Linux | |
108 | instance. The library aim at providing long term stable C API | |
109 | initially for the Xen paravirtualization but should be able to | |
110 | integrate other virtualization mechanisms if needed. | |
111 | ||
148a9af3 JB |
112 | %description -l pl.UTF-8 |
113 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami | |
114 | wirtualizacji obecnych wersji Linuksa. | |
115 | ||
116 | Wirtualizacja w systemie operacyjnym Linux oznacza możliwość | |
117 | jednoczesnego uruchamiania wielu instancji systemu operacyjnego na | |
118 | pojedynczym systemie sprzętowym, którego podstawowe zasoby są | |
119 | zarządzane przez instancję Linuksa. Celem biblioteki jest zapewnienie | |
120 | długotrwale stabilnego API C, początkowo do parawirtualizacji Xen, ale | |
121 | dającej się zintegrować w razie potrzeby z innymi mechanizmami | |
122 | wirtualizacji. | |
123 | ||
94462445 | 124 | %package devel |
148a9af3 JB |
125 | Summary: Development files for programs using libvirt |
126 | Summary(pl.UTF-8): Pliki programistyczne do programów wykorzystujących libvirt | |
94462445 ER |
127 | Group: Development/Libraries |
128 | Requires: %{name} = %{version}-%{release} | |
7f159b90 JB |
129 | Requires: audit-libs-devel |
130 | Requires: curl-devel >= 7.18.0 | |
131 | Requires: device-mapper-devel >= 1.0.0 | |
132 | Requires: gnutls-devel >= 1.0.25 | |
133 | Requires: libapparmor-devel | |
134 | Requires: libcap-ng-devel >= 0.4.0 | |
135 | Requires: libgcrypt-devel | |
136 | Requires: libnl1-devel >= 1.1 | |
137 | Requires: libpcap-devel >= 1.0.0 | |
138 | Requires: libselinux-devel >= 2.0.82 | |
139 | Requires: libxml2-devel >= 1:2.6.0 | |
140 | Requires: numactl-devel | |
fec4200b | 141 | Requires: openwsman-devel >= 2.2.3 |
94462445 | 142 | %{?with_xen:Requires: xen-devel} |
7f159b90 | 143 | Requires: yajl-devel |
94462445 ER |
144 | |
145 | %description devel | |
146 | Libvirt is a C toolkit to interact with the virtualization | |
147 | capabilities of recent versions of Linux. | |
148 | ||
148a9af3 JB |
149 | This package contains the header files needed for developing programs |
150 | using the libvirt library. | |
151 | ||
152 | %description devel -l pl.UTF-8 | |
153 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami | |
154 | wirtualizacji obecnych wersji Linuksa. | |
155 | ||
156 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów | |
157 | wykorzystujących bibliotekę libvirt. | |
94462445 ER |
158 | |
159 | %package static | |
160 | Summary: Development static libraries for programs using libvirt | |
148a9af3 | 161 | Summary(pl.UTF-8): Statyczne biblioteki programistyczne do programów wykorzystujących libvirt |
94462445 | 162 | Group: Development/Libraries |
148a9af3 | 163 | Requires: %{name}-devel = %{version}-%{release} |
94462445 ER |
164 | |
165 | %description static | |
166 | Libvirt is a C toolkit to interact with the virtualization | |
167 | capabilities of recent versions of Linux. | |
168 | ||
148a9af3 JB |
169 | This package contains the static libraries for developing programs |
170 | using the libvirt library. | |
171 | ||
172 | %description static -l pl.UTF-8 | |
173 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami | |
174 | wirtualizacji obecnych wersji Linuksa. | |
175 | ||
176 | Ten pakiet zawiera biblioteki statyczne do tworzenia programów | |
177 | wykorzystujących bibliotekę libvirt. | |
94462445 | 178 | |
5296d739 | 179 | %package -n python-%{name} |
94462445 | 180 | Summary: Python bindings to interact with virtualization capabilities |
148a9af3 | 181 | Summary(pl.UTF-8): Wiązania Pythona do współpracy z funkcjami wirtualizacji |
94462445 ER |
182 | Group: Development/Languages/Python |
183 | Requires: %{name} = %{version}-%{release} | |
184 | ||
185 | %description -n python-%{name} | |
186 | Libvirt is a C toolkit to interact with the virtualization | |
187 | capabilities of recent versions of Linux. | |
188 | ||
189 | This package contains the Python bindings for the libvirt library. | |
190 | ||
148a9af3 JB |
191 | %description -n python-%{name} -l pl.UTF-8 |
192 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami | |
193 | wirtualizacji obecnych wersji Linuksa. | |
194 | ||
195 | Ten pakiet zawiera wiązania Pythona do biblioteki libvirt. | |
196 | ||
94462445 ER |
197 | %package utils |
198 | Summary: Tools to interact with virtualization capabilities | |
148a9af3 | 199 | Summary(pl.UTF-8): Narzędzia do współpracy z funkcjami wirtualizacyjnymi |
94462445 ER |
200 | Group: Base/Kernel |
201 | Requires: %{name} = %{version}-%{release} | |
7ce5923d | 202 | Requires: avahi-libs >= 0.6.0 |
26b43d7d | 203 | Requires: gettext >= 0.18.1.1-6 |
7ce5923d JB |
204 | Requires: libblkid >= 2.17 |
205 | Requires: parted-libs >= 1.8.0 | |
bf949ec1 | 206 | Requires: systemd-units >= 37-0.10 |
7ce5923d JB |
207 | Requires: udev-libs >= 145 |
208 | Requires: xorg-lib-libpciaccess >= 0.10.0 | |
8a8149a9 | 209 | Suggests: iptables |
624d0ccc | 210 | Suggests: bridge-utils |
8a8149a9 | 211 | Suggests: dmidecode |
624d0ccc | 212 | Suggests: dnsmasq |
8a8149a9 JR |
213 | Suggests: ebtables |
214 | Suggests: gawk | |
215 | Suggests: iptables | |
624d0ccc | 216 | Suggests: lvm2 |
8a8149a9 JR |
217 | # for management through ssh |
218 | Suggests: netcat-openbsd | |
7ce5923d | 219 | Suggests: polkit >= 0.90 |
bf949ec1 | 220 | Suggests: scrub |
94462445 ER |
221 | |
222 | %description utils | |
223 | Libvirt is a C toolkit to interact with the virtualization | |
224 | capabilities of recent versions of Linux. | |
225 | ||
226 | This package contains tools for the libvirt library. | |
227 | ||
148a9af3 JB |
228 | %description utils -l pl.UTF-8 |
229 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami | |
230 | wirtualizacji obecnych wersji Linuksa. | |
231 | ||
232 | Ten pakiet zawiera narzędzia do biblioteki libvirt. | |
233 | ||
621ed3d1 JB |
234 | %package lock-sanlock |
235 | Summary: Sanlock lock manager plugin for libvirt | |
236 | Summary(pl.UTF-8): Zarządca blokad sanlock dla biblioteki libvirt | |
237 | Group: Libraries | |
238 | Requires: %{name} = %{version}-%{release} | |
239 | ||
240 | %description lock-sanlock | |
241 | Sanlock lock manager plugin for libvirt. | |
242 | ||
243 | %description lock-sanlock -l pl.UTF-8 | |
244 | Zarządca blokad sanlock dla biblioteki libvirt. | |
245 | ||
94462445 ER |
246 | %prep |
247 | %setup -q | |
5296d739 | 248 | %patch0 -p1 |
a5db73fd | 249 | %patch1 -p1 |
d6de3d6a | 250 | %patch2 -p1 |
c8f65936 | 251 | %patch3 -p1 |
87bef338 | 252 | %patch4 -p1 |
5296d739 | 253 | |
2c74cc69 | 254 | # weird translations |
5296d739 | 255 | %{__rm} po/{my,eu_ES}.{po,gmo} |
94462445 | 256 | |
01260398 AF |
257 | mv po/vi_VN.po po/vi.po |
258 | mv po/vi_VN.gmo po/vi.gmo | |
259 | ||
94462445 | 260 | %build |
4e034fd2 AF |
261 | %{__libtoolize} |
262 | %{__aclocal} -I gnulib/m4 -I m4 | |
4e034fd2 | 263 | %{__autoconf} |
7ce5923d | 264 | %{__autoheader} |
4e034fd2 AF |
265 | %{__automake} |
266 | ||
267 | %configure \ | |
624d0ccc | 268 | PVCREATE=/sbin/pvcreate \ |
269 | VGCREATE=/sbin/vgcreate \ | |
270 | LVCREATE=/sbin/lvcreate \ | |
271 | PVREMOVE=/sbin/pvremove \ | |
272 | VGREMOVE=/sbin/vgremove \ | |
273 | LVREMOVE=/sbin/lvremove \ | |
274 | VGCHANGE=/sbin/vgchange \ | |
a1550d89 | 275 | LVCHANGE=/sbin/lvchange \ |
624d0ccc | 276 | VGSCAN=/sbin/vgscan \ |
277 | PVS=/sbin/pvs \ | |
278 | VGS=/sbin/vgs \ | |
279 | LVS=/sbin/lvs \ | |
7ce5923d | 280 | TC=/sbin/tc \ |
624d0ccc | 281 | BRCTL=/sbin/brctl \ |
5cbe4501 | 282 | ISCSIADM=/sbin/iscsiadm \ |
283 | SHOWMOUNT=/usr/sbin/showmount \ | |
7ce5923d JB |
284 | MOUNT=/bin/mount \ |
285 | UMOUNT=/bin/umount \ | |
286 | MKFS=/sbin/mkfs \ | |
36a3330a | 287 | SHOWMOUNT=/usr/sbin/showmount \ |
288 | IPTABLES_PATH=/usr/sbin/iptables \ | |
289 | IP6TABLES_PATH=/usr/sbin/ip6tables \ | |
d9fa538f | 290 | EBTABLES_PATH=/usr/sbin/ebtables \ |
7ce5923d JB |
291 | ISCSIADM=/sbin/iscsiadm \ |
292 | DNSMASQ=/usr/sbin/dnsmasq \ | |
293 | RADVD=/usr/sbin/radvd \ | |
294 | UDEVADM=/sbin/udevadm \ | |
621ed3d1 | 295 | MODPROBE=/sbin/modprobe \ |
bf949ec1 | 296 | SCRUB=/usr/bin/scrub \ |
621ed3d1 JB |
297 | --disable-silent-rules \ |
298 | --with-html-dir=%{_gtkdocdir} \ | |
299 | --with-html-subdir=%{name} \ | |
300 | --with-init-script=redhat \ | |
301 | --with-storage-lvm \ | |
bf949ec1 JR |
302 | --with-storage-fs \ |
303 | --with-storage-iscsi \ | |
304 | --with-storage-scsi \ | |
305 | --with-storage-mpath \ | |
306 | --with-storage-disk \ | |
307 | --with-macvtap \ | |
308 | --with-virtualport \ | |
309 | --with-scrub \ | |
621ed3d1 JB |
310 | --with-udev \ |
311 | --without-hal \ | |
bf949ec1 JR |
312 | --with-lxc \ |
313 | --with-vbox=%{_libdir}/VirtualBox \ | |
621ed3d1 JB |
314 | %{!?with_netcf:--without-netcf} \ |
315 | %{!?with_sanlock:--without-sanlock} \ | |
316 | %{!?with_qemu:--without-qemu} \ | |
317 | %{!?with_xen:--without-xen} \ | |
bf949ec1 JR |
318 | %{!?with_uml:--without-uml} \ |
319 | %{!?with_openvz:--without-openvz} \ | |
320 | %{!?with_phyp:--without-phyp} \ | |
321 | %{!?with_xenapi:--without-xenapi} \ | |
322 | %{!?with_libxl:--without-libxl} \ | |
323 | %{!?with_esx:--without-esx} \ | |
324 | %{!?with_hyperv:--without-hyperv} \ | |
325 | --x-libraries=%{_libdir} \ | |
326 | --with-init-script=systemd | |
7ce5923d JB |
327 | |
328 | %{__make} \ | |
329 | AWK=gawk | |
94462445 ER |
330 | |
331 | %install | |
332 | rm -rf $RPM_BUILD_ROOT | |
ed4dd5b7 JR |
333 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} \ |
334 | $RPM_BUILD_ROOT/usr/lib/tmpfiles.d | |
335 | ||
94462445 | 336 | %{__make} install \ |
46ab7552 | 337 | DEVHELP_DIR=%{_gtkdocdir}/%{name}/devhelp \ |
94462445 ER |
338 | DESTDIR=$RPM_BUILD_ROOT |
339 | ||
feec3441 | 340 | #install qemud/libvirtd.sysconf $RPM_BUILD_ROOT/etc/sysconfig/libvirtd |
e285e5e5 | 341 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/libvirtd |
ed4dd5b7 | 342 | install %{SOURCE2} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf |
e285e5e5 | 343 | |
5296d739 JB |
344 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
345 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
346 | %py_postclean | |
7f159b90 | 347 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.la |
5296d739 | 348 | |
621ed3d1 JB |
349 | %if %{with sanlock} |
350 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.{a,la} | |
351 | %endif | |
352 | ||
94462445 ER |
353 | %find_lang %{name} |
354 | ||
355 | %clean | |
356 | rm -rf $RPM_BUILD_ROOT | |
357 | ||
5296d739 JB |
358 | %post -p /sbin/ldconfig |
359 | %postun -p /sbin/ldconfig | |
94462445 | 360 | |
bf949ec1 JR |
361 | %post utils |
362 | %systemd_post libvirtd.service | |
363 | NORESTART=1 | |
364 | %systemd_post libvirt-guests.service | |
365 | ||
366 | %preun utils | |
367 | %systemd_preun libvirtd.service | |
368 | %systemd_preun libvirt-guests.service | |
369 | ||
370 | %postun utils | |
371 | %systemd_reload | |
372 | ||
94462445 ER |
373 | %files -f %{name}.lang |
374 | %defattr(644,root,root,755) | |
375 | %doc ChangeLog README TODO NEWS | |
5296d739 JB |
376 | %attr(755,root,root) %{_libdir}/libvirt.so.*.*.* |
377 | %attr(755,root,root) %ghost %{_libdir}/libvirt.so.0 | |
378 | %attr(755,root,root) %{_libdir}/libvirt-qemu.so.*.*.* | |
379 | %attr(755,root,root) %ghost %{_libdir}/libvirt-qemu.so.0 | |
8c29141c | 380 | %attr(755,root,root) %{_libdir}/libvirt_lxc |
36a3330a | 381 | %attr(755,root,root) %{_libdir}/libvirt_iohelper |
621ed3d1 JB |
382 | %attr(755,root,root) %{_libdir}/virt-aa-helper |
383 | %dir %{_libdir}/libvirt | |
fa6419a6 | 384 | %if %{with sanlock} |
621ed3d1 | 385 | %dir %{_libdir}/libvirt/lock-driver |
fa6419a6 | 386 | %endif |
e74f18c1 JR |
387 | %dir %{_datadir}/libvirt |
388 | %dir %{_datadir}/libvirt/schemas | |
a73c464c | 389 | %{_datadir}/libvirt/schemas/basictypes.rng |
feec3441 | 390 | %{_datadir}/libvirt/schemas/capability.rng |
391 | %{_datadir}/libvirt/schemas/domain.rng | |
a73c464c | 392 | %{_datadir}/libvirt/schemas/domaincommon.rng |
fa080175 | 393 | %{_datadir}/libvirt/schemas/domainsnapshot.rng |
feec3441 | 394 | %{_datadir}/libvirt/schemas/interface.rng |
395 | %{_datadir}/libvirt/schemas/network.rng | |
a73c464c | 396 | %{_datadir}/libvirt/schemas/networkcommon.rng |
feec3441 | 397 | %{_datadir}/libvirt/schemas/nodedev.rng |
4e034fd2 | 398 | %{_datadir}/libvirt/schemas/nwfilter.rng |
feec3441 | 399 | %{_datadir}/libvirt/schemas/secret.rng |
400 | %{_datadir}/libvirt/schemas/storageencryption.rng | |
401 | %{_datadir}/libvirt/schemas/storagepool.rng | |
402 | %{_datadir}/libvirt/schemas/storagevol.rng | |
3ac3cd0c | 403 | |
621ed3d1 JB |
404 | %if %{with sanlock} |
405 | %files lock-sanlock | |
406 | %attr(755,root,root) %{_sbindir}/virt-sanlock-cleanup | |
407 | %attr(755,root,root) %{_libdir}/libvirt/lock-driver/sanlock.so | |
408 | %dir /var/lib/libvirt/sanlock | |
409 | %{_mandir}/man8/virt-sanlock-cleanup.8* | |
410 | %endif | |
411 | ||
94462445 ER |
412 | %files devel |
413 | %defattr(644,root,root,755) | |
5296d739 JB |
414 | %attr(755,root,root) %{_libdir}/libvirt.so |
415 | %attr(755,root,root) %{_libdir}/libvirt-qemu.so | |
416 | %{_libdir}/libvirt.la | |
417 | %{_libdir}/libvirt-qemu.la | |
418 | %{_gtkdocdir}/%{name} | |
419 | %{_includedir}/%{name} | |
94462445 ER |
420 | %{_pkgconfigdir}/%{name}.pc |
421 | ||
422 | %files static | |
423 | %defattr(644,root,root,755) | |
5296d739 JB |
424 | %{_libdir}/libvirt.a |
425 | %{_libdir}/libvirt-qemu.a | |
94462445 ER |
426 | |
427 | %files -n python-%{name} | |
428 | %defattr(644,root,root,755) | |
429 | %doc %{_docdir}/%{name}-python-%{version} | |
a73c464c AM |
430 | %attr(755,root,root) %{py_sitedir}/libvirtmod.so |
431 | %attr(755,root,root) %{py_sitedir}/libvirtmod_qemu.so | |
5296d739 JB |
432 | %{py_sitedir}/libvirt.py[co] |
433 | %{py_sitedir}/libvirt_qemu.py[co] | |
94462445 ER |
434 | |
435 | %files utils | |
436 | %defattr(644,root,root,755) | |
437 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt | |
72b1baa0 | 438 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sasl/libvirt.conf |
e285e5e5 | 439 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirtd |
fa080175 | 440 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirt-guests |
36a3330a | 441 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd |
4e034fd2 AF |
442 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.lxc |
443 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.qemu | |
444 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.uml | |
bf949ec1 JR |
445 | %attr(754,root,root) /etc/rc.d/init.d/libvirtd |
446 | %attr(754,root,root) /etc/rc.d/init.d/libvirt-guests | |
447 | %{systemdunitdir}/libvirtd.service | |
448 | %{systemdunitdir}/libvirt-guests.service | |
449 | %config(noreplace) %verify(not md5 mtime size) /etc/sysctl.d/libvirtd | |
450 | %attr(755,root,root) %{_sbindir}/libvirtd | |
451 | %attr(755,root,root) %{_bindir}/virsh | |
452 | %attr(755,root,root) %{_bindir}/virt-host-validate | |
453 | %attr(755,root,root) %{_bindir}/virt-xml-validate | |
454 | %attr(755,root,root) %{_bindir}/virt-pki-validate | |
621ed3d1 | 455 | %attr(755,root,root) %{_libdir}/libvirt_parthelper |
5296d739 | 456 | %{?with_polkit:%{_datadir}/polkit-1/actions/org.libvirt.unix.policy} |
94462445 | 457 | %{_mandir}/man1/virsh.1* |
bf949ec1 | 458 | %{_mandir}/man1/virt-host-validate.1* |
3ac3cd0c | 459 | %{_mandir}/man1/virt-xml-validate.1* |
feec3441 | 460 | %{_mandir}/man1/virt-pki-validate.1* |
e4177f0c | 461 | %{_mandir}/man8/libvirtd.8* |
feec3441 | 462 | %{_datadir}/%{name}/*.xml |
fa080175 | 463 | %{_datadir}/augeas/lenses/*.aug |
464 | %{_datadir}/augeas/lenses/tests/*.aug | |
ed4dd5b7 | 465 | /usr/lib/tmpfiles.d/%{name}.conf |
621ed3d1 | 466 | %attr(711,root,root) %dir /var/cache/libvirt |
d5a575f6 | 467 | %dir /var/lib/libvirt |
621ed3d1 JB |
468 | %attr(711,root,root) %dir /var/lib/libvirt/boot |
469 | %dir /var/lib/libvirt/dnsmasq | |
470 | %attr(711,root,root) %dir /var/lib/libvirt/images | |
471 | %attr(700,root,root) %dir /var/lib/libvirt/lxc | |
472 | %attr(700,root,root) %dir /var/lib/libvirt/network | |
473 | %attr(700,root,root) %dir /var/lib/libvirt/uml | |
474 | %dir /var/log/libvirt | |
095e7dcb | 475 | %{?with_libxl:%attr(700,root,root) %dir /var/log/libvirt/libxl} |
621ed3d1 | 476 | %attr(700,root,root) %dir /var/log/libvirt/lxc |
095e7dcb | 477 | %{?with_uml:%attr(700,root,root) %dir /var/log/libvirt/uml} |
621ed3d1 JB |
478 | %dir /var/run/libvirt |
479 | %attr(700,root,root) %dir /var/run/libvirt/lxc | |
480 | %if %{with qemu} | |
481 | # %attr(750,qemu,qemu) ? | |
482 | %dir /var/cache/libvirt/qemu | |
483 | # %attr(750,qemu,qemu) ? | |
484 | %dir /var/lib/libvirt/qemu | |
485 | %attr(700,root,root) %dir /var/log/libvirt/qemu | |
486 | %attr(700,root,root) %dir /var/run/libvirt/qemu | |
487 | %endif |