|
|
|
@@ -3,23 +3,16 @@
|
|
|
|
|
# This spec file assumes you are building on a Fedora or RHEL version
|
|
|
|
|
# that's still supported by the vendor. It may work on other distros
|
|
|
|
|
# or versions, but no effort will be made to ensure that going forward.
|
|
|
|
|
%define min_rhel 7
|
|
|
|
|
%define min_fedora 31
|
|
|
|
|
%define min_rhel 8
|
|
|
|
|
%define min_fedora 33
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= %{min_fedora} || 0%{?rhel} >= %{min_rhel}
|
|
|
|
|
%define supported_platform 1
|
|
|
|
|
%else
|
|
|
|
|
%define supported_platform 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# On RHEL 7 and older macro _vpath_builddir is not defined.
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
|
%define _vpath_builddir %{_target_platform}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%define arches_qemu_kvm %{ix86} x86_64 %{power64} %{arm} aarch64 s390x riscv64
|
|
|
|
|
%define arches_qemu_kvm %{ix86} x86_64 %{power64} %{arm} aarch64 s390x
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
%define arches_qemu_kvm x86_64 %{power64} aarch64 s390x
|
|
|
|
|
%if 0%{?rhel} > 8
|
|
|
|
|
%define arches_qemu_kvm x86_64 aarch64 s390x
|
|
|
|
|
%else
|
|
|
|
|
%define arches_qemu_kvm x86_64 %{power64} aarch64 s390x
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%define arches_64bit x86_64 %{power64} aarch64 s390x riscv64
|
|
|
|
@@ -72,24 +65,28 @@
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%define with_storage_gluster 0%{!?_without_storage_gluster:1}
|
|
|
|
|
%ifnarch %{arches_qemu_kvm}
|
|
|
|
|
# gluster is only built where qemu driver is enabled on RHEL 8
|
|
|
|
|
%if 0%{?rhel} >= 8
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
# Glusterfs has been dropped in RHEL-9, and before that
|
|
|
|
|
# was only enabled on arches where KVM exists
|
|
|
|
|
%if 0%{?rhel} > 8
|
|
|
|
|
%define with_storage_gluster 0
|
|
|
|
|
%else
|
|
|
|
|
%ifnarch %{arches_qemu_kvm}
|
|
|
|
|
%define with_storage_gluster 0
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# F25+ has zfs-fuse
|
|
|
|
|
# Fedora has zfs-fuse
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%define with_storage_zfs 0%{!?_without_storage_zfs:1}
|
|
|
|
|
%else
|
|
|
|
|
%define with_storage_zfs 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# We need a recent enough libiscsi (>= 1.18.0)
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
%define with_storage_iscsi_direct 0%{!?_without_storage_iscsi_direct:1}
|
|
|
|
|
%else
|
|
|
|
|
%define with_storage_iscsi_direct 0%{!?_without_storage_iscsi_direct:1}
|
|
|
|
|
# libiscsi has been dropped in RHEL-9
|
|
|
|
|
%if 0%{?rhel} > 8
|
|
|
|
|
%define with_storage_iscsi_direct 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@@ -126,9 +123,7 @@
|
|
|
|
|
%define with_storage_rbd 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# RHEL doesn't ship OpenVZ, VBox, PowerHypervisor,
|
|
|
|
|
# VMware, libxenlight (Xen 4.1 and newer),
|
|
|
|
|
# or HyperV.
|
|
|
|
|
# RHEL doesn't ship many hypervisor drivers
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
%define with_openvz 0
|
|
|
|
|
%define with_vbox 0
|
|
|
|
@@ -136,15 +131,10 @@
|
|
|
|
|
%define with_libxl 0
|
|
|
|
|
%define with_hyperv 0
|
|
|
|
|
%define with_vz 0
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} > 7
|
|
|
|
|
%define with_lxc 0
|
|
|
|
|
%endif
|
|
|
|
|
%define with_lxc 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
%define with_firewalld_zone 0%{!?_without_firewalld_zone:1}
|
|
|
|
|
%endif
|
|
|
|
|
%define with_firewalld_zone 0%{!?_without_firewalld_zone:1}
|
|
|
|
|
|
|
|
|
|
%if (0%{?fedora} && 0%{?fedora} < 34) || (0%{?rhel} && 0%{?rhel} < 9)
|
|
|
|
|
%define with_netcf 0%{!?_without_netcf:1}
|
|
|
|
@@ -172,16 +162,12 @@
|
|
|
|
|
%define with_libssh2 0%{!?_without_libssh2:1}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Enable wireshark plugins for all distros except RHEL-7
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
%define with_wireshark 0%{!?_without_wireshark:1}
|
|
|
|
|
%define wireshark_plugindir %(pkg-config --variable plugindir wireshark)/epan
|
|
|
|
|
%endif
|
|
|
|
|
# Enable wireshark plugins for all distros
|
|
|
|
|
%define with_wireshark 0%{!?_without_wireshark:1}
|
|
|
|
|
%define wireshark_plugindir %(pkg-config --variable plugindir wireshark)/epan
|
|
|
|
|
|
|
|
|
|
# Enable libssh transport for new enough distros
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
%define with_libssh 0%{!?_without_libssh:1}
|
|
|
|
|
%endif
|
|
|
|
|
# Enable libssh transport for all distros
|
|
|
|
|
%define with_libssh 0%{!?_without_libssh:1}
|
|
|
|
|
|
|
|
|
|
%if %{with_qemu} || %{with_lxc}
|
|
|
|
|
# numad is used to manage the CPU and memory placement dynamically,
|
|
|
|
@@ -195,6 +181,11 @@
|
|
|
|
|
%define with_dmidecode 0%{!?_without_dmidecode:1}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%define with_modular_daemons 0
|
|
|
|
|
%if 0%{?fedora} >= 35 || 0%{?rhel} >= 9
|
|
|
|
|
%define with_modular_daemons 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Force QEMU to run as non-root
|
|
|
|
|
%define qemu_user qemu
|
|
|
|
|
%define qemu_group qemu
|
|
|
|
@@ -206,20 +197,16 @@
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
%define enable_werror -Dwerror=true
|
|
|
|
|
%else
|
|
|
|
|
%define enable_werror -Dwerror=false
|
|
|
|
|
%define enable_werror -Dwerror=false -Dgit_werror=disabled
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
|
%define tls_priority "NORMAL"
|
|
|
|
|
%else
|
|
|
|
|
%define tls_priority "@LIBVIRT,SYSTEM"
|
|
|
|
|
%endif
|
|
|
|
|
%define tls_priority "@LIBVIRT,SYSTEM"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Library providing a simple virtualization API
|
|
|
|
|
Name: libvirt
|
|
|
|
|
Version: 7.0.0
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 7.6.0
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
URL: https://libvirt.org/
|
|
|
|
|
|
|
|
|
@@ -227,8 +214,10 @@ URL: https://libvirt.org/
|
|
|
|
|
%define mainturl stable_updates/
|
|
|
|
|
%endif
|
|
|
|
|
Source: https://libvirt.org/sources/%{?mainturl}libvirt-%{version}.tar.xz
|
|
|
|
|
|
|
|
|
|
Patch0001: 0001-build-support-explicitly-disabling-netcf.patch
|
|
|
|
|
Patch1: 0001-qemu-xen-add-missing-deps-on-virtlockd-virtlogd-sock.patch
|
|
|
|
|
Patch2: 0002-wireshark-Switch-to-tvb_bytes_to_str.patch
|
|
|
|
|
Patch3: 0003-wireshark-Drop-needless-comment-in-dissect_xdr_bytes.patch
|
|
|
|
|
Patch4: 0004-tests-virstoragetest-remove-tests-without-backing-ty.patch
|
|
|
|
|
|
|
|
|
|
Requires: libvirt-daemon = %{version}-%{release}
|
|
|
|
|
Requires: libvirt-daemon-config-network = %{version}-%{release}
|
|
|
|
@@ -260,28 +249,17 @@ Requires: libvirt-libs = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
# All build-time requirements. Run-time requirements are
|
|
|
|
|
# listed against each sub-RPM
|
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
|
BuildRequires: python36-docutils
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: python3-docutils
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: meson >= 0.54.0
|
|
|
|
|
BuildRequires: ninja-build
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
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
|
|
|
|
@@ -333,13 +311,8 @@ BuildRequires: device-mapper-devel
|
|
|
|
|
# For XFS reflink clone support
|
|
|
|
|
BuildRequires: xfsprogs-devel
|
|
|
|
|
%if %{with_storage_rbd}
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
BuildRequires: librados-devel
|
|
|
|
|
BuildRequires: librbd-devel
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: librados2-devel
|
|
|
|
|
BuildRequires: librbd1-devel
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_storage_gluster}
|
|
|
|
|
BuildRequires: glusterfs-api-devel >= 3.4.1
|
|
|
|
@@ -401,11 +374,7 @@ BuildRequires: wireshark-devel
|
|
|
|
|
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
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildRequires: libtirpc-devel
|
|
|
|
|
|
|
|
|
|
# Needed for the firewalld_reload macro
|
|
|
|
@@ -440,12 +409,10 @@ Requires: /usr/bin/nc
|
|
|
|
|
# for modprobe of pci devices
|
|
|
|
|
Requires: module-init-tools
|
|
|
|
|
|
|
|
|
|
# for /sbin/ip & /sbin/tc
|
|
|
|
|
# for /sbin/ip
|
|
|
|
|
Requires: iproute
|
|
|
|
|
# tc is provided by iproute-tc since at least Fedora 26
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
# for /sbin/tc
|
|
|
|
|
Requires: iproute-tc
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Requires: polkit >= 0.112
|
|
|
|
|
%if %{with_dmidecode}
|
|
|
|
@@ -453,10 +420,7 @@ Requires: polkit >= 0.112
|
|
|
|
|
Requires: dmidecode
|
|
|
|
|
%endif
|
|
|
|
|
# For service management
|
|
|
|
|
Requires(post): systemd-units
|
|
|
|
|
Requires(post): systemd-sysv
|
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
|
Requires(post): /usr/bin/systemctl
|
|
|
|
|
%if %{with_numad}
|
|
|
|
|
Requires: numad
|
|
|
|
|
%endif
|
|
|
|
@@ -464,6 +428,13 @@ Requires: numad
|
|
|
|
|
Requires: dbus
|
|
|
|
|
# For uid creation during pre
|
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
|
# Needed by /usr/libexec/libvirt-guests.sh script.
|
|
|
|
|
Requires: gettext
|
|
|
|
|
|
|
|
|
|
# Ensure smooth upgrades
|
|
|
|
|
Obsoletes: libvirt-admin < 7.3.0
|
|
|
|
|
Provides: libvirt-admin = %{version}-%{release}
|
|
|
|
|
Obsoletes: libvirt-bash-completion < 7.3.0
|
|
|
|
|
|
|
|
|
|
%description daemon
|
|
|
|
|
Server side daemon required to manage the virtualization capabilities
|
|
|
|
@@ -522,9 +493,7 @@ 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
|
|
|
|
@@ -622,7 +591,6 @@ volumes using the host iscsi stack.
|
|
|
|
|
Summary: Storage driver plugin for iscsi-direct
|
|
|
|
|
Requires: libvirt-daemon-driver-storage-core = %{version}-%{release}
|
|
|
|
|
Requires: libvirt-libs = %{version}-%{release}
|
|
|
|
|
Requires: libiscsi
|
|
|
|
|
|
|
|
|
|
%description daemon-driver-storage-iscsi-direct
|
|
|
|
|
The storage driver backend adding implementation of the storage APIs for iscsi
|
|
|
|
@@ -740,12 +708,8 @@ Requires: gzip
|
|
|
|
|
Requires: bzip2
|
|
|
|
|
Requires: lzop
|
|
|
|
|
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
|
|
|
|
@@ -761,9 +725,7 @@ Requires: libvirt-daemon = %{version}-%{release}
|
|
|
|
|
Requires: libvirt-libs = %{version}-%{release}
|
|
|
|
|
# There really is a hard cross-driver dependency here
|
|
|
|
|
Requires: libvirt-daemon-driver-network = %{version}-%{release}
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
Requires: systemd-container
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description daemon-driver-lxc
|
|
|
|
|
The LXC driver plugin for the libvirtd daemon, providing
|
|
|
|
@@ -901,11 +863,11 @@ capabilities of VirtualBox
|
|
|
|
|
%package client
|
|
|
|
|
Summary: Client side utilities of the libvirt library
|
|
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
|
# Needed by /usr/libexec/libvirt-guests.sh script.
|
|
|
|
|
Requires: gettext
|
|
|
|
|
# Needed by virt-pki-validate script.
|
|
|
|
|
Requires: gnutls-utils
|
|
|
|
|
Requires: %{name}-bash-completion = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
# Ensure smooth upgrades
|
|
|
|
|
Obsoletes: libvirt-bash-completion < 7.3.0
|
|
|
|
|
|
|
|
|
|
%description client
|
|
|
|
|
The client binaries needed to access the virtualization
|
|
|
|
@@ -922,20 +884,6 @@ Requires: cyrus-sasl-gssapi
|
|
|
|
|
%description libs
|
|
|
|
|
Shared libraries for accessing the libvirt daemon.
|
|
|
|
|
|
|
|
|
|
%package admin
|
|
|
|
|
Summary: Set of tools to control libvirt daemon
|
|
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-bash-completion = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description admin
|
|
|
|
|
The client side utilities to control the libvirt daemon.
|
|
|
|
|
|
|
|
|
|
%package bash-completion
|
|
|
|
|
Summary: Bash completion script
|
|
|
|
|
|
|
|
|
|
%description bash-completion
|
|
|
|
|
Bash completion script stub.
|
|
|
|
|
|
|
|
|
|
%if %{with_wireshark}
|
|
|
|
|
%package wireshark
|
|
|
|
|
Summary: Wireshark dissector plugin for libvirt RPC transactions
|
|
|
|
@@ -992,11 +940,10 @@ 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}
|
|
|
|
|
%if 0%{?fedora} >= %{min_fedora} || 0%{?rhel} >= %{min_rhel}
|
|
|
|
|
%define supported_platform 1
|
|
|
|
|
%else
|
|
|
|
|
%define supported_platform 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! %{supported_platform}
|
|
|
|
@@ -1138,6 +1085,12 @@ exit 1
|
|
|
|
|
%define arg_libssh2 -Dlibssh2=disabled
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with_modular_daemons}
|
|
|
|
|
%define arg_remote_mode -Dremote_default_mode=direct
|
|
|
|
|
%else
|
|
|
|
|
%define arg_remote_mode -Dremote_default_mode=legacy
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%define when %(date +"%%F-%%T")
|
|
|
|
|
%define where %(hostname)
|
|
|
|
|
%define who %{?packager}%{!?packager:Unknown}
|
|
|
|
@@ -1160,12 +1113,15 @@ export SOURCE_DATE_EPOCH=$(stat --printf='%Y' %{_specdir}/%{name}.spec)
|
|
|
|
|
-Dsasl=enabled \
|
|
|
|
|
-Dpolkit=enabled \
|
|
|
|
|
-Ddriver_libvirtd=enabled \
|
|
|
|
|
-Ddriver_remote=enabled \
|
|
|
|
|
-Ddriver_test=enabled \
|
|
|
|
|
%{?arg_esx} \
|
|
|
|
|
%{?arg_hyperv} \
|
|
|
|
|
%{?arg_vmware} \
|
|
|
|
|
-Ddriver_vz=disabled \
|
|
|
|
|
-Ddriver_bhyve=disabled \
|
|
|
|
|
-Dremote_default_mode=legacy \
|
|
|
|
|
-Ddriver_ch=disabled \
|
|
|
|
|
%{?arg_remote_mode} \
|
|
|
|
|
-Ddriver_interface=enabled \
|
|
|
|
|
-Ddriver_network=enabled \
|
|
|
|
|
-Dstorage_fs=enabled \
|
|
|
|
@@ -1188,6 +1144,7 @@ export SOURCE_DATE_EPOCH=$(stat --printf='%Y' %{_specdir}/%{name}.spec)
|
|
|
|
|
-Dselinux=enabled \
|
|
|
|
|
%{?arg_selinux_mount} \
|
|
|
|
|
-Dapparmor=disabled \
|
|
|
|
|
-Dapparmor_profiles=disabled \
|
|
|
|
|
-Dsecdriver_apparmor=disabled \
|
|
|
|
|
-Dudev=enabled \
|
|
|
|
|
-Dyajl=enabled \
|
|
|
|
@@ -1240,7 +1197,7 @@ rm -f $RPM_BUILD_ROOT%{wireshark_plugindir}/libvirt.la
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/lib/libvirt/dnsmasq/
|
|
|
|
|
# We don't want to install /etc/libvirt/qemu/networks in the main %files list
|
|
|
|
|
# We don't want to install /etc/libvirt/qemu/networks in the main %%files list
|
|
|
|
|
# because if the admin wants to delete the default network completely, we don't
|
|
|
|
|
# want to end up re-incarnating it on every RPM upgrade.
|
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/
|
|
|
|
@@ -1249,7 +1206,7 @@ cp $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml \
|
|
|
|
|
# libvirt saves this file with mode 0600
|
|
|
|
|
chmod 0600 $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml
|
|
|
|
|
|
|
|
|
|
# nwfilter files are installed in /usr/share/libvirt and copied to /etc in %post
|
|
|
|
|
# nwfilter files are installed in /usr/share/libvirt and copied to /etc in %%post
|
|
|
|
|
# to avoid verification errors on changed files in /etc
|
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/libvirt/nwfilter/
|
|
|
|
|
cp -a $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/nwfilter/*.xml \
|
|
|
|
@@ -1306,15 +1263,32 @@ mv $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp \
|
|
|
|
|
# raising the test timeout
|
|
|
|
|
VIR_TEST_DEBUG=1 %meson_test --no-suite syntax-check --timeout-multiplier 10
|
|
|
|
|
|
|
|
|
|
%post libs
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
%endif
|
|
|
|
|
%define libvirt_daemon_schedule_restart() mkdir -p %{_localstatedir}/lib/rpm-state/libvirt || : \
|
|
|
|
|
/bin/systemctl is-active %1.service 1>/dev/null 2>&1 && \
|
|
|
|
|
touch %{_localstatedir}/lib/rpm-state/libvirt/restart-%1 || :
|
|
|
|
|
|
|
|
|
|
%postun libs
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
%endif
|
|
|
|
|
%define libvirt_daemon_finish_restart() rm -f %{_localstatedir}/lib/rpm-state/libvirt/restart-%1 \
|
|
|
|
|
rmdir %{_localstatedir}/lib/rpm-state/libvirt 2>/dev/null || :
|
|
|
|
|
|
|
|
|
|
%define libvirt_daemon_needs_restart() -f %{_localstatedir}/lib/rpm-state/libvirt/restart-%1
|
|
|
|
|
|
|
|
|
|
%define libvirt_daemon_perform_restart() if test %libvirt_daemon_needs_restart %1 \
|
|
|
|
|
then \
|
|
|
|
|
/bin/systemctl try-restart %1.service >/dev/null 2>&1 || : \
|
|
|
|
|
fi \
|
|
|
|
|
%libvirt_daemon_finish_restart %1
|
|
|
|
|
|
|
|
|
|
# For daemons with only UNIX sockets
|
|
|
|
|
%define libvirt_daemon_systemd_post() %systemd_post %1.socket %1-ro.socket %1-admin.socket %1.service
|
|
|
|
|
%define libvirt_daemon_systemd_preun() %systemd_preun %1.service %1-ro.socket %1-admin.socket %1.socket
|
|
|
|
|
|
|
|
|
|
# For daemons with UNIX and INET sockets
|
|
|
|
|
%define libvirt_daemon_systemd_post_inet() %systemd_post %1.socket %1-ro.socket %1-admin.socket %1-tls.socket %1-tcp.socket %1.service
|
|
|
|
|
%define libvirt_daemon_systemd_preun_inet() %systemd_preun %1.service %1-ro.socket %1-admin.socket %1-tls.socket %1-tcp.socket %1.socket
|
|
|
|
|
|
|
|
|
|
# For daemons with only UNIX sockets and no unprivileged read-only access
|
|
|
|
|
%define libvirt_daemon_systemd_post_priv() %systemd_post %1.socket %1-admin.socket %1.service
|
|
|
|
|
%define libvirt_daemon_systemd_preun_priv() %systemd_preun %1.service %1-admin.socket %1.socket
|
|
|
|
|
|
|
|
|
|
%pre daemon
|
|
|
|
|
# 'libvirt' group is just to allow password-less polkit access to
|
|
|
|
@@ -1325,30 +1299,32 @@ getent group libvirt >/dev/null || groupadd -r libvirt
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
%post daemon
|
|
|
|
|
%libvirt_daemon_systemd_post_priv virtlogd
|
|
|
|
|
%libvirt_daemon_systemd_post_priv virtlockd
|
|
|
|
|
%if %{with_modular_daemons}
|
|
|
|
|
%libvirt_daemon_systemd_post_inet virtproxyd
|
|
|
|
|
%else
|
|
|
|
|
%libvirt_daemon_systemd_post_inet libvirtd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%systemd_post virtlockd.socket virtlockd-admin.socket
|
|
|
|
|
%systemd_post virtlogd.socket virtlogd-admin.socket
|
|
|
|
|
%systemd_post libvirtd.socket libvirtd-ro.socket libvirtd-admin.socket
|
|
|
|
|
%systemd_post libvirtd-tcp.socket libvirtd-tls.socket
|
|
|
|
|
%systemd_post libvirtd.service
|
|
|
|
|
%systemd_post libvirt-guests.service
|
|
|
|
|
|
|
|
|
|
# request daemon restart in posttrans
|
|
|
|
|
mkdir -p %{_localstatedir}/lib/rpm-state/libvirt || :
|
|
|
|
|
touch %{_localstatedir}/lib/rpm-state/libvirt/restart || :
|
|
|
|
|
%libvirt_daemon_schedule_restart libvirtd
|
|
|
|
|
|
|
|
|
|
%preun daemon
|
|
|
|
|
%systemd_preun libvirtd.service
|
|
|
|
|
%systemd_preun libvirtd-tcp.socket libvirtd-tls.socket
|
|
|
|
|
%systemd_preun libvirtd.socket libvirtd-ro.socket libvirtd-admin.socket
|
|
|
|
|
%systemd_preun virtlogd.socket virtlogd-admin.socket virtlogd.service
|
|
|
|
|
%systemd_preun virtlockd.socket virtlockd-admin.socket virtlockd.service
|
|
|
|
|
%systemd_preun libvirt-guests.service
|
|
|
|
|
|
|
|
|
|
%libvirt_daemon_systemd_preun_inet libvirtd
|
|
|
|
|
%libvirt_daemon_systemd_preun_inet virtproxyd
|
|
|
|
|
%libvirt_daemon_systemd_preun_priv virtlogd
|
|
|
|
|
%libvirt_daemon_systemd_preun_priv virtlockd
|
|
|
|
|
|
|
|
|
|
%postun daemon
|
|
|
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
|
|
if [ $1 -ge 1 ] ; then
|
|
|
|
|
/bin/systemctl reload-or-try-restart virtlockd.service >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl reload-or-try-restart virtlogd.service >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl reload-or-try-restart virtlockd.service virtlogd.service >/dev/null 2>&1 || :
|
|
|
|
|
fi
|
|
|
|
|
%systemd_postun libvirt-guests.service
|
|
|
|
|
|
|
|
|
|
# In upgrade scenario we must explicitly enable virtlockd/virtlogd
|
|
|
|
|
# sockets, if libvirtd is already enabled and start them if
|
|
|
|
@@ -1363,7 +1339,8 @@ if [ $1 -ge 1 ] ; then
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%posttrans daemon
|
|
|
|
|
if [ -f %{_localstatedir}/lib/rpm-state/libvirt/restart ]; then
|
|
|
|
|
if test %libvirt_daemon_needs_restart libvirtd
|
|
|
|
|
then
|
|
|
|
|
# See if user has previously modified their install to
|
|
|
|
|
# tell libvirtd to use --listen
|
|
|
|
|
grep -E '^LIBVIRTD_ARGS=.*--listen' /etc/sysconfig/libvirtd 1>/dev/null 2>&1
|
|
|
|
@@ -1373,11 +1350,12 @@ if [ -f %{_localstatedir}/lib/rpm-state/libvirt/restart ]; then
|
|
|
|
|
# systemd socket activation, because switching things
|
|
|
|
|
# might confuse mgmt tool like puppet/ansible that
|
|
|
|
|
# expect the old style libvirtd
|
|
|
|
|
/bin/systemctl mask libvirtd.socket >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl mask libvirtd-ro.socket >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl mask libvirtd-admin.socket >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl mask libvirtd-tls.socket >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl mask libvirtd-tcp.socket >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl mask \
|
|
|
|
|
libvirtd.socket \
|
|
|
|
|
libvirtd-ro.socket \
|
|
|
|
|
libvirtd-admin.socket \
|
|
|
|
|
libvirtd-tls.socket \
|
|
|
|
|
libvirtd-tcp.socket >/dev/null 2>&1 || :
|
|
|
|
|
else
|
|
|
|
|
# Old libvirtd owns the sockets and will delete them on
|
|
|
|
|
# shutdown. Can't use a try-restart as libvirtd will simply
|
|
|
|
@@ -1389,26 +1367,165 @@ if [ -f %{_localstatedir}/lib/rpm-state/libvirt/restart ]; then
|
|
|
|
|
then
|
|
|
|
|
/bin/systemctl stop libvirtd.service >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
|
|
/bin/systemctl try-restart libvirtd.socket >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl try-restart libvirtd-ro.socket >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl try-restart libvirtd-admin.socket >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl try-restart \
|
|
|
|
|
libvirtd.socket \
|
|
|
|
|
libvirtd-ro.socket \
|
|
|
|
|
libvirtd-admin.socket >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
|
|
/bin/systemctl start libvirtd.service >/dev/null 2>&1 || :
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
rm -rf %{_localstatedir}/lib/rpm-state/libvirt || :
|
|
|
|
|
|
|
|
|
|
%libvirt_daemon_finish_restart libvirtd
|
|
|
|
|
|
|
|
|
|
%post daemon-driver-network
|
|
|
|
|
%if %{with_firewalld_zone}
|
|
|
|
|
%firewalld_reload
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with_modular_daemons}
|
|
|
|
|
%libvirt_daemon_systemd_post virtnetworkd
|
|
|
|
|
%endif
|
|
|
|
|
%libvirt_daemon_schedule_restart virtnetworkd
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%libvirt_daemon_systemd_preun virtnetworkd
|
|
|
|
|
|
|
|
|
|
%postun daemon-driver-network
|
|
|
|
|
%if %{with_firewalld_zone}
|
|
|
|
|
%firewalld_reload
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%posttrans daemon-driver-network
|
|
|
|
|
%libvirt_daemon_perform_restart virtnetworkd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post daemon-driver-nwfilter
|
|
|
|
|
%if %{with_modular_daemons}
|
|
|
|
|
%libvirt_daemon_systemd_post virtnwfilterd
|
|
|
|
|
%endif
|
|
|
|
|
%libvirt_daemon_schedule_restart virtnwfilterd
|
|
|
|
|
|
|
|
|
|
%preun daemon-driver-nwfilter
|
|
|
|
|
%libvirt_daemon_systemd_preun virtnwfilterd
|
|
|
|
|
|
|
|
|
|
%posttrans daemon-driver-nwfilter
|
|
|
|
|
%libvirt_daemon_perform_restart virtnwfilterd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post daemon-driver-nodedev
|
|
|
|
|
%if %{with_modular_daemons}
|
|
|
|
|
%libvirt_daemon_systemd_post virtnodedevd
|
|
|
|
|
%endif
|
|
|
|
|
%libvirt_daemon_schedule_restart virtnodedevd
|
|
|
|
|
|
|
|
|
|
%preun daemon-driver-nodedev
|
|
|
|
|
%libvirt_daemon_systemd_preun virtnodedevd
|
|
|
|
|
|
|
|
|
|
%posttrans daemon-driver-nodedev
|
|
|
|
|
%libvirt_daemon_perform_restart virtnodedevd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post daemon-driver-interface
|
|
|
|
|
%if %{with_modular_daemons}
|
|
|
|
|
%libvirt_daemon_systemd_post virtinterfaced
|
|
|
|
|
%endif
|
|
|
|
|
%libvirt_daemon_schedule_restart virtinterfaced
|
|
|
|
|
|
|
|
|
|
%preun daemon-driver-interface
|
|
|
|
|
%libvirt_daemon_systemd_preun virtinterfaced
|
|
|
|
|
|
|
|
|
|
%posttrans daemon-driver-interface
|
|
|
|
|
%libvirt_daemon_perform_restart virtinterfaced
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post daemon-driver-secret
|
|
|
|
|
%if %{with_modular_daemons}
|
|
|
|
|
%libvirt_daemon_systemd_post virtsecretd
|
|
|
|
|
%endif
|
|
|
|
|
%libvirt_daemon_schedule_restart virtsecretd
|
|
|
|
|
|
|
|
|
|
%preun daemon-driver-secret
|
|
|
|
|
%libvirt_daemon_systemd_preun virtsecretd
|
|
|
|
|
|
|
|
|
|
%posttrans daemon-driver-secret
|
|
|
|
|
%libvirt_daemon_perform_restart virtsecretd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post daemon-driver-storage
|
|
|
|
|
%if %{with_modular_daemons}
|
|
|
|
|
%libvirt_daemon_systemd_post virtstoraged
|
|
|
|
|
%endif
|
|
|
|
|
%libvirt_daemon_schedule_restart virtstoraged
|
|
|
|
|
|
|
|
|
|
%preun daemon-driver-storage
|
|
|
|
|
%libvirt_daemon_systemd_preun virtstoraged
|
|
|
|
|
|
|
|
|
|
%posttrans daemon-driver-storage
|
|
|
|
|
%libvirt_daemon_perform_restart virtstoraged
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
|
%post daemon-driver-qemu
|
|
|
|
|
%if %{with_modular_daemons}
|
|
|
|
|
%libvirt_daemon_systemd_post virtqemud
|
|
|
|
|
%endif
|
|
|
|
|
%libvirt_daemon_schedule_restart virtqemud
|
|
|
|
|
|
|
|
|
|
%preun daemon-driver-qemu
|
|
|
|
|
%libvirt_daemon_systemd_preun virtqemud
|
|
|
|
|
|
|
|
|
|
%posttrans daemon-driver-qemu
|
|
|
|
|
%libvirt_daemon_perform_restart virtqemud
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_lxc}
|
|
|
|
|
%post daemon-driver-lxc
|
|
|
|
|
%if %{with_modular_daemons}
|
|
|
|
|
%libvirt_daemon_systemd_post virtlxcd
|
|
|
|
|
%endif
|
|
|
|
|
%libvirt_daemon_schedule_restart virtlxcd
|
|
|
|
|
|
|
|
|
|
%preun daemon-driver-lxc
|
|
|
|
|
%libvirt_daemon_systemd_preun virtlxcd
|
|
|
|
|
|
|
|
|
|
%posttrans daemon-driver-lxc
|
|
|
|
|
%libvirt_daemon_perform_restart virtlxcd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_vbox}
|
|
|
|
|
%post daemon-driver-vbox
|
|
|
|
|
%if %{with_modular_daemons}
|
|
|
|
|
%libvirt_daemon_systemd_post virtvboxd
|
|
|
|
|
%endif
|
|
|
|
|
%libvirt_daemon_schedule_restart virtvboxd
|
|
|
|
|
|
|
|
|
|
%preun daemon-driver-vbox
|
|
|
|
|
%libvirt_daemon_systemd_preun virtvboxd
|
|
|
|
|
|
|
|
|
|
%posttrans daemon-driver-vbox
|
|
|
|
|
%libvirt_daemon_perform_restart virtvboxd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_libxl}
|
|
|
|
|
%post daemon-driver-libxl
|
|
|
|
|
%if %{with_modular_daemons}
|
|
|
|
|
%libvirt_daemon_systemd_post virtxend
|
|
|
|
|
%endif
|
|
|
|
|
%libvirt_daemon_schedule_restart virtxend
|
|
|
|
|
|
|
|
|
|
%preun daemon-driver-libxl
|
|
|
|
|
%libvirt_daemon_systemd_preun virtxend
|
|
|
|
|
|
|
|
|
|
%posttrans daemon-driver-libxl
|
|
|
|
|
%libvirt_daemon_perform_restart virtxend
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post daemon-config-network
|
|
|
|
|
if test $1 -eq 1 && test ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml ; then
|
|
|
|
|
# see if the network used by default network creates a conflict,
|
|
|
|
@@ -1447,15 +1564,13 @@ if test $1 -eq 1 && test ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml ;
|
|
|
|
|
chmod 0600 %{_sysconfdir}/libvirt/qemu/networks/default.xml
|
|
|
|
|
|
|
|
|
|
# Make sure libvirt picks up the new network defininiton
|
|
|
|
|
mkdir -p %{_localstatedir}/lib/rpm-state/libvirt || :
|
|
|
|
|
touch %{_localstatedir}/lib/rpm-state/libvirt/restart || :
|
|
|
|
|
%libvirt_daemon_schedule_restart libvirtd
|
|
|
|
|
%libvirt_daemon_schedule_restart virtnetworkd
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%posttrans daemon-config-network
|
|
|
|
|
if [ -f %{_localstatedir}/lib/rpm-state/libvirt/restart ]; then
|
|
|
|
|
/bin/systemctl try-restart libvirtd.service >/dev/null 2>&1 || :
|
|
|
|
|
fi
|
|
|
|
|
rm -rf %{_localstatedir}/lib/rpm-state/libvirt || :
|
|
|
|
|
%libvirt_daemon_perform_restart libvirtd
|
|
|
|
|
%libvirt_daemon_perform_restart virtnetworkd
|
|
|
|
|
|
|
|
|
|
%post daemon-config-nwfilter
|
|
|
|
|
for datadir_file in %{_datadir}/libvirt/nwfilter/*.xml; do
|
|
|
|
@@ -1466,15 +1581,12 @@ for datadir_file in %{_datadir}/libvirt/nwfilter/*.xml; do
|
|
|
|
|
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 || :
|
|
|
|
|
%libvirt_daemon_schedule_restart libvirtd
|
|
|
|
|
%libvirt_daemon_schedule_restart virtnwfilterd
|
|
|
|
|
|
|
|
|
|
%posttrans daemon-config-nwfilter
|
|
|
|
|
if [ -f %{_localstatedir}/lib/rpm-state/libvirt/restart ]; then
|
|
|
|
|
/bin/systemctl try-restart libvirtd.service >/dev/null 2>&1 || :
|
|
|
|
|
fi
|
|
|
|
|
rm -rf %{_localstatedir}/lib/rpm-state/libvirt || :
|
|
|
|
|
|
|
|
|
|
%libvirt_daemon_perform_restart libvirtd
|
|
|
|
|
%libvirt_daemon_perform_restart virtnwfilterd
|
|
|
|
|
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
|
%pre daemon-driver-qemu
|
|
|
|
@@ -1493,16 +1605,6 @@ fi
|
|
|
|
|
exit 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%preun client
|
|
|
|
|
|
|
|
|
|
%systemd_preun libvirt-guests.service
|
|
|
|
|
|
|
|
|
|
%post client
|
|
|
|
|
%systemd_post libvirt-guests.service
|
|
|
|
|
|
|
|
|
|
%postun client
|
|
|
|
|
%systemd_postun libvirt-guests.service
|
|
|
|
|
|
|
|
|
|
%if %{with_lxc}
|
|
|
|
|
%pre login-shell
|
|
|
|
|
getent group virtlogin >/dev/null || groupadd -r virtlogin
|
|
|
|
@@ -1538,6 +1640,7 @@ exit 0
|
|
|
|
|
%{_unitdir}/virtlockd.service
|
|
|
|
|
%{_unitdir}/virtlockd.socket
|
|
|
|
|
%{_unitdir}/virtlockd-admin.socket
|
|
|
|
|
%{_unitdir}/libvirt-guests.service
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/libvirtd
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/virtproxyd
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/virtlogd
|
|
|
|
@@ -1547,6 +1650,7 @@ exit 0
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/libvirt/virtlogd.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/libvirt/virtlockd.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/libvirt-guests
|
|
|
|
|
%config(noreplace) %{_prefix}/lib/sysctl.d/60-libvirtd.conf
|
|
|
|
|
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd
|
|
|
|
@@ -1592,12 +1696,20 @@ exit 0
|
|
|
|
|
%attr(0755, root, root) %{_sbindir}/virtproxyd
|
|
|
|
|
%attr(0755, root, root) %{_sbindir}/virtlogd
|
|
|
|
|
%attr(0755, root, root) %{_sbindir}/virtlockd
|
|
|
|
|
%attr(0755, root, root) %{_libexecdir}/libvirt-guests.sh
|
|
|
|
|
|
|
|
|
|
%{_mandir}/man1/virt-admin.1*
|
|
|
|
|
%{_mandir}/man1/virt-host-validate.1*
|
|
|
|
|
%{_mandir}/man8/libvirtd.8*
|
|
|
|
|
%{_mandir}/man8/virtlogd.8*
|
|
|
|
|
%{_mandir}/man8/virtlockd.8*
|
|
|
|
|
%{_mandir}/man8/virtproxyd.8*
|
|
|
|
|
%{_mandir}/man7/virkey*.7*
|
|
|
|
|
|
|
|
|
|
%{_bindir}/virt-host-validate
|
|
|
|
|
%{_bindir}/virt-admin
|
|
|
|
|
%{_datadir}/bash-completion/completions/virt-admin
|
|
|
|
|
|
|
|
|
|
%files daemon-config-network
|
|
|
|
|
%dir %{_datadir}/libvirt/networks/
|
|
|
|
|
%{_datadir}/libvirt/networks/default.xml
|
|
|
|
@@ -1620,6 +1732,7 @@ 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
|
|
|
|
@@ -1639,6 +1752,7 @@ 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
|
|
|
|
@@ -1655,6 +1769,7 @@ 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
|
|
|
|
@@ -1669,6 +1784,7 @@ 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
|
|
|
|
@@ -1681,6 +1797,7 @@ 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
|
|
|
|
|
|
|
|
|
@@ -1698,6 +1815,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
|
|
|
|
@@ -1766,6 +1884,7 @@ exit 0
|
|
|
|
|
%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}
|
|
|
|
@@ -1788,6 +1907,7 @@ 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}
|
|
|
|
@@ -1810,6 +1930,7 @@ 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}
|
|
|
|
@@ -1824,6 +1945,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}
|
|
|
|
@@ -1867,25 +1989,12 @@ exit 0
|
|
|
|
|
%{_mandir}/man1/virsh.1*
|
|
|
|
|
%{_mandir}/man1/virt-xml-validate.1*
|
|
|
|
|
%{_mandir}/man1/virt-pki-validate.1*
|
|
|
|
|
%{_mandir}/man1/virt-host-validate.1*
|
|
|
|
|
%{_bindir}/virsh
|
|
|
|
|
%{_bindir}/virt-xml-validate
|
|
|
|
|
%{_bindir}/virt-pki-validate
|
|
|
|
|
%{_bindir}/virt-host-validate
|
|
|
|
|
|
|
|
|
|
%{_datadir}/systemtap/tapset/libvirt_probes*.stp
|
|
|
|
|
%{_datadir}/systemtap/tapset/libvirt_functions.stp
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
|
%{_datadir}/systemtap/tapset/libvirt_qemu_probes*.stp
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%{_datadir}/bash-completion/completions/virsh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{_unitdir}/libvirt-guests.service
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/libvirt-guests
|
|
|
|
|
%attr(0755, root, root) %{_libexecdir}/libvirt-guests.sh
|
|
|
|
|
|
|
|
|
|
%files libs -f %{name}.lang
|
|
|
|
|
%license COPYING COPYING.LESSER
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/libvirt/libvirt.conf
|
|
|
|
@@ -1898,20 +2007,18 @@ exit 0
|
|
|
|
|
%dir %{_datadir}/libvirt/schemas/
|
|
|
|
|
%dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/
|
|
|
|
|
|
|
|
|
|
%{_datadir}/systemtap/tapset/libvirt_probes*.stp
|
|
|
|
|
%{_datadir}/systemtap/tapset/libvirt_functions.stp
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
|
%{_datadir}/systemtap/tapset/libvirt_qemu_probes*.stp
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%{_datadir}/libvirt/schemas/*.rng
|
|
|
|
|
|
|
|
|
|
%{_datadir}/libvirt/cpu_map/*.xml
|
|
|
|
|
|
|
|
|
|
%{_datadir}/libvirt/test-screenshot.png
|
|
|
|
|
|
|
|
|
|
%files admin
|
|
|
|
|
%{_mandir}/man1/virt-admin.1*
|
|
|
|
|
%{_bindir}/virt-admin
|
|
|
|
|
%{_datadir}/bash-completion/completions/virt-admin
|
|
|
|
|
|
|
|
|
|
%files bash-completion
|
|
|
|
|
%{_datadir}/bash-completion/completions/vsh
|
|
|
|
|
|
|
|
|
|
%if %{with_wireshark}
|
|
|
|
|
%files wireshark
|
|
|
|
|
%{wireshark_plugindir}/libvirt.so
|
|
|
|
@@ -1966,6 +2073,50 @@ exit 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Dec 16 2021 Daniel P. Berrangé <berrange@redhat.com> - 7.6.0-5
|
|
|
|
|
- Fix mistakes in post scripts causing uninstall errors
|
|
|
|
|
|
|
|
|
|
* Mon Dec 13 2021 Daniel P. Berrangé <berrange@redhat.com> - 7.6.0-4
|
|
|
|
|
- Rebuild for changed wireshark soname (rhbz#2031316)
|
|
|
|
|
|
|
|
|
|
* Wed Sep 8 2021 Daniel P. Berrangé <berrange@redhat.com> - 7.6.0-3
|
|
|
|
|
- Fix bad post transaction script tag
|
|
|
|
|
- Fix deps on virtlockd/virtlogd socket units (rhbz#2002279)
|
|
|
|
|
|
|
|
|
|
* Wed Aug 4 2021 Daniel P. Berrangé <berrange@redhat.com> - 7.6.0-2
|
|
|
|
|
- Switch to use modular daemons by default
|
|
|
|
|
|
|
|
|
|
* Mon Aug 2 2021 Daniel P. Berrangé <berrange@redhat.com> - 7.6.0-1
|
|
|
|
|
- Update to 7.6.0 release
|
|
|
|
|
|
|
|
|
|
* Wed Jul 28 2021 Richard W.M. Jones <rjones@redhat.com> - 7.5.0-3
|
|
|
|
|
- Add fix for discard + copy-on-read affecting virt-v2v (RHBZ#1986509)
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.5.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 01 2021 Cole Robinson <crobinso@redhat.com> - 7.5.0-1
|
|
|
|
|
- Update to version 7.5.0
|
|
|
|
|
|
|
|
|
|
* Mon Jun 07 2021 Cole Robinson <crobinso@redhat.com> - 7.4.0-2
|
|
|
|
|
- Rebuild for xen 4.14
|
|
|
|
|
|
|
|
|
|
* Tue Jun 01 2021 Cole Robinson <crobinso@redhat.com> - 7.4.0-1
|
|
|
|
|
- Update to version 7.4.0
|
|
|
|
|
|
|
|
|
|
* Tue May 4 2021 Daniel P. Berrangé <berrange@redhat.com> - 7.3.0-1
|
|
|
|
|
- Update to 7.3.0 release
|
|
|
|
|
- Remove libvirt-admin & libvirt-bash-completion subpackages
|
|
|
|
|
|
|
|
|
|
* Mon Apr 05 2021 Cole Robinson <crobinso@redhat.com> - 7.2.0-1
|
|
|
|
|
- Update to version 7.2.0
|
|
|
|
|
|
|
|
|
|
* Tue Mar 9 2021 Richard W.M. Jones <rjones@redhat.com> - 7.1.0-2
|
|
|
|
|
- Bump and rebuild for libwsman_client.so.4 -> .5
|
|
|
|
|
|
|
|
|
|
* Mon Mar 01 2021 Cole Robinson <crobinso@redhat.com> - 7.1.0-1
|
|
|
|
|
- Update to version 7.1.0
|
|
|
|
|
|
|
|
|
|
* Wed Feb 03 2021 Cole Robinson <aintdiscole@gmail.com> - 7.0.0-4
|
|
|
|
|
- Increase meson test timeout to fix builds on s390x copr
|
|
|
|
|
|
|
|
|
|