]>
Commit | Line | Data |
---|---|---|
621ed3d1 | 1 | # xenapi (libxenserver), xenlight (libxenlight)? |
7ce5923d | 2 | # --with-driver-modules ? |
94462445 ER |
3 | # |
4 | # Conditional build: | |
bc484957 | 5 | %bcond_without xen # xen |
5296d739 | 6 | %bcond_without xen_proxy # Xen proxy |
94462445 | 7 | %bcond_without qemu # Qemu |
4e034fd2 | 8 | %bcond_without polkit # PolicyKit |
fa6419a6 | 9 | %bcond_with sanlock # sanlock storage lock manager |
36a3330a | 10 | %bcond_with netcf # host interfaces support |
bf949ec1 JR |
11 | %bcond_without uml # UML support |
12 | %bcond_without openvz # OpenVZ support | |
13 | %bcond_without phyp # PHYP support | |
14 | %bcond_without xenapi # XenAPI support | |
15 | %bcond_without libxl # libxenlight | |
16 | %bcond_without esx # ESX support | |
17 | %bcond_without hyperv # Hyper-V support | |
94462445 | 18 | |
148a9af3 JB |
19 | # qemu available only on x86 and ppc |
20 | %ifnarch %{ix86} %{x8664} ppc | |
21 | %undefine with_qemu | |
22 | %endif | |
bc484957 | 23 | # Xen is available only on x86 and ia64 |
94462445 ER |
24 | %ifnarch %{ix86} %{x8664} ia64 |
25 | %undefine with_xen | |
26 | %endif | |
94462445 ER |
27 | %if %{without xen} |
28 | %undefine with_xen_proxy | |
29 | %endif | |
30 | ||
94462445 | 31 | Summary: Toolkit to interact with virtualization capabilities |
148a9af3 | 32 | Summary(pl.UTF-8): Narzędzia współpracujące z funkcjami wirtualizacji |
94462445 | 33 | Name: libvirt |
85a20fc2 | 34 | Version: 0.9.10 |
27aa89c1 | 35 | Release: 4 |
148a9af3 | 36 | License: LGPL v2.1+ |
94462445 | 37 | Group: Base/Kernel |
94462445 | 38 | Source0: ftp://ftp.libvirt.org/libvirt/%{name}-%{version}.tar.gz |
85a20fc2 | 39 | # Source0-md5: a424bb793521e637349da47e93dd5fff |
e285e5e5 | 40 | Source1: %{name}.init |
ed4dd5b7 | 41 | Source2: %{name}.tmpfiles |
5296d739 | 42 | Patch0: %{name}-sasl.patch |
a5db73fd | 43 | Patch1: %{name}-lxc.patch |
d6de3d6a | 44 | Patch2: libvirt-qemu-acl.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 |
d15f5e97 AM |
203 | # /etc/init.d/libvirt-guests[37]: .: /usr/bin/gettext.sh: not found, some better split needed |
204 | Requires: gettext-devel | |
7ce5923d JB |
205 | Requires: libblkid >= 2.17 |
206 | Requires: parted-libs >= 1.8.0 | |
bf949ec1 | 207 | Requires: systemd-units >= 37-0.10 |
7ce5923d JB |
208 | Requires: udev-libs >= 145 |
209 | Requires: xorg-lib-libpciaccess >= 0.10.0 | |
8a8149a9 | 210 | Suggests: iptables |
624d0ccc | 211 | Suggests: bridge-utils |
8a8149a9 | 212 | Suggests: dmidecode |
624d0ccc | 213 | Suggests: dnsmasq |
8a8149a9 JR |
214 | Suggests: ebtables |
215 | Suggests: gawk | |
216 | Suggests: iptables | |
624d0ccc | 217 | Suggests: lvm2 |
8a8149a9 JR |
218 | # for management through ssh |
219 | Suggests: netcat-openbsd | |
7ce5923d | 220 | Suggests: polkit >= 0.90 |
bf949ec1 | 221 | Suggests: scrub |
94462445 ER |
222 | |
223 | %description utils | |
224 | Libvirt is a C toolkit to interact with the virtualization | |
225 | capabilities of recent versions of Linux. | |
226 | ||
227 | This package contains tools for the libvirt library. | |
228 | ||
148a9af3 JB |
229 | %description utils -l pl.UTF-8 |
230 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami | |
231 | wirtualizacji obecnych wersji Linuksa. | |
232 | ||
233 | Ten pakiet zawiera narzędzia do biblioteki libvirt. | |
234 | ||
621ed3d1 JB |
235 | %package lock-sanlock |
236 | Summary: Sanlock lock manager plugin for libvirt | |
237 | Summary(pl.UTF-8): Zarządca blokad sanlock dla biblioteki libvirt | |
238 | Group: Libraries | |
239 | Requires: %{name} = %{version}-%{release} | |
240 | ||
241 | %description lock-sanlock | |
242 | Sanlock lock manager plugin for libvirt. | |
243 | ||
244 | %description lock-sanlock -l pl.UTF-8 | |
245 | Zarządca blokad sanlock dla biblioteki libvirt. | |
246 | ||
94462445 ER |
247 | %prep |
248 | %setup -q | |
5296d739 | 249 | %patch0 -p1 |
a5db73fd | 250 | %patch1 -p1 |
d6de3d6a | 251 | %patch2 -p1 |
5296d739 | 252 | |
2c74cc69 | 253 | # weird translations |
5296d739 | 254 | %{__rm} po/{my,eu_ES}.{po,gmo} |
94462445 | 255 | |
01260398 AF |
256 | mv po/vi_VN.po po/vi.po |
257 | mv po/vi_VN.gmo po/vi.gmo | |
258 | ||
94462445 | 259 | %build |
4e034fd2 AF |
260 | %{__libtoolize} |
261 | %{__aclocal} -I gnulib/m4 -I m4 | |
4e034fd2 | 262 | %{__autoconf} |
7ce5923d | 263 | %{__autoheader} |
4e034fd2 AF |
264 | %{__automake} |
265 | ||
266 | %configure \ | |
624d0ccc | 267 | PVCREATE=/sbin/pvcreate \ |
268 | VGCREATE=/sbin/vgcreate \ | |
269 | LVCREATE=/sbin/lvcreate \ | |
270 | PVREMOVE=/sbin/pvremove \ | |
271 | VGREMOVE=/sbin/vgremove \ | |
272 | LVREMOVE=/sbin/lvremove \ | |
273 | VGCHANGE=/sbin/vgchange \ | |
a1550d89 | 274 | LVCHANGE=/sbin/lvchange \ |
624d0ccc | 275 | VGSCAN=/sbin/vgscan \ |
276 | PVS=/sbin/pvs \ | |
277 | VGS=/sbin/vgs \ | |
278 | LVS=/sbin/lvs \ | |
7ce5923d | 279 | TC=/sbin/tc \ |
624d0ccc | 280 | BRCTL=/sbin/brctl \ |
5cbe4501 | 281 | ISCSIADM=/sbin/iscsiadm \ |
282 | SHOWMOUNT=/usr/sbin/showmount \ | |
7ce5923d JB |
283 | MOUNT=/bin/mount \ |
284 | UMOUNT=/bin/umount \ | |
285 | MKFS=/sbin/mkfs \ | |
36a3330a | 286 | SHOWMOUNT=/usr/sbin/showmount \ |
287 | IPTABLES_PATH=/usr/sbin/iptables \ | |
288 | IP6TABLES_PATH=/usr/sbin/ip6tables \ | |
d9fa538f | 289 | EBTABLES_PATH=/usr/sbin/ebtables \ |
7ce5923d JB |
290 | ISCSIADM=/sbin/iscsiadm \ |
291 | DNSMASQ=/usr/sbin/dnsmasq \ | |
292 | RADVD=/usr/sbin/radvd \ | |
293 | UDEVADM=/sbin/udevadm \ | |
621ed3d1 | 294 | MODPROBE=/sbin/modprobe \ |
bf949ec1 | 295 | SCRUB=/usr/bin/scrub \ |
621ed3d1 JB |
296 | --disable-silent-rules \ |
297 | --with-html-dir=%{_gtkdocdir} \ | |
298 | --with-html-subdir=%{name} \ | |
299 | --with-init-script=redhat \ | |
300 | --with-storage-lvm \ | |
bf949ec1 JR |
301 | --with-storage-fs \ |
302 | --with-storage-iscsi \ | |
303 | --with-storage-scsi \ | |
304 | --with-storage-mpath \ | |
305 | --with-storage-disk \ | |
306 | --with-macvtap \ | |
307 | --with-virtualport \ | |
308 | --with-scrub \ | |
621ed3d1 JB |
309 | --with-udev \ |
310 | --without-hal \ | |
bf949ec1 JR |
311 | --with-lxc \ |
312 | --with-vbox=%{_libdir}/VirtualBox \ | |
621ed3d1 JB |
313 | %{!?with_netcf:--without-netcf} \ |
314 | %{!?with_sanlock:--without-sanlock} \ | |
315 | %{!?with_qemu:--without-qemu} \ | |
316 | %{!?with_xen:--without-xen} \ | |
bf949ec1 JR |
317 | %{!?with_uml:--without-uml} \ |
318 | %{!?with_openvz:--without-openvz} \ | |
319 | %{!?with_phyp:--without-phyp} \ | |
320 | %{!?with_xenapi:--without-xenapi} \ | |
321 | %{!?with_libxl:--without-libxl} \ | |
322 | %{!?with_esx:--without-esx} \ | |
323 | %{!?with_hyperv:--without-hyperv} \ | |
324 | --x-libraries=%{_libdir} \ | |
325 | --with-init-script=systemd | |
7ce5923d JB |
326 | |
327 | %{__make} \ | |
328 | AWK=gawk | |
94462445 ER |
329 | |
330 | %install | |
331 | rm -rf $RPM_BUILD_ROOT | |
ed4dd5b7 JR |
332 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} \ |
333 | $RPM_BUILD_ROOT/usr/lib/tmpfiles.d | |
334 | ||
94462445 | 335 | %{__make} install \ |
46ab7552 | 336 | DEVHELP_DIR=%{_gtkdocdir}/%{name}/devhelp \ |
94462445 ER |
337 | DESTDIR=$RPM_BUILD_ROOT |
338 | ||
feec3441 | 339 | #install qemud/libvirtd.sysconf $RPM_BUILD_ROOT/etc/sysconfig/libvirtd |
e285e5e5 | 340 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/libvirtd |
ed4dd5b7 | 341 | install %{SOURCE2} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf |
e285e5e5 | 342 | |
5296d739 JB |
343 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
344 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
345 | %py_postclean | |
7f159b90 | 346 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.la |
5296d739 | 347 | |
621ed3d1 JB |
348 | %if %{with sanlock} |
349 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.{a,la} | |
350 | %endif | |
351 | ||
94462445 ER |
352 | %find_lang %{name} |
353 | ||
354 | %clean | |
355 | rm -rf $RPM_BUILD_ROOT | |
356 | ||
5296d739 JB |
357 | %post -p /sbin/ldconfig |
358 | %postun -p /sbin/ldconfig | |
94462445 | 359 | |
bf949ec1 JR |
360 | %post utils |
361 | %systemd_post libvirtd.service | |
362 | NORESTART=1 | |
363 | %systemd_post libvirt-guests.service | |
364 | ||
365 | %preun utils | |
366 | %systemd_preun libvirtd.service | |
367 | %systemd_preun libvirt-guests.service | |
368 | ||
369 | %postun utils | |
370 | %systemd_reload | |
371 | ||
94462445 ER |
372 | %files -f %{name}.lang |
373 | %defattr(644,root,root,755) | |
374 | %doc ChangeLog README TODO NEWS | |
5296d739 JB |
375 | %attr(755,root,root) %{_libdir}/libvirt.so.*.*.* |
376 | %attr(755,root,root) %ghost %{_libdir}/libvirt.so.0 | |
377 | %attr(755,root,root) %{_libdir}/libvirt-qemu.so.*.*.* | |
378 | %attr(755,root,root) %ghost %{_libdir}/libvirt-qemu.so.0 | |
8c29141c | 379 | %attr(755,root,root) %{_libdir}/libvirt_lxc |
36a3330a | 380 | %attr(755,root,root) %{_libdir}/libvirt_iohelper |
621ed3d1 JB |
381 | %attr(755,root,root) %{_libdir}/virt-aa-helper |
382 | %dir %{_libdir}/libvirt | |
fa6419a6 | 383 | %if %{with sanlock} |
621ed3d1 | 384 | %dir %{_libdir}/libvirt/lock-driver |
fa6419a6 | 385 | %endif |
e74f18c1 JR |
386 | %dir %{_datadir}/libvirt |
387 | %dir %{_datadir}/libvirt/schemas | |
a73c464c | 388 | %{_datadir}/libvirt/schemas/basictypes.rng |
feec3441 | 389 | %{_datadir}/libvirt/schemas/capability.rng |
390 | %{_datadir}/libvirt/schemas/domain.rng | |
a73c464c | 391 | %{_datadir}/libvirt/schemas/domaincommon.rng |
fa080175 | 392 | %{_datadir}/libvirt/schemas/domainsnapshot.rng |
feec3441 | 393 | %{_datadir}/libvirt/schemas/interface.rng |
394 | %{_datadir}/libvirt/schemas/network.rng | |
a73c464c | 395 | %{_datadir}/libvirt/schemas/networkcommon.rng |
feec3441 | 396 | %{_datadir}/libvirt/schemas/nodedev.rng |
4e034fd2 | 397 | %{_datadir}/libvirt/schemas/nwfilter.rng |
feec3441 | 398 | %{_datadir}/libvirt/schemas/secret.rng |
399 | %{_datadir}/libvirt/schemas/storageencryption.rng | |
400 | %{_datadir}/libvirt/schemas/storagepool.rng | |
401 | %{_datadir}/libvirt/schemas/storagevol.rng | |
3ac3cd0c | 402 | |
621ed3d1 JB |
403 | %if %{with sanlock} |
404 | %files lock-sanlock | |
405 | %attr(755,root,root) %{_sbindir}/virt-sanlock-cleanup | |
406 | %attr(755,root,root) %{_libdir}/libvirt/lock-driver/sanlock.so | |
407 | %dir /var/lib/libvirt/sanlock | |
408 | %{_mandir}/man8/virt-sanlock-cleanup.8* | |
409 | %endif | |
410 | ||
94462445 ER |
411 | %files devel |
412 | %defattr(644,root,root,755) | |
5296d739 JB |
413 | %attr(755,root,root) %{_libdir}/libvirt.so |
414 | %attr(755,root,root) %{_libdir}/libvirt-qemu.so | |
415 | %{_libdir}/libvirt.la | |
416 | %{_libdir}/libvirt-qemu.la | |
417 | %{_gtkdocdir}/%{name} | |
418 | %{_includedir}/%{name} | |
94462445 ER |
419 | %{_pkgconfigdir}/%{name}.pc |
420 | ||
421 | %files static | |
422 | %defattr(644,root,root,755) | |
5296d739 JB |
423 | %{_libdir}/libvirt.a |
424 | %{_libdir}/libvirt-qemu.a | |
94462445 ER |
425 | |
426 | %files -n python-%{name} | |
427 | %defattr(644,root,root,755) | |
428 | %doc %{_docdir}/%{name}-python-%{version} | |
a73c464c AM |
429 | %attr(755,root,root) %{py_sitedir}/libvirtmod.so |
430 | %attr(755,root,root) %{py_sitedir}/libvirtmod_qemu.so | |
5296d739 JB |
431 | %{py_sitedir}/libvirt.py[co] |
432 | %{py_sitedir}/libvirt_qemu.py[co] | |
94462445 ER |
433 | |
434 | %files utils | |
435 | %defattr(644,root,root,755) | |
436 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt | |
72b1baa0 | 437 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sasl/libvirt.conf |
e285e5e5 | 438 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirtd |
fa080175 | 439 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirt-guests |
36a3330a | 440 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd |
4e034fd2 AF |
441 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.lxc |
442 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.qemu | |
443 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.uml | |
bf949ec1 JR |
444 | %attr(754,root,root) /etc/rc.d/init.d/libvirtd |
445 | %attr(754,root,root) /etc/rc.d/init.d/libvirt-guests | |
446 | %{systemdunitdir}/libvirtd.service | |
447 | %{systemdunitdir}/libvirt-guests.service | |
448 | %config(noreplace) %verify(not md5 mtime size) /etc/sysctl.d/libvirtd | |
449 | %attr(755,root,root) %{_sbindir}/libvirtd | |
450 | %attr(755,root,root) %{_bindir}/virsh | |
451 | %attr(755,root,root) %{_bindir}/virt-host-validate | |
452 | %attr(755,root,root) %{_bindir}/virt-xml-validate | |
453 | %attr(755,root,root) %{_bindir}/virt-pki-validate | |
621ed3d1 | 454 | %attr(755,root,root) %{_libdir}/libvirt_parthelper |
5296d739 | 455 | %{?with_polkit:%{_datadir}/polkit-1/actions/org.libvirt.unix.policy} |
94462445 | 456 | %{_mandir}/man1/virsh.1* |
bf949ec1 | 457 | %{_mandir}/man1/virt-host-validate.1* |
3ac3cd0c | 458 | %{_mandir}/man1/virt-xml-validate.1* |
feec3441 | 459 | %{_mandir}/man1/virt-pki-validate.1* |
e4177f0c | 460 | %{_mandir}/man8/libvirtd.8* |
feec3441 | 461 | %{_datadir}/%{name}/*.xml |
fa080175 | 462 | %{_datadir}/augeas/lenses/*.aug |
463 | %{_datadir}/augeas/lenses/tests/*.aug | |
ed4dd5b7 | 464 | /usr/lib/tmpfiles.d/%{name}.conf |
621ed3d1 | 465 | %attr(711,root,root) %dir /var/cache/libvirt |
d5a575f6 | 466 | %dir /var/lib/libvirt |
621ed3d1 JB |
467 | %attr(711,root,root) %dir /var/lib/libvirt/boot |
468 | %dir /var/lib/libvirt/dnsmasq | |
469 | %attr(711,root,root) %dir /var/lib/libvirt/images | |
470 | %attr(700,root,root) %dir /var/lib/libvirt/lxc | |
471 | %attr(700,root,root) %dir /var/lib/libvirt/network | |
472 | %attr(700,root,root) %dir /var/lib/libvirt/uml | |
473 | %dir /var/log/libvirt | |
474 | %attr(700,root,root) %dir /var/log/libvirt/lxc | |
475 | %attr(700,root,root) %dir /var/log/libvirt/uml | |
476 | %dir /var/run/libvirt | |
477 | %attr(700,root,root) %dir /var/run/libvirt/lxc | |
478 | %if %{with qemu} | |
479 | # %attr(750,qemu,qemu) ? | |
480 | %dir /var/cache/libvirt/qemu | |
481 | # %attr(750,qemu,qemu) ? | |
482 | %dir /var/lib/libvirt/qemu | |
483 | %attr(700,root,root) %dir /var/log/libvirt/qemu | |
484 | %attr(700,root,root) %dir /var/run/libvirt/qemu | |
485 | %endif |