diff --git a/SPECS/libvirt.spec b/SPECS/libvirt.spec index 53f2d76..3f3c321 100644 --- a/SPECS/libvirt.spec +++ b/SPECS/libvirt.spec @@ -1,45 +1,66 @@ -%global enable_autotools 0 -%define supported_platform 1 -%define _vpath_builddir %{_target_platform} -%define with_qemu 1 -%define with_qemu_kvm 1 -%define with_qemu_tcg 1 -%define qemu_kvm_arches x86_64 ppc64 ppc64le aarch64 s390x -%define with_lxc 1 -%define with_libxl 0 -%define with_vbox 0 -%define with_openvz 0 -%define with_vmware 1 -%define with_esx 1 -%define with_hyperv 1 -%define with_storage_sheepdog 0 -%define with_storage_gluster 1 -%define with_storage_rbd 1 -%define with_storage_zfs 0 -%define with_storage_iscsi_direct 0 -%define with_fuse 1 -%define with_sanlock 1 -%define with_numad 1 -%define with_numactl 1 -%define with_firewalld 0 -%define with_firewalld_zone 0 -%define with_libssh2 1 -%define with_libssh 1 -%define with_wireshark 0 -%define wireshark_plugindir %(pkg-config --variable plugindir wireshark)/epan -%define with_bash_completion 1 -%define qemu_user qemu -%define qemu_group qemu -%define enable_werror --disable-werror +# -*- rpm-spec -*- +%define supported_platform 1 +%define _vpath_builddir %{_target_platform} +%define arches_qemu_kvm x86_64 %{power64} aarch64 s390x +%define arches_64bit x86_64 %{power64} aarch64 s390x riscv64 +%define arches_x86 %{ix86} x86_64 +%define arches_systemtap_64bit %{arches_64bit} +%define arches_dmidecode %{arches_x86} +%define arches_xen %{arches_x86} aarch64 +%define arches_vbox %{arches_x86} +%define arches_ceph %{arches_64bit} +%define arches_zfs %{arches_x86} %{power64} %{arm} +%define arches_numactl %{arches_x86} %{power64} aarch64 +%define arches_numad %{arches_x86} %{power64} aarch64 +%define with_qemu 1 +%define with_lxc 1 +%define with_libxl 0 +%define with_vbox 0 +%define with_qemu_kvm %{with_qemu} +%define with_qemu_tcg %{with_qemu} +%define with_openvz 0 +%define with_vmware 0 +%define with_esx 0 +%define with_hyperv 0 +%define with_storage_rbd 1 +%define with_storage_sheepdog 0 +%define with_storage_gluster 1 +%define with_storage_iscsi_direct 0 +%define with_numactl 1 +%define with_fuse 1 +%define with_sanlock 1 +%define with_numad 1 +%define with_netcf 1 +%define with_libssh2 1 +%define with_libssh 1 +%ifarch x86_64 +%define with_dmidecode 1 +%else +%define with_dmidecode 0 +%endif +%define with_storage_zfs 0 +%define with_storage_rbd 0 +%define with_firewalld_zone 0 +%define with_wireshark 0 +%define wireshark_plugindir %(pkg-config --variable plugindir wireshark)/epan +%define qemu_user qemu +%define qemu_group qemu +%define enable_werror -Dwerror=true %define tls_priority "@LIBVIRT,SYSTEM" + Summary: Library providing a simple virtualization API Name: libvirt -Version: 6.6.0 +Version: 7.2.0 Release: 1%{?dist} License: LGPLv2+ URL: https://libvirt.org/ -Source: https://libvirt.org/sources/libvirt-%{version}.tar.xz + +%if %(echo %{version} | grep -q "\.0$"; echo $?) == 1 + %define mainturl stable_updates/ +%endif +Source: https://libvirt.org/sources/%{?mainturl}libvirt-%{version}.tar.xz + Requires: libvirt-daemon = %{version}-%{release} Requires: libvirt-daemon-config-network = %{version}-%{release} Requires: libvirt-daemon-config-nwfilter = %{version}-%{release} @@ -68,35 +89,22 @@ Requires: libvirt-daemon-driver-nodedev = %{version}-%{release} Requires: libvirt-client = %{version}-%{release} Requires: libvirt-libs = %{version}-%{release} -# All build-time requirements. Run-time requirements are -# listed against each sub-RPM -%if 0%{?enable_autotools} -BuildRequires: autoconf -BuildRequires: automake -BuildRequires: gettext-devel -BuildRequires: libtool -%endif -#BuildRequires: python3-docutils +BuildRequires: python3-docutils BuildRequires: gcc +BuildRequires: meson >= 0.54.0 +BuildRequires: ninja-build BuildRequires: git -%if 0%{?fedora} || 0%{?rhel} > 7 -BuildRequires: perl-interpreter -%else BuildRequires: perl -%endif BuildRequires: python3 BuildRequires: systemd-units %if %{with_libxl} BuildRequires: xen-devel %endif -BuildRequires: glib2-devel >= 2.48 +BuildRequires: glib2-devel >= 2.56 BuildRequires: libxml2-devel BuildRequires: libxslt BuildRequires: readline-devel -%if %{with_bash_completion} BuildRequires: bash-completion >= 2.0 -%endif -BuildRequires: ncurses-devel BuildRequires: gettext BuildRequires: libtasn1-devel BuildRequires: gnutls-devel @@ -176,13 +184,14 @@ BuildRequires: fuse-devel >= 2.8.6 %if %{with_libssh2} BuildRequires: libssh2-devel >= 1.3.0 %endif - +%if %{with_netcf} BuildRequires: netcf-devel >= 0.2.2 +%endif %if %{with_esx} BuildRequires: libcurl-devel %endif %if %{with_hyperv} -BuildRequires: libwsman-devel >= 2.2.3 +BuildRequires: libwsman-devel >= 2.6.3 %endif BuildRequires: audit-libs-devel # we need /usr/sbin/dtrace @@ -193,9 +202,6 @@ BuildRequires: util-linux # For showmount in FS driver (netfs discovery) BuildRequires: nfs-utils -# Communication with the firewall and polkit daemons use DBus -BuildRequires: dbus-devel - # Fedora build root suckage BuildRequires: gawk @@ -207,18 +213,21 @@ BuildRequires: numad %endif %if %{with_wireshark} -BuildRequires: wireshark-devel >= 2.4.0 +BuildRequires: wireshark-devel %endif %if %{with_libssh} BuildRequires: libssh-devel >= 0.7.0 %endif +# On RHEL-7 rpcgen is still part of glibc-common package %if 0%{?fedora} || 0%{?rhel} > 7 BuildRequires: rpcgen -BuildRequires: libtirpc-devel %endif +BuildRequires: libtirpc-devel + +# Needed for the firewalld_reload macro %if %{with_firewalld_zone} BuildRequires: firewalld-filesystem %endif @@ -258,7 +267,7 @@ Requires: iproute-tc %endif Requires: polkit >= 0.112 -%ifarch %{ix86} x86_64 ia64 +%if %{with_dmidecode} # For virConnectGetSysinfo Requires: dmidecode %endif @@ -331,6 +340,10 @@ Requires: libvirt-daemon = %{version}-%{release} Requires: libvirt-libs = %{version}-%{release} # needed for device enumeration Requires: systemd >= 185 +# For managing persistent mediated devices +%if 0%{?fedora} || 0%{?rhel} > 7 +Requires: mdevctl +%endif %description daemon-driver-nodedev The nodedev driver plugin for the libvirtd daemon, providing @@ -342,13 +355,13 @@ capabilities. Summary: Interface driver plugin for the libvirtd daemon Requires: libvirt-daemon = %{version}-%{release} Requires: libvirt-libs = %{version}-%{release} +%if %{with_netcf} Requires: netcf-libs >= 0.2.2 +%endif %description daemon-driver-interface The interface driver plugin for the libvirtd daemon, providing -an implementation of the network interface APIs using the -netcf library - +an implementation of the host network interface APIs. %package daemon-driver-secret Summary: Secret driver plugin for the libvirtd daemon @@ -549,6 +562,9 @@ Requires: xz %if 0%{?fedora} || 0%{?rhel} > 7 Requires: systemd-container %endif + %if 0%{?fedora} || 0%{?rhel} > 7 +Requires: swtpm-tools + %endif %description daemon-driver-qemu The qemu driver plugin for the libvirtd daemon, providing @@ -704,15 +720,11 @@ capabilities of VirtualBox %package client Summary: Client side utilities of the libvirt library Requires: %{name}-libs = %{version}-%{release} -Requires: readline -Requires: ncurses # Needed by /usr/libexec/libvirt-guests.sh script. Requires: gettext # Needed by virt-pki-validate script. Requires: gnutls-utils -%if %{with_bash_completion} Requires: %{name}-bash-completion = %{version}-%{release} -%endif %description client The client binaries needed to access the virtualization @@ -732,26 +744,21 @@ Shared libraries for accessing the libvirt daemon. %package admin Summary: Set of tools to control libvirt daemon Requires: %{name}-libs = %{version}-%{release} -Requires: readline -%if %{with_bash_completion} Requires: %{name}-bash-completion = %{version}-%{release} -%endif %description admin The client side utilities to control the libvirt daemon. -%if %{with_bash_completion} %package bash-completion Summary: Bash completion script %description bash-completion Bash completion script stub. -%endif %if %{with_wireshark} %package wireshark Summary: Wireshark dissector plugin for libvirt RPC transactions -Requires: wireshark >= 2.4.0 +Requires: wireshark Requires: %{name}-libs = %{version}-%{release} %description wireshark @@ -804,226 +811,238 @@ Libvirt plugin for NSS for translating domain names into IP addresses. %autosetup -S git_am %build + +%if 0%{?fedora} == 34 + # binutils change in F34 broke linking of tests + # https://bugzilla.redhat.com/show_bug.cgi?id=1889763 + %define _lto_cflags %{nil} +%endif + %if ! %{supported_platform} echo "This RPM requires either Fedora >= %{min_fedora} or RHEL >= %{min_rhel}" exit 1 %endif %if %{with_qemu} - %define arg_qemu --with-qemu + %define arg_qemu -Ddriver_qemu=enabled %else - %define arg_qemu --without-qemu + %define arg_qemu -Ddriver_qemu=disabled %endif %if %{with_openvz} - %define arg_openvz --with-openvz + %define arg_openvz -Ddriver_openvz=enabled %else - %define arg_openvz --without-openvz + %define arg_openvz -Ddriver_openvz=disabled %endif %if %{with_lxc} - %define arg_lxc --with-lxc - %define arg_login_shell --with-login-shell + %define arg_lxc -Ddriver_lxc=enabled + %define arg_login_shell -Dlogin_shell=enabled %else - %define arg_lxc --without-lxc - %define arg_login_shell --without-login-shell + %define arg_lxc -Ddriver_lxc=disabled + %define arg_login_shell -Dlogin_shell=disabled %endif %if %{with_vbox} - %define arg_vbox --with-vbox + %define arg_vbox -Ddriver_vbox=enabled %else - %define arg_vbox --without-vbox + %define arg_vbox -Ddriver_vbox=disabled %endif %if %{with_libxl} - %define arg_libxl --with-libxl + %define arg_libxl -Ddriver_libxl=enabled %else - %define arg_libxl --without-libxl + %define arg_libxl -Ddriver_libxl=disabled %endif %if %{with_esx} - %define arg_esx --with-esx + %define arg_esx -Ddriver_esx=enabled -Dcurl=enabled %else - %define arg_esx --without-esx + %define arg_esx -Ddriver_esx=disabled -Dcurl=disabled %endif %if %{with_hyperv} - %define arg_hyperv --with-hyperv + %define arg_hyperv -Ddriver_hyperv=enabled -Dopenwsman=enabled %else - %define arg_hyperv --without-hyperv + %define arg_hyperv -Ddriver_hyperv=disabled -Dopenwsman=disabled %endif %if %{with_vmware} - %define arg_vmware --with-vmware + %define arg_vmware -Ddriver_vmware=enabled %else - %define arg_vmware --without-vmware + %define arg_vmware -Ddriver_vmware=disabled %endif %if %{with_storage_rbd} - %define arg_storage_rbd --with-storage-rbd + %define arg_storage_rbd -Dstorage_rbd=enabled %else - %define arg_storage_rbd --without-storage-rbd + %define arg_storage_rbd -Dstorage_rbd=disabled %endif %if %{with_storage_sheepdog} - %define arg_storage_sheepdog --with-storage-sheepdog + %define arg_storage_sheepdog -Dstorage_sheepdog=enabled %else - %define arg_storage_sheepdog --without-storage-sheepdog + %define arg_storage_sheepdog -Dstorage_sheepdog=disabled %endif %if %{with_storage_gluster} - %define arg_storage_gluster --with-storage-gluster + %define arg_storage_gluster -Dstorage_gluster=enabled -Dglusterfs=enabled %else - %define arg_storage_gluster --without-storage-gluster + %define arg_storage_gluster -Dstorage_gluster=disabled -Dglusterfs=disabled %endif %if %{with_storage_zfs} - %define arg_storage_zfs --with-storage-zfs + %define arg_storage_zfs -Dstorage_zfs=enabled %else - %define arg_storage_zfs --without-storage-zfs + %define arg_storage_zfs -Dstorage_zfs=disabled %endif %if %{with_numactl} - %define arg_numactl --with-numactl + %define arg_numactl -Dnumactl=enabled %else - %define arg_numactl --without-numactl + %define arg_numactl -Dnumactl=disabled %endif %if %{with_numad} - %define arg_numad --with-numad + %define arg_numad -Dnumad=enabled %else - %define arg_numad --without-numad + %define arg_numad -Dnumad=disabled %endif %if %{with_fuse} - %define arg_fuse --with-fuse + %define arg_fuse -Dfuse=enabled %else - %define arg_fuse --without-fuse + %define arg_fuse -Dfuse=disabled %endif %if %{with_sanlock} - %define arg_sanlock --with-sanlock + %define arg_sanlock -Dsanlock=enabled %else - %define arg_sanlock --without-sanlock + %define arg_sanlock -Dsanlock=disabled %endif -%if %{with_firewalld} - %define arg_firewalld --with-firewalld +%if %{with_firewalld_zone} + %define arg_firewalld_zone -Dfirewalld_zone=enabled %else - %define arg_firewalld --without-firewalld + %define arg_firewalld_zone -Dfirewalld_zone=disabled %endif -%if %{with_firewalld_zone} - %define arg_firewalld_zone --with-firewalld-zone +%if %{with_netcf} + %define arg_netcf -Dnetcf=enabled %else - %define arg_firewalld_zone --without-firewalld-zone + %define arg_netcf -Dnetcf=disabled %endif %if %{with_wireshark} - %define arg_wireshark --with-wireshark-dissector + %define arg_wireshark -Dwireshark_dissector=enabled %else - %define arg_wireshark --without-wireshark-dissector + %define arg_wireshark -Dwireshark_dissector=disabled %endif %if %{with_storage_iscsi_direct} - %define arg_storage_iscsi_direct --with-libiscsi --with-storage-iscsi-direct + %define arg_storage_iscsi_direct -Dstorage_iscsi_direct=enabled -Dlibiscsi=enabled +%else + %define arg_storage_iscsi_direct -Dstorage_iscsi_direct=disabled -Dlibiscsi=disabled +%endif + +%if %{with_libssh} + %define arg_libssh -Dlibssh=enabled +%else + %define arg_libssh -Dlibssh=disabled +%endif + +%if %{with_libssh2} + %define arg_libssh2 -Dlibssh2=enabled %else - %define arg_storage_iscsi_direct --without-storage-iscsi-direct + %define arg_libssh2 -Dlibssh2=disabled %endif %define when %(date +"%%F-%%T") %define where %(hostname) %define who %{?packager}%{!?packager:Unknown} -%define arg_packager --with-packager="%{who}, %{when}, %{where}" -%define arg_packager_version --with-packager-version="%{release}" +%define arg_packager -Dpackager="%{who}, %{when}, %{where}" +%define arg_packager_version -Dpackager_version="%{release}" -%define arg_selinux_mount --with-selinux-mount="/sys/fs/selinux" +%define arg_selinux_mount -Dselinux_mount="/sys/fs/selinux" # place macros above and build commands below this comment export SOURCE_DATE_EPOCH=$(stat --printf='%Y' %{_specdir}/%{name}.spec) -%if 0%{?enable_autotools} - autoreconf -if -%endif - -rm -f po/stamp-po - -%define _configure ../configure -mkdir %{_vpath_builddir} -cd %{_vpath_builddir} - -%configure --enable-dependency-tracking \ - --with-runstatedir=%{_rundir} \ +%meson \ + -Drunstatedir=%{_rundir} \ %{?arg_qemu} \ %{?arg_openvz} \ %{?arg_lxc} \ %{?arg_vbox} \ %{?arg_libxl} \ - --with-sasl \ - --with-polkit \ - --with-libvirtd \ + -Dsasl=enabled \ + -Dpolkit=enabled \ + -Ddriver_libvirtd=enabled \ %{?arg_esx} \ %{?arg_hyperv} \ %{?arg_vmware} \ - --without-vz \ - --without-bhyve \ - --with-remote-default-mode=legacy \ - --with-interface \ - --with-network \ - --with-storage-fs \ - --with-storage-dir \ - --with-storage-lvm \ - --with-storage-iscsi \ + -Ddriver_vz=disabled \ + -Ddriver_bhyve=disabled \ + -Dremote_default_mode=legacy \ + -Ddriver_interface=enabled \ + -Ddriver_network=enabled \ + -Dstorage_fs=enabled \ + -Dstorage_lvm=enabled \ + -Dstorage_iscsi=enabled \ %{?arg_storage_iscsi_direct} \ - --with-storage-scsi \ - --with-storage-disk \ - --with-storage-mpath \ + -Dstorage_scsi=enabled \ + -Dstorage_disk=enabled \ + -Dstorage_mpath=enabled \ %{?arg_storage_rbd} \ %{?arg_storage_sheepdog} \ %{?arg_storage_gluster} \ %{?arg_storage_zfs} \ - --without-storage-vstorage \ + -Dstorage_vstorage=disabled \ %{?arg_numactl} \ %{?arg_numad} \ - --with-capng \ + -Dcapng=enabled \ %{?arg_fuse} \ - --with-netcf \ - --with-selinux \ + %{?arg_netcf} \ + -Dselinux=enabled \ %{?arg_selinux_mount} \ - --without-apparmor \ - --without-hal \ - --with-udev \ - --with-yajl \ + -Dapparmor=disabled \ + -Dsecdriver_apparmor=disabled \ + -Dudev=enabled \ + -Dyajl=enabled \ %{?arg_sanlock} \ - --with-libpcap \ - --with-macvtap \ - --with-audit \ - --with-dtrace \ - --with-driver-modules \ - %{?arg_firewalld} \ + -Dlibpcap=enabled \ + -Dlibnl=enabled \ + -Daudit=enabled \ + -Ddtrace=enabled \ + -Dfirewalld=enabled \ %{?arg_firewalld_zone} \ %{?arg_wireshark} \ - --without-pm-utils \ - --with-nss-plugin \ + %{?arg_libssh} \ + %{?arg_libssh2} \ + -Dpm_utils=disabled \ + -Dnss=enabled \ %{arg_packager} \ %{arg_packager_version} \ - --with-qemu-user=%{qemu_user} \ - --with-qemu-group=%{qemu_group} \ - --with-tls-priority=%{tls_priority} \ + -Dqemu_user=%{qemu_user} \ + -Dqemu_group=%{qemu_group} \ + -Dtls_priority=%{tls_priority} \ %{?enable_werror} \ - --enable-expensive-tests \ - --with-init-script=systemd \ + -Dexpensive_tests=enabled \ + -Dinit_script=systemd \ + -Ddocs=enabled \ + -Dtests=enabled \ + -Drpath=disabled \ %{?arg_login_shell} -make %{?_smp_mflags} V=1 + +%meson_build %install rm -fr %{buildroot} export SOURCE_DATE_EPOCH=$(stat --printf='%Y' %{_specdir}/%{name}.spec) -cd %{_vpath_builddir} -%make_install %{?_smp_mflags} SYSTEMD_UNIT_DIR=%{_unitdir} V=1 +%meson_install rm -f $RPM_BUILD_ROOT%{_libdir}/*.la rm -f $RPM_BUILD_ROOT%{_libdir}/*.a @@ -1057,8 +1076,6 @@ cp -a $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/nwfilter/*.xml \ # libvirt saves these files with mode 600 chmod 600 $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/nwfilter/*.xml -# Strip auto-generated UUID - we need it generated per-install -sed -i -e "//d" $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/default.xml %if ! %{with_qemu} rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_qemu.aug rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug @@ -1093,7 +1110,7 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_libxl.aug # Copied into libvirt-docs subpackage eventually mv $RPM_BUILD_ROOT%{_datadir}/doc/libvirt libvirt-docs -%ifarch %{power64} s390x x86_64 ia64 alpha sparc64 +%ifarch %{arches_systemtap_64bit} mv $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_probes.stp \ $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_probes-64.stp @@ -1104,12 +1121,9 @@ mv $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp \ %endif %check -cd %{_vpath_builddir} -if ! make %{?_smp_mflags} check VIR_TEST_DEBUG=1 -then - cat tests/test-suite.log || true - exit 1 -fi +# Building on slow archs, like emulated s390x in Fedora copr, requires +# raising the test timeout +VIR_TEST_DEBUG=1 %meson_test --no-suite syntax-check --timeout-multiplier 10 %post libs %if 0%{?rhel} == 7 @@ -1244,9 +1258,7 @@ if test $1 -eq 1 && test ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml ; ;; esac - UUID=`/usr/bin/uuidgen` sed -e "s/${orig_sub}/${sub}/g" \ - -e "s,,\n $UUID," \ < %{_datadir}/libvirt/networks/default.xml \ > %{_sysconfdir}/libvirt/qemu/networks/default.xml ln -s ../default.xml %{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml @@ -1265,9 +1277,13 @@ fi rm -rf %{_localstatedir}/lib/rpm-state/libvirt || : %post daemon-config-nwfilter -cp %{_datadir}/libvirt/nwfilter/*.xml %{_sysconfdir}/libvirt/nwfilter/ -# libvirt saves these files with mode 600 -chmod 600 %{_sysconfdir}/libvirt/nwfilter/*.xml +for datadir_file in %{_datadir}/libvirt/nwfilter/*.xml; do + sysconfdir_file=%{_sysconfdir}/libvirt/nwfilter/$(basename "$datadir_file") + if [ ! -f "$sysconfdir_file" ]; then + # libvirt saves these files with mode 600 + install -m 0600 "$datadir_file" "$sysconfdir_file" + fi +done # Make sure libvirt picks up the new nwfilter defininitons mkdir -p %{_localstatedir}/lib/rpm-state/libvirt || : touch %{_localstatedir}/lib/rpm-state/libvirt/restart || : @@ -1315,8 +1331,8 @@ exit 0 %files %files docs -%doc AUTHORS ChangeLog README -%doc %{_vpath_builddir}/libvirt-docs/* +%doc AUTHORS.rst NEWS.rst README.rst +%doc libvirt-docs/* %files daemon @@ -1342,17 +1358,9 @@ exit 0 %{_unitdir}/virtlockd.socket %{_unitdir}/virtlockd-admin.socket %config(noreplace) %{_sysconfdir}/sysconfig/libvirtd +%config(noreplace) %{_sysconfdir}/sysconfig/virtproxyd %config(noreplace) %{_sysconfdir}/sysconfig/virtlogd %config(noreplace) %{_sysconfdir}/sysconfig/virtlockd -%config(noreplace) %{_sysconfdir}/sysconfig/virtinterfaced -%config(noreplace) %{_sysconfdir}/sysconfig/virtlxcd -%config(noreplace) %{_sysconfdir}/sysconfig/virtnetworkd -%config(noreplace) %{_sysconfdir}/sysconfig/virtnodedevd -%config(noreplace) %{_sysconfdir}/sysconfig/virtnwfilterd -%config(noreplace) %{_sysconfdir}/sysconfig/virtproxyd -%config(noreplace) %{_sysconfdir}/sysconfig/virtqemud -%config(noreplace) %{_sysconfdir}/sysconfig/virtsecretd -%config(noreplace) %{_sysconfdir}/sysconfig/virtstoraged %config(noreplace) %{_sysconfdir}/libvirt/libvirtd.conf %config(noreplace) %{_sysconfdir}/libvirt/virtproxyd.conf %config(noreplace) %{_sysconfdir}/libvirt/virtlogd.conf @@ -1397,6 +1405,8 @@ exit 0 %attr(0755, root, root) %{_libexecdir}/libvirt_iohelper +%attr(0755, root, root) %{_bindir}/virt-ssh-helper + %attr(0755, root, root) %{_sbindir}/libvirtd %attr(0755, root, root) %{_sbindir}/virtproxyd %attr(0755, root, root) %{_sbindir}/virtlogd @@ -1405,6 +1415,7 @@ exit 0 %{_mandir}/man8/libvirtd.8* %{_mandir}/man8/virtlogd.8* %{_mandir}/man8/virtlockd.8* +%{_mandir}/man8/virtproxyd.8* %{_mandir}/man7/virkey*.7* %files daemon-config-network @@ -1419,6 +1430,7 @@ exit 0 %ghost %{_sysconfdir}/libvirt/nwfilter/*.xml %files daemon-driver-interface +%config(noreplace) %{_sysconfdir}/sysconfig/virtinterfaced %config(noreplace) %{_sysconfdir}/libvirt/virtinterfaced.conf %{_datadir}/augeas/lenses/virtinterfaced.aug %{_datadir}/augeas/lenses/tests/test_virtinterfaced.aug @@ -1428,8 +1440,10 @@ exit 0 %{_unitdir}/virtinterfaced-admin.socket %attr(0755, root, root) %{_sbindir}/virtinterfaced %{_libdir}/%{name}/connection-driver/libvirt_driver_interface.so +%{_mandir}/man8/virtinterfaced.8* %files daemon-driver-network +%config(noreplace) %{_sysconfdir}/sysconfig/virtnetworkd %config(noreplace) %{_sysconfdir}/libvirt/virtnetworkd.conf %{_datadir}/augeas/lenses/virtnetworkd.aug %{_datadir}/augeas/lenses/tests/test_virtnetworkd.aug @@ -1446,12 +1460,14 @@ exit 0 %dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/dnsmasq/ %attr(0755, root, root) %{_libexecdir}/libvirt_leaseshelper %{_libdir}/%{name}/connection-driver/libvirt_driver_network.so +%{_mandir}/man8/virtnetworkd.8* %if %{with_firewalld_zone} %{_prefix}/lib/firewalld/zones/libvirt.xml %endif %files daemon-driver-nodedev +%config(noreplace) %{_sysconfdir}/sysconfig/virtnodedevd %config(noreplace) %{_sysconfdir}/libvirt/virtnodedevd.conf %{_datadir}/augeas/lenses/virtnodedevd.aug %{_datadir}/augeas/lenses/tests/test_virtnodedevd.aug @@ -1461,8 +1477,10 @@ exit 0 %{_unitdir}/virtnodedevd-admin.socket %attr(0755, root, root) %{_sbindir}/virtnodedevd %{_libdir}/%{name}/connection-driver/libvirt_driver_nodedev.so +%{_mandir}/man8/virtnodedevd.8* %files daemon-driver-nwfilter +%config(noreplace) %{_sysconfdir}/sysconfig/virtnwfilterd %config(noreplace) %{_sysconfdir}/libvirt/virtnwfilterd.conf %{_datadir}/augeas/lenses/virtnwfilterd.aug %{_datadir}/augeas/lenses/tests/test_virtnwfilterd.aug @@ -1474,8 +1492,10 @@ exit 0 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/nwfilter/ %ghost %dir %{_rundir}/libvirt/network/ %{_libdir}/%{name}/connection-driver/libvirt_driver_nwfilter.so +%{_mandir}/man8/virtnwfilterd.8* %files daemon-driver-secret +%config(noreplace) %{_sysconfdir}/sysconfig/virtsecretd %config(noreplace) %{_sysconfdir}/libvirt/virtsecretd.conf %{_datadir}/augeas/lenses/virtsecretd.aug %{_datadir}/augeas/lenses/tests/test_virtsecretd.aug @@ -1485,10 +1505,12 @@ exit 0 %{_unitdir}/virtsecretd-admin.socket %attr(0755, root, root) %{_sbindir}/virtsecretd %{_libdir}/%{name}/connection-driver/libvirt_driver_secret.so +%{_mandir}/man8/virtsecretd.8* %files daemon-driver-storage %files daemon-driver-storage-core +%config(noreplace) %{_sysconfdir}/sysconfig/virtstoraged %config(noreplace) %{_sysconfdir}/libvirt/virtstoraged.conf %{_datadir}/augeas/lenses/virtstoraged.aug %{_datadir}/augeas/lenses/tests/test_virtstoraged.aug @@ -1501,6 +1523,7 @@ exit 0 %{_libdir}/%{name}/connection-driver/libvirt_driver_storage.so %{_libdir}/%{name}/storage-backend/libvirt_storage_backend_fs.so %{_libdir}/%{name}/storage-file/libvirt_storage_file_fs.so +%{_mandir}/man8/virtstoraged.8* %files daemon-driver-storage-disk %{_libdir}/%{name}/storage-backend/libvirt_storage_backend_disk.so @@ -1545,6 +1568,7 @@ exit 0 %if %{with_qemu} %files daemon-driver-qemu +%config(noreplace) %{_sysconfdir}/sysconfig/virtqemud %config(noreplace) %{_sysconfdir}/libvirt/virtqemud.conf %{_datadir}/augeas/lenses/virtqemud.aug %{_datadir}/augeas/lenses/tests/test_virtqemud.aug @@ -1565,13 +1589,15 @@ exit 0 %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug %{_libdir}/%{name}/connection-driver/libvirt_driver_qemu.so %dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/swtpm/ -%dir %attr(0711, root, root) %{_localstatedir}/log/swtpm/libvirt/qemu/ +%dir %attr(0730, tss, tss) %{_localstatedir}/log/swtpm/libvirt/qemu/ %{_bindir}/virt-qemu-run %{_mandir}/man1/virt-qemu-run.1* +%{_mandir}/man8/virtqemud.8* %endif %if %{with_lxc} %files daemon-driver-lxc +%config(noreplace) %{_sysconfdir}/sysconfig/virtlxcd %config(noreplace) %{_sysconfdir}/libvirt/virtlxcd.conf %{_datadir}/augeas/lenses/virtlxcd.aug %{_datadir}/augeas/lenses/tests/test_virtlxcd.aug @@ -1589,10 +1615,12 @@ exit 0 %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug %attr(0755, root, root) %{_libexecdir}/libvirt_lxc %{_libdir}/%{name}/connection-driver/libvirt_driver_lxc.so +%{_mandir}/man8/virtlxcd.8* %endif %if %{with_libxl} %files daemon-driver-libxl +%config(noreplace) %{_sysconfdir}/sysconfig/virtxend %config(noreplace) %{_sysconfdir}/libvirt/virtxend.conf %{_datadir}/augeas/lenses/virtxend.aug %{_datadir}/augeas/lenses/tests/test_virtxend.aug @@ -1610,10 +1638,12 @@ exit 0 %ghost %dir %{_rundir}/libvirt/libxl/ %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/libxl/ %{_libdir}/%{name}/connection-driver/libvirt_driver_libxl.so +%{_mandir}/man8/virtxend.8* %endif %if %{with_vbox} %files daemon-driver-vbox +%config(noreplace) %{_sysconfdir}/sysconfig/virtvboxd %config(noreplace) %{_sysconfdir}/libvirt/virtvboxd.conf %{_datadir}/augeas/lenses/virtvboxd.aug %{_datadir}/augeas/lenses/tests/test_virtvboxd.aug @@ -1623,6 +1653,7 @@ exit 0 %{_unitdir}/virtvboxd-admin.socket %attr(0755, root, root) %{_sbindir}/virtvboxd %{_libdir}/%{name}/connection-driver/libvirt_driver_vbox.so +%{_mandir}/man8/virtvboxd.8* %endif %if %{with_qemu_tcg} @@ -1678,16 +1709,14 @@ exit 0 %{_datadir}/systemtap/tapset/libvirt_qemu_probes*.stp %endif -%if %{with_bash_completion} %{_datadir}/bash-completion/completions/virsh -%endif %{_unitdir}/libvirt-guests.service %config(noreplace) %{_sysconfdir}/sysconfig/libvirt-guests %attr(0755, root, root) %{_libexecdir}/libvirt-guests.sh -%files libs -f %{_vpath_builddir}/%{name}.lang +%files libs -f %{name}.lang %license COPYING COPYING.LESSER %config(noreplace) %{_sysconfdir}/libvirt/libvirt.conf %config(noreplace) %{_sysconfdir}/libvirt/libvirt-admin.conf @@ -1699,28 +1728,7 @@ exit 0 %dir %{_datadir}/libvirt/schemas/ %dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/ -%{_datadir}/libvirt/schemas/basictypes.rng -%{_datadir}/libvirt/schemas/capability.rng -%{_datadir}/libvirt/schemas/cputypes.rng -%{_datadir}/libvirt/schemas/domain.rng -%{_datadir}/libvirt/schemas/domainbackup.rng -%{_datadir}/libvirt/schemas/domaincaps.rng -%{_datadir}/libvirt/schemas/domaincheckpoint.rng -%{_datadir}/libvirt/schemas/domaincommon.rng -%{_datadir}/libvirt/schemas/domainsnapshot.rng -%{_datadir}/libvirt/schemas/interface.rng -%{_datadir}/libvirt/schemas/network.rng -%{_datadir}/libvirt/schemas/networkcommon.rng -%{_datadir}/libvirt/schemas/networkport.rng -%{_datadir}/libvirt/schemas/nodedev.rng -%{_datadir}/libvirt/schemas/nwfilter.rng -%{_datadir}/libvirt/schemas/nwfilter_params.rng -%{_datadir}/libvirt/schemas/nwfilterbinding.rng -%{_datadir}/libvirt/schemas/secret.rng -%{_datadir}/libvirt/schemas/storagecommon.rng -%{_datadir}/libvirt/schemas/storagepool.rng -%{_datadir}/libvirt/schemas/storagepoolcaps.rng -%{_datadir}/libvirt/schemas/storagevol.rng +%{_datadir}/libvirt/schemas/*.rng %{_datadir}/libvirt/cpu_map/*.xml @@ -1729,14 +1737,10 @@ exit 0 %files admin %{_mandir}/man1/virt-admin.1* %{_bindir}/virt-admin -%if %{with_bash_completion} %{_datadir}/bash-completion/completions/virt-admin -%endif -%if %{with_bash_completion} %files bash-completion %{_datadir}/bash-completion/completions/vsh -%endif %if %{with_wireshark} %files wireshark @@ -1792,104 +1796,101 @@ exit 0 %changelog -* Thu Apr 02 2020 Cole Robinson - 6.2.0-1 -- Update to version 6.2.0 +* Mon Apr 05 2021 Cole Robinson - 7.2.0-1 +- Update to version 7.2.0 -* Tue Mar 24 2020 Felipe Borges - 6.1.0-2 -- Check for disk type correctly in virDomainDiskTranslateSourcePool +* Tue Mar 9 2021 Richard W.M. Jones - 7.1.0-2 +- Bump and rebuild for libwsman_client.so.4 -> .5 -* Wed Mar 04 2020 Cole Robinson - 6.1.0-1 -- Update to version 6.1.0 +* Mon Mar 01 2021 Cole Robinson - 7.1.0-1 +- Update to version 7.1.0 -* Tue Feb 25 2020 Cole Robinson - 6.0.0-3 -- Rebuild for libiscsi soname bump +* Wed Feb 03 2021 Cole Robinson - 7.0.0-4 +- Increase meson test timeout to fix builds on s390x copr -* Wed Jan 29 2020 Fedora Release Engineering - 6.0.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild +* Tue Feb 02 2021 Laine Stump - 7.0.0-3 +- disable netcf in build -* Wed Jan 15 2020 Cole Robinson - 6.0.0-1 -- Update to version 6.0.0 +* Tue Jan 26 2021 Fedora Release Engineering - 7.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild -* Thu Dec 19 2019 Adam Williamson - 5.10.0-2 -- Rebuild for new xen-libs +* Fri Jan 15 2021 Daniel P. Berrangé - 7.0.0-1 +- Rebase to 7.0.0 release -* Tue Dec 03 2019 Cole Robinson - 5.10.0-1 -- Update to version 5.10.0 +* Fri Dec 04 2020 Cole Robinson - 6.10.0-2.1 +- Rebuild for wireshark soname bump -* Mon Nov 11 2019 Cole Robinson - 5.9.0-1 -- Update to version 5.9.0 +* Fri Dec 04 2020 Richard W.M. Jones - 6.10.0-2 +- Build libvirt-daemon-kvm for riscv64. -* Mon Oct 07 2019 Cole Robinson - 5.8.0-1 -- Update to version 5.8.0 +* Tue Dec 01 2020 Cole Robinson - 6.10.0-1 +- Update to version 6.10.0 -* Thu Sep 26 2019 Cole Robinson - 5.7.0-3 -- Fix VM startup when legacy cgroups are defined (bz #1612383) +* Wed Nov 4 2020 Daniel P. Berrangé - 6.9.0-2 +- Re-apply reverted fix for disabling glusterfs, curl, openswman and libiscsi -* Fri Sep 20 2019 Daniel P. Berrangé - 5.7.0-2 -- Fix systemd socket activation with TLS socket +* Tue Nov 03 2020 Cole Robinson - 6.9.0-1 +- Update to version 6.9.0 -* Tue Sep 03 2019 Cole Robinson - 5.7.0-1 -- Update to version 5.7.0 +* Mon Nov 2 2020 Daniel P. Berrangé - 6.8.0-4 +- Really fix meson option for disabling glusterfs +- Fix disabling curl, openswman and libiscsi -* Tue Aug 06 2019 Cole Robinson - 5.6.0-1 -- Update to version 5.6.0 +* Mon Nov 2 2020 Daniel P. Berrangé - 6.8.0-4 +- Fix name of meson option for disabling glusterfs -* Thu Jul 25 2019 Fedora Release Engineering - 5.5.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild +* Fri Oct 30 2020 Daniel P. Berrangé - 6.8.0-3 +- Fix stat() mocking for new glibc -* Wed Jul 03 2019 Cole Robinson - 5.5.0-1 -- Rebased to version 5.5.0 +* Wed Oct 28 2020 Daniel P. Berrangé - 6.8.0-2 +- Remove obsolete bash_completion conditional +- Pass args to meson based on with_libssh/with_libssh2 -* Thu Jun 20 2019 Cole Robinson - 5.4.0-2 -- CVE-2019-10161: arbitrary file read/exec via virDomainSaveImageGetXMLDesc - API (bz #1722463, bz #1720115) -- CVE-2019-10166: virDomainManagedSaveDefineXML API exposed to readonly - clients (bz #1722462, bz #1720114) -- CVE-2019-10167: arbitrary command execution via - virConnectGetDomainCapabilities API (bz #1722464, bz #1720117) -- CVE-2019-10168: arbitrary command execution via - virConnectBaselineHypervisorCPU and virConnectCompareHypervisorCPU APIs (bz - #1722466, bz #1720118) +* Thu Oct 01 2020 Cole Robinson - 6.8.0-1 +- Update to version 6.8.0 -* Wed Jun 12 2019 Daniel P. Berrangé - 5.4.0-1 -- Update to 5.4.0 release +* Fri Sep 4 2020 Daniel P. Berrangé - 6.7.0-2 +- Fix QEMU start when KVM is not loaded (rhbz#1875327) -* Tue May 21 2019 Daniel P. Berrangé - 5.3.0-3 -- Fix systemd socket permissions -- Resolves: rhbz #1712498 (CVE-2019-10132) +* Tue Sep 01 2020 Cole Robinson - 6.7.0-1 +- Update to version 6.7.0 -* Tue May 14 2019 Daniel P. Berrangé - 5.3.0-2 -- Define md-clear CPUID bit -- Resolves: rhbz #1709977 (CVE-2018-12126), rhbz #1709979 (CVE-2018-12127), - rhbz #1709997 (CVE-2018-12130), rhbz #1709984 (CVE-2019-11091) +* Fri Aug 21 2020 Merlin Mathesius - 6.6.0-3 +- Fix so no platforms depend upon ceph for 32-bit architectures +- Include upstream patches to fix GCC 10 warnings -* Tue May 7 2019 Daniel P. Berrangé - 5.3.0-1 -- Update to 5.3.0 release +* Fri Aug 21 2020 Daniel P. Berrangé - 6.6.0-2 +- Fix creation of pools on non-btrfs (rhbz#1870197) -* Mon Apr 08 2019 Cole Robinson - 5.2.0-2 -- Rebuild for xen 4.12 soname bump +* Tue Aug 04 2020 Cole Robinson - 6.6.0-1 +- Update to version 6.6.0 -* Wed Apr 3 2019 Daniel P. Berrangé - 5.2.0-1 -- Update to 5.2.0 release +* Tue Jul 28 2020 Fedora Release Engineering - 6.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild -* Wed Mar 20 2019 Daniel P. Berrangé - 5.1.0-3 -- Fix upgrades for rbd on i686 (rhbz #1688121) -- Add missing xfsprogs-devel dep -- Fix use of deprecated RBD features -- Avoid using firewalld if unprivileged -- Don't require ipv6 firewall support at startup (rhbz #1688968) +* Fri Jul 03 2020 Cole Robinson - 6.5.0-1 +- Update to version 6.5.0 -* Wed Mar 06 2019 Igor Gnatenko - 5.1.0-2 -- Remove obsolete scriptlets +* Tue Jun 02 2020 Cole Robinson - 6.4.0-1 +- Update to version 6.4.0 -* Mon Mar 4 2019 Daniel P. Berrangé - 5.1.0-1 -- Update to 5.1.0 release +* Tue May 05 2020 Cole Robinson - 6.3.0-1 +- Update to version 6.3.0 -* Sun Feb 17 2019 Igor Gnatenko - 5.0.0-3 -- Rebuild for readline 8.0 +* Thu Apr 02 2020 Cole Robinson - 6.2.0-1 +- Update to version 6.2.0 -* Fri Feb 01 2019 Fedora Release Engineering - 5.0.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild +* Tue Mar 24 2020 Felipe Borges - 6.1.0-2 +- Check for disk type correctly in virDomainDiskTranslateSourcePool -* Mon Jan 21 2019 Daniel P. Berrangé - 5.0.0-1 -- Update to 5.0.0 release +* Wed Mar 04 2020 Cole Robinson - 6.1.0-1 +- Update to version 6.1.0 + +* Tue Feb 25 2020 Cole Robinson - 6.0.0-3 +- Rebuild for libiscsi soname bump + +* Wed Jan 29 2020 Fedora Release Engineering - 6.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jan 15 2020 Cole Robinson - 6.0.0-1 +- Update to version 6.0.0