forked from pool/libvirt
Accepting request 476767 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.1.0 - Modularize storage driver by splitting it into backend-specific subpackages - CVE-2017-2635, bsc#1027075 - Many incremental improvements and bug fixes, see http://libvirt.org/news.html - Dropped patches: b018ada3-shunloadtest-build-fix.patch, f86a7a83-libxl-dom0-balloon-fix.patch, 6e4759d0-libxl-timer-fix.patch, 87df87e0-libxl-timer-tsc-emulate.patch, b4386fda-xenconfig-timer-fix.patch, d3970925-timer-tests.patch, 321a28c6-libxl-default-disk-format.patch, bd116810-libxl-fix-disk-detach.patch, ff225538-libxl-autoballoon-setting.patch, c89a6e78-libxl-physinfo-cleanup.patch, d2b77608-libxl-maxmem-fix.patch, 79692c38-libxl-dom0-maxmem.patch, 4ab0c959-libxl-mem-leak.patch, 2dc1cf19-libxl-double-free.patch, apparmor-errormsg-fix.patch, apparmor-alt-seclabel.patch, qemu-disable-namespaces.patch OBS-URL: https://build.opensuse.org/request/show/476767 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=588
This commit is contained in:
198
libvirt.spec
198
libvirt.spec
@@ -175,7 +175,7 @@
|
||||
|
||||
Name: libvirt
|
||||
Url: http://libvirt.org/
|
||||
Version: 3.0.0
|
||||
Version: 3.1.0
|
||||
Release: 0
|
||||
Summary: Library providing a simple virtualization API
|
||||
License: LGPL-2.1+
|
||||
@@ -226,6 +226,10 @@ BuildRequires: pkgconfig(systemd)
|
||||
%if %{with_xen} || %{with_libxl}
|
||||
BuildRequires: xen-devel
|
||||
%endif
|
||||
%if %{with_qemu}
|
||||
# For managing ACLs
|
||||
BuildRequires: libacl-devel
|
||||
%endif
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libattr-devel
|
||||
BuildRequires: libgcrypt-devel
|
||||
@@ -313,24 +317,8 @@ Source4: libvirtd-relocation-server.fw
|
||||
Source99: baselibs.conf
|
||||
Source100: %{name}-rpmlintrc
|
||||
# Upstream patches
|
||||
Patch0: b018ada3-shunloadtest-build-fix.patch
|
||||
Patch1: f86a7a83-libxl-dom0-balloon-fix.patch
|
||||
Patch2: 6e4759d0-libxl-timer-fix.patch
|
||||
Patch3: 87df87e0-libxl-timer-tsc-emulate.patch
|
||||
Patch4: b4386fda-xenconfig-timer-fix.patch
|
||||
Patch5: d3970925-timer-tests.patch
|
||||
Patch6: 321a28c6-libxl-default-disk-format.patch
|
||||
Patch7: bd116810-libxl-fix-disk-detach.patch
|
||||
Patch8: ff225538-libxl-autoballoon-setting.patch
|
||||
Patch9: c89a6e78-libxl-physinfo-cleanup.patch
|
||||
Patch10: d2b77608-libxl-maxmem-fix.patch
|
||||
Patch11: 79692c38-libxl-dom0-maxmem.patch
|
||||
Patch12: 4ab0c959-libxl-mem-leak.patch
|
||||
Patch13: 2dc1cf19-libxl-double-free.patch
|
||||
# Patches pending upstream review
|
||||
Patch100: libxl-dom-reset.patch
|
||||
Patch101: apparmor-errormsg-fix.patch
|
||||
Patch102: apparmor-alt-seclabel.patch
|
||||
# Need to go upstream
|
||||
Patch150: xen-pv-cdrom.patch
|
||||
Patch151: blockcopy-check-dst-identical-device.patch
|
||||
@@ -355,10 +343,6 @@ Patch211: qemu-apparmor-screenshot.patch
|
||||
Patch212: libvirt-suse-netcontrol.patch
|
||||
Patch213: lxc-wait-after-eth-del.patch
|
||||
Patch214: libxl-qemu-emulator-caps.patch
|
||||
# Similar to upstream, temporarily disable qemu namespaces until all issues
|
||||
# are resolved. See
|
||||
# https://www.redhat.com/archives/libvir-list/2017-January/msg00790.html
|
||||
Patch300: qemu-disable-namespaces.patch
|
||||
# SLES-Only patches
|
||||
%if %{with_sle_build}
|
||||
Patch400: virt-create-rootfs.patch
|
||||
@@ -493,8 +477,8 @@ Requires: libvirt-daemon = %{version}-%{release}
|
||||
The secret driver plugin for the libvirtd daemon, providing
|
||||
an implementation of the secret key APIs.
|
||||
|
||||
%package daemon-driver-storage
|
||||
Summary: Storage driver plugin for the libvirtd daemon
|
||||
%package daemon-driver-storage-core
|
||||
Summary: Storage driver plugin including base backends for the libvirtd daemon
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libvirt-daemon = %{version}-%{release}
|
||||
Requires: nfs-utils
|
||||
@@ -504,15 +488,115 @@ Requires: util-linux
|
||||
# From QEMU RPMs
|
||||
Requires: /usr/bin/qemu-img
|
||||
%endif
|
||||
# For LVM drivers
|
||||
|
||||
%description daemon-driver-storage-core
|
||||
The storage driver plugin for the libvirtd daemon, providing
|
||||
an implementation of the storage APIs using files, local disks, LVM, SCSI,
|
||||
iSCSI, and multipath storage.
|
||||
|
||||
%package daemon-driver-storage-logical
|
||||
Summary: Storage driver plugin for lvm volumes
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libvirt-daemon-driver-storage-core = %{version}-%{release}
|
||||
Requires: lvm2
|
||||
# For ISCSI driver
|
||||
Requires: open-iscsi
|
||||
# For disk driver
|
||||
|
||||
%description daemon-driver-storage-logical
|
||||
The storage driver backend adding implementation of the storage APIs for block
|
||||
volumes using lvm.
|
||||
|
||||
%package daemon-driver-storage-disk
|
||||
Summary: Storage driver plugin for disk
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: device-mapper
|
||||
Requires: libvirt-daemon-driver-storage-core = %{version}-%{release}
|
||||
Requires: parted
|
||||
# For multipath support
|
||||
|
||||
%description daemon-driver-storage-disk
|
||||
The storage driver backend adding implementation of the storage APIs for block
|
||||
volumes using the host disks.
|
||||
|
||||
%package daemon-driver-storage-scsi
|
||||
Summary: Storage driver plugin for local scsi devices
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libvirt-daemon-driver-storage-core = %{version}-%{release}
|
||||
|
||||
%description daemon-driver-storage-scsi
|
||||
The storage driver backend adding implementation of the storage APIs for scsi
|
||||
host devices.
|
||||
|
||||
%package daemon-driver-storage-iscsi
|
||||
Summary: Storage driver plugin for iscsi
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libvirt-daemon-driver-storage-core = %{version}-%{release}
|
||||
Requires: open-iscsi
|
||||
|
||||
%description daemon-driver-storage-iscsi
|
||||
The storage driver backend adding implementation of the storage APIs for iscsi
|
||||
volumes using the host iscsi stack.
|
||||
|
||||
%package daemon-driver-storage-mpath
|
||||
Summary: Storage driver plugin for multipath volumes
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: device-mapper
|
||||
Requires: libvirt-daemon-driver-storage-core = %{version}-%{release}
|
||||
|
||||
%description daemon-driver-storage-mpath
|
||||
The storage driver backend adding implementation of the storage APIs for
|
||||
multipath storage using device mapper.
|
||||
|
||||
|
||||
%if %{with_storage_gluster}
|
||||
%package daemon-driver-storage-gluster
|
||||
Summary: Storage driver plugin for gluster
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libvirt-daemon-driver-storage-core = %{version}-%{release}
|
||||
|
||||
%description daemon-driver-storage-gluster
|
||||
The storage driver backend adding implementation of the storage APIs for gluster
|
||||
volumes using libgfapi.
|
||||
%endif
|
||||
|
||||
%if %{with_storage_rbd}
|
||||
%package daemon-driver-storage-rbd
|
||||
Summary: Storage driver plugin for rbd
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libvirt-daemon-driver-storage-core = %{version}-%{release}
|
||||
|
||||
%description daemon-driver-storage-rbd
|
||||
The storage driver backend adding implementation of the storage APIs for rbd
|
||||
volumes using the ceph protocol.
|
||||
%endif
|
||||
|
||||
%if %{with_storage_sheepdog}
|
||||
%package daemon-driver-storage-sheepdog
|
||||
Summary: Storage driver plugin for sheepdog
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libvirt-daemon-driver-storage-core = %{version}-%{release}
|
||||
Requires: sheepdog
|
||||
|
||||
%description daemon-driver-storage-sheepdog
|
||||
The storage driver backend adding implementation of the storage APIs for
|
||||
sheepdog volumes using.
|
||||
%endif
|
||||
|
||||
%package daemon-driver-storage
|
||||
Summary: Storage driver plugin including all backends for the libvirtd daemon
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libvirt-daemon-driver-storage-core = %{version}-%{release}
|
||||
Requires: libvirt-daemon-driver-storage-disk = %{version}-%{release}
|
||||
Requires: libvirt-daemon-driver-storage-iscsi = %{version}-%{release}
|
||||
Requires: libvirt-daemon-driver-storage-logical = %{version}-%{release}
|
||||
Requires: libvirt-daemon-driver-storage-mpath = %{version}-%{release}
|
||||
Requires: libvirt-daemon-driver-storage-scsi = %{version}-%{release}
|
||||
%if %{with_storage_gluster}
|
||||
Requires: libvirt-daemon-driver-storage-gluster = %{version}-%{release}
|
||||
%endif
|
||||
%if %{with_storage_rbd}
|
||||
Requires: libvirt-daemon-driver-storage-rbd = %{version}-%{release}
|
||||
%endif
|
||||
%if %{with_storage_sheepdog}
|
||||
Requires: libvirt-daemon-driver-storage-sheepdog = %{version}-%{release}
|
||||
%endif
|
||||
|
||||
%description daemon-driver-storage
|
||||
The storage driver plugin for the libvirtd daemon, providing
|
||||
@@ -528,7 +612,7 @@ Requires: libvirt-daemon = %{version}-%{release}
|
||||
# There really is a hard cross-driver dependency here
|
||||
Requires: /usr/bin/qemu-img
|
||||
Requires: libvirt-daemon-driver-network = %{version}-%{release}
|
||||
Requires: libvirt-daemon-driver-storage = %{version}-%{release}
|
||||
Requires: libvirt-daemon-driver-storage-core = %{version}-%{release}
|
||||
# For image compression
|
||||
Requires: bzip2
|
||||
Requires: gzip
|
||||
@@ -799,23 +883,7 @@ libvirt plugin for NSS for translating domain names into IP addresses.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
%patch9 -p1
|
||||
%patch10 -p1
|
||||
%patch11 -p1
|
||||
%patch12 -p1
|
||||
%patch13 -p1
|
||||
%patch100 -p1
|
||||
%patch101 -p1
|
||||
%patch102 -p1
|
||||
%patch150 -p1
|
||||
%patch151 -p1
|
||||
%patch152 -p1
|
||||
@@ -838,7 +906,6 @@ libvirt plugin for NSS for translating domain names into IP addresses.
|
||||
%patch212 -p1
|
||||
%patch213 -p1
|
||||
%patch214 -p1
|
||||
%patch300 -p1
|
||||
%if %{with_sle_build}
|
||||
%patch400 -p1
|
||||
%endif
|
||||
@@ -987,11 +1054,14 @@ export CFLAGS="$RPM_OPT_FLAGS"
|
||||
--with-storage-fs \
|
||||
--with-storage-lvm \
|
||||
--with-storage-iscsi \
|
||||
--with-storage-scsi \
|
||||
--with-storage-disk \
|
||||
--with-storage-mpath \
|
||||
%{?arg_storage_rbd} \
|
||||
%{?arg_storage_sheepdog} \
|
||||
%{?arg_storage_gluster} \
|
||||
--without-storage-zfs \
|
||||
--without-storage-vstorage \
|
||||
%{?arg_numactl} \
|
||||
%{?arg_numad} \
|
||||
--with-capng \
|
||||
@@ -1040,6 +1110,8 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lock-driver/*.la
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lock-driver/*.a
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/connection-driver/*.la
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/connection-driver/*.a
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/storage-backend/*.la
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/storage-backend/*.a
|
||||
# remove currently unsupported locale(s)
|
||||
for dir in $RPM_BUILD_ROOT/usr/share/locale/*
|
||||
do
|
||||
@@ -1438,9 +1510,43 @@ fi
|
||||
%{_libdir}/%{name}/connection-driver/libvirt_driver_secret.so
|
||||
|
||||
%files daemon-driver-storage
|
||||
|
||||
%files daemon-driver-storage-core
|
||||
%attr(0755, root, root) %{_libdir}/%{name}/libvirt_parthelper
|
||||
%dir %{_libdir}/%{name}/connection-driver
|
||||
%{_libdir}/%{name}/connection-driver/libvirt_driver_storage.so
|
||||
%dir %{_libdir}/%{name}/storage-backend
|
||||
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_fs.so
|
||||
|
||||
%files daemon-driver-storage-disk
|
||||
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_disk.so
|
||||
|
||||
%files daemon-driver-storage-logical
|
||||
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_logical.so
|
||||
|
||||
%files daemon-driver-storage-scsi
|
||||
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_scsi.so
|
||||
|
||||
%files daemon-driver-storage-iscsi
|
||||
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_iscsi.so
|
||||
|
||||
%files daemon-driver-storage-mpath
|
||||
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_mpath.so
|
||||
|
||||
%if %{with_storage_gluster}
|
||||
%files daemon-driver-storage-gluster
|
||||
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_gluster.so
|
||||
%endif
|
||||
|
||||
%if %{with_storage_rbd}
|
||||
%files daemon-driver-storage-rbd
|
||||
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_rbd.so
|
||||
%endif
|
||||
|
||||
%if %{with_storage_sheepdog}
|
||||
%files daemon-driver-storage-sheepdog
|
||||
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_sheepdog.so
|
||||
%endif
|
||||
|
||||
%if %{with_qemu}
|
||||
|
||||
|
Reference in New Issue
Block a user