]> git.pld-linux.org Git - packages/libvirt.git/blame - libvirt.spec
- fix deps
[packages/libvirt.git] / libvirt.spec
CommitLineData
94462445 1#
67b9040b
JR
2# TODO: - seems that lxc patch is not needed anymore, verify that before removing
3# - reenable libxl support as soon as libvirt supports XEN 4.2!
e7875b0f
JR
4#
5#
94462445 6# Conditional build:
c2a00b8b 7%bcond_without ceph # RADOS BD (Ceph) storage support
423a0b96
JR
8%bcond_without esx # VMware ESX support
9%bcond_without hyperv # Hyper-V support
67b9040b 10%bcond_with libxl # libxenlight support
423a0b96
JR
11%bcond_without lxc # LXC support
12%bcond_without netcf # host interfaces support
bf949ec1
JR
13%bcond_without openvz # OpenVZ support
14%bcond_without phyp # PHYP support
f2c82f45
JB
15%bcond_without polkit # PolicyKit support
16%bcond_without qemu # Qemu support
423a0b96
JR
17%bcond_without sanlock # sanlock storage lock manager
18%bcond_without uml # UML support
19%bcond_without vbox # VirtualBox support
20%bcond_without vmware # VMware Workstation/Player support
6865448d 21%bcond_without xenapi # Xen API (Citrix XenServer) support
f2c82f45 22%bcond_without xen # Xen support
94462445 23
148a9af3
JB
24# qemu available only on x86 and ppc
25%ifnarch %{ix86} %{x8664} ppc
26%undefine with_qemu
27%endif
bc484957 28# Xen is available only on x86 and ia64
94462445
ER
29%ifnarch %{ix86} %{x8664} ia64
30%undefine with_xen
31%endif
94462445 32Summary: Toolkit to interact with virtualization capabilities
148a9af3 33Summary(pl.UTF-8): Narzędzia współpracujące z funkcjami wirtualizacji
94462445 34Name: libvirt
67b9040b 35Version: 1.0.0
40e7715f 36Release: 2
148a9af3 37License: LGPL v2.1+
423a0b96 38Group: Libraries
21f7b4fc 39Source0: ftp://ftp.libvirt.org/libvirt/%{name}-%{version}.tar.gz
67b9040b 40# Source0-md5: 7c8b006de7338e30866bb56738803b21
e285e5e5 41Source1: %{name}.init
ed4dd5b7 42Source2: %{name}.tmpfiles
5296d739 43Patch0: %{name}-sasl.patch
a5db73fd 44Patch1: %{name}-lxc.patch
423a0b96
JR
45Patch2: %{name}-qemu-acl.patch
46Patch3: %{name}-xend.patch
5296d739 47URL: http://www.libvirt.org/
7ce5923d 48BuildRequires: audit-libs-devel
fa080175 49BuildRequires: augeas-devel
148a9af3 50BuildRequires: autoconf >= 2.50
69187f5d 51BuildRequires: automake
4e034fd2 52BuildRequires: avahi-devel >= 0.6.0
83426b5b 53%{?with_ceph:BuildRequires: ceph-devel}
4e034fd2 54BuildRequires: curl-devel >= 7.18.0
69187f5d 55BuildRequires: cyrus-sasl-devel
54247c34 56BuildRequires: dbus-devel >= 1.0.0
4e034fd2 57BuildRequires: device-mapper-devel >= 1.0.0
5cbe4501 58BuildRequires: gawk
7ce5923d 59BuildRequires: gettext-devel >= 0.17
4e034fd2 60BuildRequires: gnutls-devel >= 1.0.25
67b9040b 61BuildRequires: leveldb-devel
69187f5d 62BuildRequires: libapparmor-devel
7ce5923d
JB
63BuildRequires: libblkid-devel >= 2.17
64BuildRequires: libcap-ng-devel >= 0.4.0
65BuildRequires: libgcrypt-devel
54247c34 66BuildRequires: libnl-devel >= 3.2
7ce5923d
JB
67BuildRequires: libpcap-devel >= 1.0.0
68BuildRequires: libselinux-devel >= 2.0.82
e9ea35db 69BuildRequires: libssh2-devel >= 1.3
69187f5d 70BuildRequires: libstdc++-devel
71BuildRequires: libtool
6865448d 72%{?with_xenapi:BuildRequires: libxenserver-devel}
7ce5923d 73BuildRequires: libxml2-devel >= 1:2.6.0
fa080175 74BuildRequires: libxslt-devel
94462445 75BuildRequires: ncurses-devel
36a3330a 76%{?with_netcf:BuildRequires: netcf-devel >= 0.1.4}
69187f5d 77BuildRequires: numactl-devel
423a0b96
JR
78BuildRequires: openldap-devel
79BuildRequires: openwsman-devel >= 2.2.3
36a3330a 80BuildRequires: parted-devel >= 1.8.0
69187f5d 81BuildRequires: perl-tools-pod
36a3330a 82%{?with_polkit:BuildRequires: polkit >= 0.90}
69187f5d 83BuildRequires: pkgconfig
36a3330a 84BuildRequires: python
94462445
ER
85BuildRequires: python-devel
86BuildRequires: readline-devel
69187f5d 87BuildRequires: rpm-pythonprov
bf949ec1 88BuildRequires: rpmbuild(macros) >= 1.627
621ed3d1 89%{?with_sanlock:BuildRequires: sanlock-devel >= 0.8}
f2c82f45 90BuildRequires: udev-devel >= 1:145
bc484957 91%{?with_xen:BuildRequires: xen-devel >= 4.1.2}
94462445 92# For disk driver
7ce5923d 93BuildRequires: xorg-lib-libpciaccess-devel >= 0.10.0
36a3330a 94BuildRequires: yajl-devel
7ce5923d
JB
95Requires: curl-libs >= 7.18.0
96Requires: device-mapper >= 1.0.0
7ce5923d 97Requires: libcap-ng >= 0.4.0
54247c34 98Requires: libnl >= 3.2
7ce5923d
JB
99Requires: libpcap >= 1.0.0
100Requires: libselinux >= 2.0.82
e9ea35db 101Requires: libssh2 >= 1.3
7ce5923d 102Requires: libxml2 >= 1:2.6.0
fec4200b 103Requires: openwsman-libs >= 2.2.3
bf3e9ac8
JB
104Obsoletes: libvirt-daemon-esx
105Obsoletes: libvirt-daemon-hyperv
106Obsoletes: libvirt-daemon-openvz
107Obsoletes: libvirt-daemon-phyp
108Obsoletes: libvirt-daemon-vbox
109Obsoletes: libvirt-daemon-vmware
94462445
ER
110BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
111
94462445
ER
112%description
113Libvirt is a C toolkit to interact with the virtualization
114capabilities of recent versions of Linux.
115
116Virtualization of the Linux Operating System means the ability to run
117multiple instances of Operating Systems concurently on a single
118hardware system where the basic resources are driven by a Linux
119instance. The library aim at providing long term stable C API
120initially for the Xen paravirtualization but should be able to
121integrate other virtualization mechanisms if needed.
122
cf4bec93
JB
123This package contains the base libraries and configuration file.
124
148a9af3 125%description -l pl.UTF-8
423a0b96
JR
126Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji
127obecnych wersji Linuksa.
148a9af3
JB
128
129Wirtualizacja w systemie operacyjnym Linux oznacza możliwość
130jednoczesnego uruchamiania wielu instancji systemu operacyjnego na
131pojedynczym systemie sprzętowym, którego podstawowe zasoby są
132zarządzane przez instancję Linuksa. Celem biblioteki jest zapewnienie
133długotrwale stabilnego API C, początkowo do parawirtualizacji Xen, ale
134dającej się zintegrować w razie potrzeby z innymi mechanizmami
135wirtualizacji.
136
cf4bec93
JB
137Ten pakiet zawiera podstawowe biblioteki oraz plik konfiguracyjny.
138
94462445 139%package devel
148a9af3
JB
140Summary: Development files for programs using libvirt
141Summary(pl.UTF-8): Pliki programistyczne do programów wykorzystujących libvirt
94462445
ER
142Group: Development/Libraries
143Requires: %{name} = %{version}-%{release}
7f159b90
JB
144Requires: audit-libs-devel
145Requires: curl-devel >= 7.18.0
54247c34 146Requires: dbus-devel >= 1.0.0
7f159b90
JB
147Requires: device-mapper-devel >= 1.0.0
148Requires: gnutls-devel >= 1.0.25
149Requires: libapparmor-devel
150Requires: libcap-ng-devel >= 0.4.0
151Requires: libgcrypt-devel
54247c34 152Requires: libnl-devel >= 3.2
7f159b90
JB
153Requires: libpcap-devel >= 1.0.0
154Requires: libselinux-devel >= 2.0.82
155Requires: libxml2-devel >= 1:2.6.0
156Requires: numactl-devel
fec4200b 157Requires: openwsman-devel >= 2.2.3
94462445 158%{?with_xen:Requires: xen-devel}
7f159b90 159Requires: yajl-devel
94462445
ER
160
161%description devel
162Libvirt is a C toolkit to interact with the virtualization
163capabilities of recent versions of Linux.
164
148a9af3
JB
165This package contains the header files needed for developing programs
166using the libvirt library.
167
168%description devel -l pl.UTF-8
423a0b96
JR
169Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji
170obecnych wersji Linuksa.
148a9af3
JB
171
172Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
173wykorzystujących bibliotekę libvirt.
94462445
ER
174
175%package static
176Summary: Development static libraries for programs using libvirt
148a9af3 177Summary(pl.UTF-8): Statyczne biblioteki programistyczne do programów wykorzystujących libvirt
94462445 178Group: Development/Libraries
148a9af3 179Requires: %{name}-devel = %{version}-%{release}
94462445
ER
180
181%description static
182Libvirt is a C toolkit to interact with the virtualization
183capabilities of recent versions of Linux.
184
148a9af3
JB
185This package contains the static libraries for developing programs
186using the libvirt library.
187
188%description static -l pl.UTF-8
423a0b96
JR
189Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji
190obecnych wersji Linuksa.
148a9af3
JB
191
192Ten pakiet zawiera biblioteki statyczne do tworzenia programów
193wykorzystujących bibliotekę libvirt.
94462445 194
5296d739 195%package -n python-%{name}
94462445 196Summary: Python bindings to interact with virtualization capabilities
148a9af3 197Summary(pl.UTF-8): Wiązania Pythona do współpracy z funkcjami wirtualizacji
94462445
ER
198Group: Development/Languages/Python
199Requires: %{name} = %{version}-%{release}
200
201%description -n python-%{name}
202Libvirt is a C toolkit to interact with the virtualization
203capabilities of recent versions of Linux.
204
205This package contains the Python bindings for the libvirt library.
206
148a9af3 207%description -n python-%{name} -l pl.UTF-8
423a0b96
JR
208Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji
209obecnych wersji Linuksa.
148a9af3
JB
210
211Ten pakiet zawiera wiązania Pythona do biblioteki libvirt.
212
423a0b96
JR
213%package lock-sanlock
214Summary: Sanlock lock manager plugin for libvirt
215Summary(pl.UTF-8): Zarządca blokad sanlock dla biblioteki libvirt
216Group: Libraries
217Requires: %{name} = %{version}-%{release}
218
219%description lock-sanlock
220Sanlock lock manager plugin for libvirt.
221
222%description lock-sanlock -l pl.UTF-8
223Zarządca blokad sanlock dla biblioteki libvirt.
224
225%package daemon
226Summary: Server side daemon and supporting files for libvirt library
cf4bec93 227Summary(pl.UTF-8): Demon działający po stronie serwera oraz pliki wspierające dla biblioteki libvirt
423a0b96 228Group: Applications/System
94462445 229Requires: %{name} = %{version}-%{release}
7ce5923d 230Requires: avahi-libs >= 0.6.0
423a0b96 231Requires: iproute2
7ce5923d 232Requires: libblkid >= 2.17
423a0b96 233Provides: libvirt(hypervisor)
f2c82f45 234%{?with_netcf:Requires: netcf >= 0.1.4}
7ce5923d 235Requires: parted-libs >= 1.8.0
423a0b96
JR
236# Needed for probing the power management features of the host.
237Requires: pm-utils
bf949ec1 238Requires: systemd-units >= 37-0.10
f2c82f45 239Requires: udev-libs >= 1:145
423a0b96
JR
240Requires: util-linux
241Requires: virtual(module-tools)
7ce5923d 242Requires: xorg-lib-libpciaccess >= 0.10.0
423a0b96
JR
243Requires(post): systemd-units
244Requires(preun): systemd-units
245Requires(postun): systemd-units
624d0ccc 246Suggests: bridge-utils
423a0b96
JR
247Suggests: cyrus-sasl
248Suggests: cyrus-sasl-digest-md5
8a8149a9 249Suggests: dmidecode
423a0b96 250Suggests: dnsmasq >= 2.41
8a8149a9
JR
251Suggests: ebtables
252Suggests: gawk
423a0b96 253Suggests: glusterfs-client >= 2.0.1
8a8149a9 254Suggests: iptables
423a0b96
JR
255Suggests: iptables
256Suggests: libcgroup
624d0ccc 257Suggests: lvm2
423a0b96
JR
258Suggests: numad
259Suggests: open-iscsi
54247c34 260Suggests: parted >= 1.8.0
423a0b96 261Suggests: polkit >= 0.93
cdcb191c 262#Suggests: radvd
bf949ec1 263Suggests: scrub
57a80ac3 264#Suggests: sheepdog
94462445 265
423a0b96
JR
266%description daemon
267Server side daemon required to manage the virtualization capabilities
268of recent versions of Linux. Requires a hypervisor specific sub-RPM
269for specific drivers.
270
cf4bec93
JB
271%description daemon -l pl.UTF-8
272Demon działający po stronie serwera wymagany do zarządzania funkcjami
273wirtualizacji nowych wersji Linuksa. Wymaga podpakietu specyficznego
274dla hipernadzorcy.
275
423a0b96 276%package daemon-libxl
cf4bec93
JB
277Summary: Server side driver required to run XEN guests (xenlight)
278Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości XEN (xenlight)
279Group: Libraries
423a0b96
JR
280Requires: %{name}-daemon = %{version}-%{release}
281Requires: /usr/sbin/qcow-create
282Requires: xen
283Provides: libvirt(hypervisor)
284
285%description daemon-libxl
cf4bec93
JB
286Server side driver required to manage the virtualization capabilities
287of XEN via xenlight interface.
288
289%description daemon-libxl -l pl.UTF-8
290Sterownik wymagany po stronie serwera do zarządzania funkcjami
291wirtualizacji XEN poprzez interfejs xenlight.
423a0b96
JR
292
293%package daemon-lxc
cf4bec93
JB
294Summary: Server side driver required to run LXC guests
295Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości LXC
296Group: Libraries
423a0b96
JR
297Requires: %{name}-daemon = %{version}-%{release}
298Provides: libvirt(hypervisor)
299
300%description daemon-lxc
cf4bec93
JB
301Server side driver required to manage the virtualization capabilities
302of LXC.
303
304%description daemon-lxc -l pl.UTF-8
305Sterownik wymagany po stronie serwera do zarządzania funkcjami
306wirtualizacji LXC.
423a0b96 307
423a0b96 308%package daemon-qemu
cf4bec93
JB
309Summary: Server side driver required to run QEMU guests
310Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości QEMU
311Group: Libraries
423a0b96
JR
312Requires: %{name}-daemon = %{version}-%{release}
313Requires: /usr/bin/qemu-img
314Requires: qemu
315Requires: bzip2
316Requires: gzip
317Requires: lzop
318Requires: xz
319Provides: libvirt(hypervisor)
320
321%description daemon-qemu
cf4bec93
JB
322Server side driver required to manage the virtualization capabilities
323of the QEMU emulators.
324
325%description daemon-qemu -l pl.UTF-8
326Sterownik wymagany po stronie serwera do zarządzania funkcjami
327wirtualizacji emulatora QEMU.
423a0b96
JR
328
329%package daemon-uml
cf4bec93
JB
330Summary: Server side driver required to run UML guests
331Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości UML
332Group: Libraries
423a0b96
JR
333Requires: %{name}-daemon = %{version}-%{release}
334Provides: libvirt(hypervisor)
335
336%description daemon-uml
cf4bec93
JB
337Server side driver required to manage the virtualization capabilities
338of UML.
339
340%description daemon-uml -l pl.UTF-8
341Sterownik wymagany po stronie serwera do zarządzania funkcjami
342wirtualizacji UML.
423a0b96 343
423a0b96 344%package daemon-xen
cf4bec93
JB
345Summary: Server side driver required to run XEN guests
346Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości XEN
347Group: Libraries
423a0b96
JR
348Requires: %{name}-daemon = %{version}-%{release}
349Requires: /usr/sbin/qcow-create
350Requires: xen
351Requires: xen-xend
352Provides: libvirt(hypervisor)
353
354%description daemon-xen
cf4bec93
JB
355Server side driver required to manage the virtualization capabilities
356of XEN.
357
358%description daemon-xen -l pl.UTF-8
359Sterownik wymagany po stronie serwera do zarządzania funkcjami
360wirtualizacji XEN.
423a0b96
JR
361
362%package client
cf4bec93
JB
363Summary: Client side utilities of the libvirt library
364Summary(pl.UTF-8): Narzędzia klienckie do biblioteki libvirt
423a0b96
JR
365Group: Applications/System
366Requires: gettext >= 0.18.1.1-6
367Requires: gnutls >= 1.0.25
368Requires: netcat-openbsd
369Requires(post): systemd-units
370Requires(preun): systemd-units
371Requires(postun): systemd-units
372
373%description client
cf4bec93
JB
374Client binaries needed to access to the virtualization capabilities of
375recent versions of Linux (and other OSes).
376
377%description client -l pl.UTF-8
378Programy klienckie potrzebne do funkcji wirtualizacji nowych wersji
379Linuksa (oraz innych systemów operacyjnych).
423a0b96
JR
380
381%package utils
cf4bec93
JB
382Summary: Tools to interact with virtualization capabilities (metapackage)
383Summary(pl.UTF-8): Narzędzia do współpracy z funkcjami wirtualizacyjnymi (metapakiet)
423a0b96
JR
384Group: Applications/System
385Requires: %{name}-client = %{version}-%{release}
386Requires: %{name}-daemon = %{version}-%{release}
40e7715f 387%{?with_libxl:Requires: %{name}-daemon-libxl = %{version}-%{release}}
423a0b96 388Requires: %{name}-daemon-lxc = %{version}-%{release}
423a0b96
JR
389Requires: %{name}-daemon-qemu = %{version}-%{release}
390Requires: %{name}-daemon-uml = %{version}-%{release}
423a0b96
JR
391Requires: %{name}-daemon-xen = %{version}-%{release}
392
94462445
ER
393%description utils
394Libvirt is a C toolkit to interact with the virtualization
395capabilities of recent versions of Linux.
396
cf4bec93 397This is metapackage gathering all tools for the libvirt library.
94462445 398
148a9af3 399%description utils -l pl.UTF-8
423a0b96
JR
400Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji
401obecnych wersji Linuksa.
148a9af3 402
cf4bec93
JB
403To jest metapakiet zbierający wszystkie narzędzia przeznaczone dla
404biblioteki libvirt.
148a9af3 405
94462445
ER
406%prep
407%setup -q
5296d739 408%patch0 -p1
2d6e7f7e
JB
409# TODO
410#patch1 -p1
d6de3d6a 411%patch2 -p1
c8f65936 412%patch3 -p1
5296d739 413
2c74cc69 414# weird translations
5296d739 415%{__rm} po/{my,eu_ES}.{po,gmo}
94462445 416
01260398
AF
417mv po/vi_VN.po po/vi.po
418mv po/vi_VN.gmo po/vi.gmo
419
94462445 420%build
4e034fd2
AF
421%{__libtoolize}
422%{__aclocal} -I gnulib/m4 -I m4
4e034fd2 423%{__autoconf}
7ce5923d 424%{__autoheader}
4e034fd2
AF
425%{__automake}
426
427%configure \
624d0ccc 428 PVCREATE=/sbin/pvcreate \
429 VGCREATE=/sbin/vgcreate \
430 LVCREATE=/sbin/lvcreate \
431 PVREMOVE=/sbin/pvremove \
432 VGREMOVE=/sbin/vgremove \
433 LVREMOVE=/sbin/lvremove \
434 VGCHANGE=/sbin/vgchange \
a1550d89 435 LVCHANGE=/sbin/lvchange \
624d0ccc 436 VGSCAN=/sbin/vgscan \
437 PVS=/sbin/pvs \
438 VGS=/sbin/vgs \
439 LVS=/sbin/lvs \
7ce5923d 440 TC=/sbin/tc \
624d0ccc 441 BRCTL=/sbin/brctl \
5cbe4501 442 ISCSIADM=/sbin/iscsiadm \
443 SHOWMOUNT=/usr/sbin/showmount \
7ce5923d
JB
444 MOUNT=/bin/mount \
445 UMOUNT=/bin/umount \
446 MKFS=/sbin/mkfs \
36a3330a 447 SHOWMOUNT=/usr/sbin/showmount \
448 IPTABLES_PATH=/usr/sbin/iptables \
449 IP6TABLES_PATH=/usr/sbin/ip6tables \
d9fa538f 450 EBTABLES_PATH=/usr/sbin/ebtables \
7ce5923d
JB
451 ISCSIADM=/sbin/iscsiadm \
452 DNSMASQ=/usr/sbin/dnsmasq \
453 RADVD=/usr/sbin/radvd \
454 UDEVADM=/sbin/udevadm \
621ed3d1 455 MODPROBE=/sbin/modprobe \
bf949ec1 456 SCRUB=/usr/bin/scrub \
f4fa2857 457 OVSVSCTL=/usr/bin/ovs-vsctl \
423a0b96 458 NUMAD=/usr/bin/numad \
57a80ac3 459 COLLIE=/usr/sbin/collie \
621ed3d1
JB
460 --disable-silent-rules \
461 --with-html-dir=%{_gtkdocdir} \
462 --with-html-subdir=%{name} \
463 --with-init-script=redhat \
c2a00b8b 464 --with-storage-disk \
bf949ec1
JR
465 --with-storage-fs \
466 --with-storage-iscsi \
c2a00b8b 467 --with-storage-lvm \
bf949ec1 468 --with-storage-mpath \
c2a00b8b
JB
469 --with-storage-rbd%{!?with_ceph:=no} \
470 --with-storage-scsi \
57a80ac3 471 --with-storage-sheepdog \
bf949ec1
JR
472 --with-macvtap \
473 --with-virtualport \
621ed3d1 474 --with-udev \
423a0b96
JR
475 --with-libssh2 \
476 --with-avahi \
477 --with-audit \
478 --with-libblkid \
479 --with-macvtap \
480 --with-virtualport \
481 --with-numad \
482 --with-numactl \
483 --with-sasl \
484 --with-yajl \
485 --with-selinux \
486 --with-apparmor \
487 --with-qemu-user=qemu \
488 --with-qemu-group=qemu \
621ed3d1 489 --without-hal \
423a0b96
JR
490 --with-driver-modules \
491 %{__with_without polkit} \
492 %{__with_without esx} \
493 %{__with_without hyperv} \
494 %{__with_without libxl} \
495 %{__with_without lxc} \
496 %{__with_without netcf} \
497 %{__with_without openvz} \
498 %{__with_without phyp} \
499 %{__with_without qemu} \
500 %{__with_without sanlock} \
501 %{__with_without uml} \
502 %{__with_without vbox vbox %{_libdir}/VirtualBox} \
503 %{__with_without vmware} \
504 %{__with_without xen} \
505 %{__with_without xenapi} \
bf949ec1
JR
506 --x-libraries=%{_libdir} \
507 --with-init-script=systemd
7ce5923d
JB
508
509%{__make} \
510 AWK=gawk
94462445
ER
511
512%install
513rm -rf $RPM_BUILD_ROOT
ed4dd5b7 514install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} \
423a0b96 515 $RPM_BUILD_ROOT%{systemdtmpfilesdir}
ed4dd5b7 516
94462445 517%{__make} install \
46ab7552 518 DEVHELP_DIR=%{_gtkdocdir}/%{name}/devhelp \
94462445
ER
519 DESTDIR=$RPM_BUILD_ROOT
520
e285e5e5 521install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/libvirtd
423a0b96 522install %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
e285e5e5 523
5296d739
JB
524%py_comp $RPM_BUILD_ROOT%{py_sitedir}
525%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
526%py_postclean
7f159b90 527%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.la
5296d739 528
423a0b96
JR
529%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
530%{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.{a,la}
531
621ed3d1
JB
532%if %{with sanlock}
533%{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.{a,la}
534%endif
535
94462445
ER
536%find_lang %{name}
537
538%clean
539rm -rf $RPM_BUILD_ROOT
540
5296d739
JB
541%post -p /sbin/ldconfig
542%postun -p /sbin/ldconfig
94462445 543
423a0b96 544%post daemon
bf949ec1 545%systemd_post libvirtd.service
423a0b96
JR
546
547%preun daemon
548%systemd_preun libvirtd.service
549
550%postun daemon
551%systemd_reload
552
553%post client
bf949ec1
JR
554NORESTART=1
555%systemd_post libvirt-guests.service
556
423a0b96 557%preun client
bf949ec1
JR
558%systemd_preun libvirt-guests.service
559
423a0b96 560%postun client
bf949ec1
JR
561%systemd_reload
562
94462445
ER
563%files -f %{name}.lang
564%defattr(644,root,root,755)
565%doc ChangeLog README TODO NEWS
cf4bec93 566%dir %{_sysconfdir}/libvirt
423a0b96 567%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirt.conf
5296d739
JB
568%attr(755,root,root) %{_libdir}/libvirt.so.*.*.*
569%attr(755,root,root) %ghost %{_libdir}/libvirt.so.0
423a0b96 570%if %{with qemu}
5296d739
JB
571%attr(755,root,root) %{_libdir}/libvirt-qemu.so.*.*.*
572%attr(755,root,root) %ghost %{_libdir}/libvirt-qemu.so.0
fa6419a6 573%endif
423a0b96 574%dir %{_libdir}/libvirt
c47719f5 575%dir %{_datadir}/libvirt
3ac3cd0c 576
94462445
ER
577%files devel
578%defattr(644,root,root,755)
5296d739
JB
579%attr(755,root,root) %{_libdir}/libvirt.so
580%attr(755,root,root) %{_libdir}/libvirt-qemu.so
f4fa2857 581%{_datadir}/%{name}/api
5296d739
JB
582%{_gtkdocdir}/%{name}
583%{_includedir}/%{name}
94462445
ER
584%{_pkgconfigdir}/%{name}.pc
585
586%files static
587%defattr(644,root,root,755)
5296d739
JB
588%{_libdir}/libvirt.a
589%{_libdir}/libvirt-qemu.a
94462445
ER
590
591%files -n python-%{name}
592%defattr(644,root,root,755)
593%doc %{_docdir}/%{name}-python-%{version}
a73c464c
AM
594%attr(755,root,root) %{py_sitedir}/libvirtmod.so
595%attr(755,root,root) %{py_sitedir}/libvirtmod_qemu.so
5296d739
JB
596%{py_sitedir}/libvirt.py[co]
597%{py_sitedir}/libvirt_qemu.py[co]
94462445 598
cf4bec93
JB
599%if %{with sanlock}
600%files lock-sanlock
601%defattr(644,root,root,755)
602%attr(755,root,root) %{_sbindir}/virt-sanlock-cleanup
603%dir %{_libdir}/libvirt/lock-driver
604%attr(755,root,root) %{_libdir}/libvirt/lock-driver/sanlock.so
605%{_datadir}/augeas/lenses/libvirt_sanlock.aug
606%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
607%dir /var/lib/libvirt/sanlock
608%{_mandir}/man8/virt-sanlock-cleanup.8*
609%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu-sanlock.conf
610%endif
611
423a0b96 612%files daemon
94462445 613%defattr(644,root,root,755)
423a0b96 614%doc docs/*.xml
423a0b96
JR
615%dir %attr(700,root,root) %{_sysconfdir}/libvirt/nwfilter
616%dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu
617%dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks
618%dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks/autostart
619%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirtd.conf
620%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/default.xml
621%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
622%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/nwfilter/*.xml
72b1baa0 623%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sasl/libvirt.conf
e285e5e5 624%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirtd
bf949ec1 625%attr(754,root,root) /etc/rc.d/init.d/libvirtd
bf949ec1 626%{systemdunitdir}/libvirtd.service
bf949ec1 627%config(noreplace) %verify(not md5 mtime size) /etc/sysctl.d/libvirtd
423a0b96
JR
628%config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd
629%attr(755,root,root) %{_libdir}/libvirt_iohelper
621ed3d1 630%attr(755,root,root) %{_libdir}/libvirt_parthelper
423a0b96
JR
631%attr(755,root,root) %{_libdir}/virt-aa-helper
632%attr(755,root,root) %{_sbindir}/libvirtd
633%{_datadir}/augeas/lenses/libvirtd.aug
634%{_datadir}/augeas/lenses/tests/test_libvirtd.aug
5296d739 635%{?with_polkit:%{_datadir}/polkit-1/actions/org.libvirt.unix.policy}
e4177f0c 636%{_mandir}/man8/libvirtd.8*
d5a575f6 637%dir /var/lib/libvirt
621ed3d1 638%dir /var/lib/libvirt/dnsmasq
423a0b96 639%attr(711,root,root) %dir /var/lib/libvirt/boot
621ed3d1 640%attr(700,root,root) %dir /var/lib/libvirt/network
423a0b96
JR
641%attr(711,root,root) %dir /var/lib/libvirt/images
642%attr(711,root,root) %dir /var/lib/libvirt/filesystems
643%attr(700,root,root) %dir /var/log/libvirt
644%attr(711,root,root) %dir /var/cache/libvirt
621ed3d1 645%dir /var/run/libvirt
423a0b96
JR
646%dir /var/run/libvirt/network
647%{systemdtmpfilesdir}/%{name}.conf
648%dir %{_libdir}/libvirt/connection-driver
273917b1
JR
649%{?with_netcf:%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_interface.so}
650%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_network.so
651%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nodedev.so
652%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nwfilter.so
653%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_secret.so
654%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_storage.so
423a0b96 655
eae1555f 656%if %{with libxl}
423a0b96
JR
657%files daemon-libxl
658%defattr(644,root,root,755)
273917b1 659%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_libxl.so
423a0b96
JR
660%attr(700,root,root) %dir /var/lib/libvirt/libxl
661%attr(700,root,root) %dir /var/run/libvirt/libxl
662%attr(700,root,root) %dir /var/log/libvirt/libxl
663%endif
664
eae1555f 665%if %{with lxc}
423a0b96
JR
666%files daemon-lxc
667%defattr(644,root,root,755)
668%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/lxc.conf
669%config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.lxc
670%attr(700,root,root) %dir /var/lib/libvirt/lxc
621ed3d1 671%attr(700,root,root) %dir /var/run/libvirt/lxc
423a0b96
JR
672%attr(700,root,root) %dir /var/log/libvirt/lxc
673%{_datadir}/augeas/lenses/libvirtd_lxc.aug
674%{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
675%attr(755,root,root) %{_libdir}/libvirt_lxc
273917b1 676%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_lxc.so
423a0b96
JR
677%endif
678
621ed3d1 679%if %{with qemu}
423a0b96
JR
680%files daemon-qemu
681%defattr(644,root,root,755)
682%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu.conf
683%config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.qemu
684%attr(750,qemu,qemu) %dir /var/cache/libvirt/qemu
685%attr(750,qemu,qemu) %dir /var/lib/libvirt/qemu
621ed3d1
JB
686%attr(700,root,root) %dir /var/log/libvirt/qemu
687%attr(700,root,root) %dir /var/run/libvirt/qemu
423a0b96
JR
688%{_datadir}/augeas/lenses/libvirtd_qemu.aug
689%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
273917b1 690%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_qemu.so
423a0b96
JR
691%endif
692
eae1555f 693%if %{with uml}
423a0b96
JR
694%files daemon-uml
695%defattr(644,root,root,755)
273917b1 696%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_uml.so
423a0b96
JR
697%config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.uml
698%attr(700,root,root) %dir /var/lib/libvirt/uml
699%attr(700,root,root) %dir /var/run/libvirt/uml
700%attr(700,root,root) %dir /var/log/libvirt/uml
621ed3d1 701%endif
423a0b96 702
eae1555f 703%if %{with xen}
423a0b96
JR
704%files daemon-xen
705%defattr(644,root,root,755)
273917b1 706%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_xen.so
423a0b96
JR
707%endif
708
709%files client
710%defattr(644,root,root,755)
711%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirt-guests
712%attr(754,root,root) /etc/rc.d/init.d/libvirt-guests
713%{systemdunitdir}/libvirt-guests.service
714%attr(755,root,root) %{_bindir}/virsh
715%attr(755,root,root) %{_bindir}/virt-host-validate
716%attr(755,root,root) %{_bindir}/virt-xml-validate
717%attr(755,root,root) %{_bindir}/virt-pki-validate
718%{_mandir}/man1/virsh.1*
719%{_mandir}/man1/virt-host-validate.1*
720%{_mandir}/man1/virt-xml-validate.1*
721%{_mandir}/man1/virt-pki-validate.1*
423a0b96
JR
722%{_datadir}/libvirt/cpu_map.xml
723%dir %{_datadir}/libvirt/schemas
724%{_datadir}/libvirt/schemas/basictypes.rng
725%{_datadir}/libvirt/schemas/capability.rng
726%{_datadir}/libvirt/schemas/domain.rng
727%{_datadir}/libvirt/schemas/domaincommon.rng
728%{_datadir}/libvirt/schemas/domainsnapshot.rng
729%{_datadir}/libvirt/schemas/interface.rng
730%{_datadir}/libvirt/schemas/network.rng
731%{_datadir}/libvirt/schemas/networkcommon.rng
732%{_datadir}/libvirt/schemas/nodedev.rng
733%{_datadir}/libvirt/schemas/nwfilter.rng
734%{_datadir}/libvirt/schemas/secret.rng
735%{_datadir}/libvirt/schemas/storageencryption.rng
736%{_datadir}/libvirt/schemas/storagepool.rng
737%{_datadir}/libvirt/schemas/storagevol.rng
738
739%files utils
740%defattr(644,root,root,755)
This page took 0.219076 seconds and 4 git commands to generate.