]> TLD Linux GIT Repositories - packages/libvirt.git/blobdiff - libvirt.spec
- updated to 3.0.0, TLDized virtlockd and virtlogd init scripts
[packages/libvirt.git] / libvirt.spec
index b9bd489755bdf236344da2ba5d991d5fbfd8f8ed..29ff88ea6a1147b3cbf12721064f003c3034b316 100644 (file)
@@ -1,6 +1,5 @@
 # TODO:
 # - wireshark-dissector
-# - seems that lxc patch is not needed anymore, verify that before removing
 # - pldize virtlockd.init
 #
 # Conditional build:
@@ -23,6 +22,7 @@
 %bcond_without xenapi          # Xen API (Citrix XenServer) support
 %bcond_without xen             # Xen support
 %bcond_without static_libs     # static libraries build
+%bcond_without ldap            # don't require openldap-devel
 
 # qemu available only on x86 and ppc
 %ifnarch %{ix86} %{x8664} ppc
 Summary:       Toolkit to interact with virtualization capabilities
 Summary(pl.UTF-8):     Narzędzia współpracujące z funkcjami wirtualizacji
 Name:          libvirt
-Version:       1.3.3
+Version:       3.0.0
 Release:       1
 License:       LGPL v2.1+
 Group:         Libraries
-Source0:       ftp://ftp.libvirt.org/libvirt/%{name}-%{version}.tar.gz
-# Source0-md5: 698e0949a41a2b669dbe374759aaa64b
-Source1:       %{name}.init
+Source0:       http://libvirt.org/sources/libvirt-%{version}.tar.xz
+# Source0-md5: 7a24f2ef34e768b654cb689a985cc7aa
+Source1:       libvirtd.init
+Source2:       virtlockd.init
+Source3:       virtlogd.init
 Patch0:                %{name}-sasl.patch
-Patch2:                %{name}-qemu-acl.patch
-Patch3:                %{name}-xend.patch
-Patch5:                %{name}-udevadm-settle.patch
-Patch7:                bashisms.patch
-Patch8:                %{name}-guests.init.patch
-Patch9:                %{name}-sysctl-dir.patch
+Patch1:                %{name}-qemu-acl.patch
+Patch2:                %{name}-udevadm-settle.patch
+Patch3:                bashisms.patch
+Patch4:                %{name}-guests.init.patch
+Patch5:                %{name}-sysctl-dir.patch
 URL:           http://www.libvirt.org/
 BuildRequires: audit-libs-devel
 BuildRequires: augeas-devel
@@ -84,17 +85,16 @@ BuildRequires:      libxslt-devel
 BuildRequires: ncurses-devel
 %{?with_netcf:BuildRequires:   netcf-devel >= 0.2.0}
 BuildRequires: numactl-devel
-BuildRequires: openldap-devel
+%{?with_ldap:BuildRequires:    openldap-devel}
 %{?with_hyperv:BuildRequires:  openwsman-devel >= 2.2.3}
 BuildRequires: parted-devel >= 1.8.0
 BuildRequires: pkgconfig
-BuildRequires: polkit
+%{?with_polkit:BuildRequires:  polkit}
 %{?with_polkit:BuildRequires:  polkit-devel >= 0.90}
 BuildRequires: readline-devel
 BuildRequires: rpmbuild(macros) >= 1.627
 %{?with_sanlock:BuildRequires: sanlock-devel >= 0.8}
 %{?with_systemtap:BuildRequires:       systemtap-sdt-devel}
-BuildRequires: sheepdog
 BuildRequires: udev-devel >= 1:145
 %{?with_xen:BuildRequires:     xen-devel >= 4.2}
 # For disk driver
@@ -337,7 +337,6 @@ Group:              Libraries
 Requires:      %{name}-daemon = %{version}-%{release}
 Requires:      /usr/sbin/qcow-create
 Requires:      xen
-Requires:      xen-xend
 Provides:      libvirt(hypervisor)
 
 %description daemon-xen
@@ -376,7 +375,7 @@ Requires:   %{name}-daemon = %{version}-%{release}
 %{?with_libxl:Requires:        %{name}-daemon-libxl = %{version}-%{release}}
 Requires:      %{name}-daemon-lxc = %{version}-%{release}
 Requires:      %{name}-daemon-qemu = %{version}-%{release}
-Requires:      %{name}-daemon-uml = %{version}-%{release}
+%{?with_uml:Requires:  %{name}-daemon-uml = %{version}-%{release}}
 Requires:      %{name}-daemon-xen = %{version}-%{release}
 
 %description utils
@@ -408,12 +407,11 @@ Sondy systemtap/dtrace dla libvirt.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 %patch5 -p1
-%patch7 -p1
-%patch8 -p1
-%patch9 -p1
 
 %build
 %{__libtoolize}
@@ -454,7 +452,7 @@ Sondy systemtap/dtrace dla libvirt.
        SCRUB=/usr/bin/scrub \
        OVSVSCTL=/usr/bin/ovs-vsctl \
        NUMAD=/usr/bin/numad \
-       COLLIE=/usr/sbin/collie \
+       SHEEPDOGCLI=/usr/sbin/collie \
        --disable-silent-rules \
        %{?with_static_libs:--enable-static} \
        --with-html-dir=%{_gtkdocdir} \
@@ -518,6 +516,8 @@ install -d $RPM_BUILD_ROOT/etc/{sysconfig,sysctl.d,rc.d/init.d}
        DESTDIR=$RPM_BUILD_ROOT
 
 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/libvirtd
+install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/virtlockd
+install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/virtlogd
 
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.la \
@@ -539,11 +539,19 @@ rm -rf $RPM_BUILD_ROOT
 %post daemon
 /sbin/chkconfig --add libvirtd
 %service libvirtd restart
+/sbin/chkconfig --add virtlockd
+%service virtlockd restart
+/sbin/chkconfig --add virtlogd
+%service virtlogd restart
 
 %preun daemon
 if [ "$1" = "0" ]; then
        %service -q libvirtd stop
        /sbin/chkconfig --del libvirtd
+       %service -q virtlockd stop
+       /sbin/chkconfig --del virtlockd
+       %service -q virtlogd stop
+       /sbin/chkconfig --del virtlogd
 fi
 
 %post client
@@ -562,7 +570,8 @@ fi
 %doc ChangeLog README TODO NEWS
 %dir %{_sysconfdir}/libvirt
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirt.conf
-%attr(755,root,root) %{_libdir}/libnss_libvirt.so.2
+%attr(755,root,root) %{_libdir}/libnss_libvirt.so.?
+%attr(755,root,root) %{_libdir}/libnss_libvirt_guest.so.?
 %attr(755,root,root) %{_libdir}/libvirt.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libvirt.so.0
 %attr(755,root,root) %{_libdir}/libvirt-admin.so.*.*.*
@@ -576,7 +585,7 @@ fi
 
 %dir %{_libdir}/libvirt
 %dir %{_datadir}/libvirt
-%{_datadir}/libvirt/libvirtLogo.png
+%{_datadir}/libvirt/test-screenshot.png
 
 %files devel
 %defattr(644,root,root,755)
@@ -588,6 +597,7 @@ fi
 %{_gtkdocdir}/%{name}
 %{_includedir}/%{name}
 %{_pkgconfigdir}/libvirt.pc
+%{_pkgconfigdir}/libvirt-admin.pc
 %{?with_lxc:%{_pkgconfigdir}/libvirt-lxc.pc}
 %{_pkgconfigdir}/libvirt-qemu.pc
 
@@ -674,7 +684,7 @@ fi
 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nwfilter.so
 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_secret.so
 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_storage.so
-%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_vbox.so
+%{?with_vbox:%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_vbox.so}
 %dir %{_libdir}/libvirt/lock-driver
 %attr(755,root,root) %{_libdir}/libvirt/lock-driver/lockd.so
 
@@ -760,6 +770,7 @@ fi
 %dir %{_datadir}/libvirt/schemas
 %{_datadir}/libvirt/schemas/basictypes.rng
 %{_datadir}/libvirt/schemas/capability.rng
+%{_datadir}/libvirt/schemas/cputypes.rng
 %{_datadir}/libvirt/schemas/domain.rng
 %{_datadir}/libvirt/schemas/domaincaps.rng
 %{_datadir}/libvirt/schemas/domaincommon.rng