Compare commits

1 Commits
main ... 1.1

6 changed files with 606 additions and 852 deletions

View File

@@ -1,19 +1,18 @@
<services> <services>
<service name="obs_scm" mode="manual"> <service name="tar_scm" mode="manual">
<param name="scm">git</param> <param name="scm">git</param>
<param name="url">https://github.com/openSUSE/libvirt.git</param> <param name="url">https://gitlab.suse.de/virtualization/libvirt.git</param>
<param name="revision">factory</param> <param name="revision">v10.0.0-sle15sp6</param>
<param name="extract">libvirt.spec</param> <param name="extract">libvirt.spec</param>
<param name="extract">README.packaging.txt</param> <param name="extract">README.packaging.txt</param>
<param name="extract">libvirt-supportconfig</param> <param name="extract">libvirt-supportconfig</param>
<param name="versionformat">@PARENT_TAG@</param> <param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">[v]?([^-a-z]+)(.*)</param> <param name="versionrewrite-pattern">[v]?([^-+a-z]+)(.*)</param>
<param name="versionrewrite-replacement">\1</param> <param name="versionrewrite-replacement">\1</param>
<param name="changesgenerate">disable</param> <param name="changesgenerate">disable</param>
</service> </service>
<service name="set_version" mode="manual"/> <service name="set_version" mode="manual"/>
<service name="tar" mode="buildtime"/> <service name="recompress" mode="manual">
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param> <param name="file">*.tar</param>
<param name="compression">xz</param> <param name="compression">xz</param>
</service> </service>

BIN
libvirt-10.0.0.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
libvirt-11.1.0.obscpio (Stored with Git LFS)

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +0,0 @@
name: libvirt
version: 11.1.0
mtime: 1742591065
commit: 94bef57c42bb20ebafec2dba902cae2c0e3a32e6

View File

@@ -1,7 +1,7 @@
# #
# spec file for package libvirt # spec file for package libvirt
# #
# Copyright (c) 2025 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -38,11 +38,7 @@
%define with_storage_gluster 0%{!?_without_storage_gluster:1} %define with_storage_gluster 0%{!?_without_storage_gluster:1}
%define with_storage_iscsi_direct 0%{!?_without_storage_iscsi_direct:0} %define with_storage_iscsi_direct 0%{!?_without_storage_iscsi_direct:0}
%define with_apparmor 0%{!?_without_apparmor:1} %define with_apparmor 0%{!?_without_apparmor:1}
# The udev interface backend is the only one that works across SUSE distros. %define with_interface 0%{!?_without_interface:1}
# It supports just a handful of read-only operations, has a history of
# instability, and is insufficiently maintained. Completely disable the
# interface driver.
%define with_interface 0%{!?_without_interface:0}
# Optional bits on by default # Optional bits on by default
%define with_sanlock 0%{!?_without_sanlock:1} %define with_sanlock 0%{!?_without_sanlock:1}
@@ -51,7 +47,6 @@
%define with_libssh2 0%{!?_without_libssh2:1} %define with_libssh2 0%{!?_without_libssh2:1}
%define with_numactl 0%{!?_without_numactl:1} %define with_numactl 0%{!?_without_numactl:1}
%define with_modular_daemons 0%{!?_without_modular_daemons:1} %define with_modular_daemons 0%{!?_without_modular_daemons:1}
%define with_userfaultfd_sysctl 0%{!?_without_userfaultfd_sysctl:1}
# A few optional bits off by default, we enable later # A few optional bits off by default, we enable later
%define with_numad 0%{!?_without_numad:0} %define with_numad 0%{!?_without_numad:0}
@@ -72,12 +67,6 @@
%define with_numactl 0 %define with_numactl 0
%endif %endif
# Tumbleweeed is new enough to support /dev/userfaultfd, which
# does not require enabling vm.unprivileged_userfaultfd sysct
%if 0%{?suse_version} > 1500
%define with_userfaultfd_sysctl 0
%endif
# vbox is available only on i386 x86_64 # vbox is available only on i386 x86_64
%ifnarch %{ix86} x86_64 %ifnarch %{ix86} x86_64
%define with_vbox 0 %define with_vbox 0
@@ -112,26 +101,15 @@
%endif %endif
%endif %endif
# Items to exclude in SLFO:Main based products # Items to exclude in ALP-based products
%if 0%{?suse_version} == 1600 %if 0%{?suse_version} == 1600
%define with_apparmor 0
%define with_esx 0
%define with_interface 0
%define with_libxl 0 %define with_libxl 0
%define with_lxc 0 %define with_apparmor 0
%define with_numad 0 %define with_interface 0
%define with_sanlock 0 %define with_sanlock 0
%define with_numad 0
%define with_esx 0
%define with_storage_gluster 0 %define with_storage_gluster 0
%define with_storage_rbd 0
%endif
# Prefer nftables if available
%if "%{?default_firewall_backend}" == "nftables"
%define prefer_nftables 1
%define firewall_backend_priority nftables,iptables
%else
%define prefer_nftables 0
%define firewall_backend_priority iptables,nftables
%endif %endif
# Force QEMU to run as qemu:qemu # Force QEMU to run as qemu:qemu
@@ -150,7 +128,7 @@
Name: libvirt Name: libvirt
URL: https://libvirt.org/ URL: https://libvirt.org/
Version: 11.1.0 Version: 10.0.0
Release: 0 Release: 0
Summary: Library providing a virtualization API Summary: Library providing a virtualization API
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
@@ -197,7 +175,7 @@ BuildRequires: libacl-devel
BuildRequires: qemu-tools BuildRequires: qemu-tools
%endif %endif
BuildRequires: bash-completion-devel >= 2.0 BuildRequires: bash-completion-devel >= 2.0
BuildRequires: glib2-devel >= 2.66 BuildRequires: glib2-devel >= 2.56
BuildRequires: libattr-devel BuildRequires: libattr-devel
BuildRequires: libgcrypt-devel BuildRequires: libgcrypt-devel
BuildRequires: libgnutls-devel BuildRequires: libgnutls-devel
@@ -212,7 +190,7 @@ BuildRequires: readline-devel
# For pool-build probing for existing pools # For pool-build probing for existing pools
BuildRequires: libblkid-devel >= 2.17 BuildRequires: libblkid-devel >= 2.17
BuildRequires: libpciaccess0-devel >= 0.10.9 BuildRequires: libpciaccess0-devel >= 0.10.9
BuildRequires: libjson-c-devel BuildRequires: libyajl-devel
BuildRequires: pkgconfig(libudev) >= 145 BuildRequires: pkgconfig(libudev) >= 145
%if %{with_sanlock} %if %{with_sanlock}
BuildRequires: sanlock-devel >= 2.4 BuildRequires: sanlock-devel >= 2.4
@@ -226,6 +204,8 @@ BuildRequires: apparmor-rpm-macros
BuildRequires: libapparmor-devel BuildRequires: libapparmor-devel
%endif %endif
BuildRequires: cyrus-sasl-devel BuildRequires: cyrus-sasl-devel
BuildRequires: ebtables
BuildRequires: iptables
BuildRequires: polkit >= 0.112 BuildRequires: polkit >= 0.112
%if %{with_nbdkit} %if %{with_nbdkit}
BuildRequires: libnbd-devel BuildRequires: libnbd-devel
@@ -303,8 +283,6 @@ on a single hardware system where the basic resources are driven by a
Linux instance. The library aims to provide long term stable C API Linux instance. The library aims to provide long term stable C API
to interact with Linux virtualization technologies. to interact with Linux virtualization technologies.
This package does not contain files, it just requires the necessary packages.
%package doc %package doc
Summary: API reference and website documentation for libvirt Summary: API reference and website documentation for libvirt
BuildArch: noarch BuildArch: noarch
@@ -352,11 +330,6 @@ Requires: group(libvirt)
# Needed by libvirt-guests init script. # Needed by libvirt-guests init script.
Requires: gettext-runtime Requires: gettext-runtime
Requires: bash-completion >= 2.0 Requires: bash-completion >= 2.0
# virt-manager uses netcat for accessing spice and VNC servers running in
# qemu processes. See boo#1222100 for details. Although libvirt does not
# use netcat, it's in a good position to provide the dependency for
# virt-manager. netcat-openbsd is a tiny package, so it's a tolerable hack.
Requires: netcat-openbsd
%if %{with_apparmor} %if %{with_apparmor}
Recommends: apparmor-abstractions Recommends: apparmor-abstractions
@@ -381,7 +354,6 @@ resources
%package daemon-plugin-lockd %package daemon-plugin-lockd
Summary: lockd client plugin for virtlockd Summary: lockd client plugin for virtlockd
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Requires: %{name}-daemon-common = %{version}-%{release}
%description daemon-plugin-lockd %description daemon-plugin-lockd
A client-side plugin that implements disk locking using POSIX fcntl advisory A client-side plugin that implements disk locking using POSIX fcntl advisory
@@ -397,18 +369,22 @@ Server side daemon used to manage logs from virtual machine consoles
%package daemon-proxy %package daemon-proxy
Summary: Server side daemon providing libvirtd proxy Summary: Server side daemon providing libvirtd proxy
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
# netcat is needed on the server side so that clients that have
# libvirt < 6.9.0 can connect, but newer versions will prefer
# virt-ssh-helper
Recommends: netcat-openbsd
%description daemon-proxy %description daemon-proxy
Server side daemon providing functionality previously provided by Server side daemon providing functionality previously provided by
the monolithic libvirtd the monolithic libvirtd
%package daemon-hooks %package daemon-hooks
Summary: Hook scripts for QEMU Summary: Hook scripts for the libvirtd daemon
Requires: %{name}-daemon-driver-qemu = %{version}-%{release} Requires: %{name}-daemon = %{version}-%{release}
Requires: python3-lxml Requires: python3-lxml
%description daemon-hooks %description daemon-hooks
Hook scripts for the virtqemud daemon Default hook scripts for the libvirt daemon
%package daemon-config-network %package daemon-config-network
Summary: Default configuration files for the libvirtd daemon Summary: Default configuration files for the libvirtd daemon
@@ -430,11 +406,7 @@ Summary: Network driver plugin for the libvirtd daemon
Requires: %{name}-daemon-common = %{version}-%{release} Requires: %{name}-daemon-common = %{version}-%{release}
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Requires: dnsmasq >= 2.41 Requires: dnsmasq >= 2.41
%if %{prefer_nftables}
Requires: nftables
%else
Requires: iptables Requires: iptables
%endif
%description daemon-driver-network %description daemon-driver-network
The network driver plugin for the libvirtd daemon, providing The network driver plugin for the libvirtd daemon, providing
@@ -491,7 +463,7 @@ an implementation of the secret key APIs.
Summary: Storage driver plugin including base backends for the libvirtd daemon Summary: Storage driver plugin including base backends for the libvirtd daemon
Requires: %{name}-daemon-common = %{version}-%{release} Requires: %{name}-daemon-common = %{version}-%{release}
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Recommends: nfs-utils Requires: nfs-utils
# For mkfs # For mkfs
Requires: util-linux Requires: util-linux
%if %{with_qemu} %if %{with_qemu}
@@ -605,8 +577,6 @@ The storage driver plugin for the libvirtd daemon, providing
an implementation of the storage APIs using LVM, iSCSI, an implementation of the storage APIs using LVM, iSCSI,
parted and more. parted and more.
This package does not contain files, it just requires the necessary packages.
%package daemon-driver-qemu %package daemon-driver-qemu
Summary: Qemu driver plugin for the libvirtd daemon Summary: Qemu driver plugin for the libvirtd daemon
Requires: %{name}-daemon-common = %{version}-%{release} Requires: %{name}-daemon-common = %{version}-%{release}
@@ -618,7 +588,6 @@ Requires: /usr/bin/bzip2
Requires: /usr/bin/gzip Requires: /usr/bin/gzip
Requires: /usr/bin/lzop Requires: /usr/bin/lzop
Requires: /usr/bin/xz Requires: /usr/bin/xz
Requires: /usr/bin/zstd
Requires: qemu Requires: qemu
Requires: systemd-container Requires: systemd-container
# swtp is needed to manage <tpm> devices. # swtp is needed to manage <tpm> devices.
@@ -696,7 +665,7 @@ Requires: %{name}-daemon-driver-interface = %{version}-%{release}
%endif %endif
Requires: %{name}-daemon-driver-network = %{version}-%{release} Requires: %{name}-daemon-driver-network = %{version}-%{release}
Requires: %{name}-daemon-driver-nodedev = %{version}-%{release} Requires: %{name}-daemon-driver-nodedev = %{version}-%{release}
Recommends: %{name}-daemon-driver-nwfilter = %{version}-%{release} Requires: %{name}-daemon-driver-nwfilter = %{version}-%{release}
Requires: %{name}-daemon-driver-qemu = %{version}-%{release} Requires: %{name}-daemon-driver-qemu = %{version}-%{release}
Requires: %{name}-daemon-driver-secret = %{version}-%{release} Requires: %{name}-daemon-driver-secret = %{version}-%{release}
Requires: %{name}-daemon-driver-storage = %{version}-%{release} Requires: %{name}-daemon-driver-storage = %{version}-%{release}
@@ -705,8 +674,6 @@ Requires: %{name}-daemon-driver-storage = %{version}-%{release}
Server side daemon and driver required to manage the virtualization Server side daemon and driver required to manage the virtualization
capabilities of the QEMU emulators capabilities of the QEMU emulators
This package does not contain files, it just requires the necessary packages.
%package daemon-lxc %package daemon-lxc
Summary: Server side daemon & driver required to run LXC guests Summary: Server side daemon & driver required to run LXC guests
%if %{with_modular_daemons} %if %{with_modular_daemons}
@@ -720,7 +687,7 @@ Requires: %{name}-daemon-driver-interface = %{version}-%{release}
Requires: %{name}-daemon-driver-lxc = %{version}-%{release} Requires: %{name}-daemon-driver-lxc = %{version}-%{release}
Requires: %{name}-daemon-driver-network = %{version}-%{release} Requires: %{name}-daemon-driver-network = %{version}-%{release}
Requires: %{name}-daemon-driver-nodedev = %{version}-%{release} Requires: %{name}-daemon-driver-nodedev = %{version}-%{release}
Recommends: %{name}-daemon-driver-nwfilter = %{version}-%{release} Requires: %{name}-daemon-driver-nwfilter = %{version}-%{release}
Requires: %{name}-daemon-driver-secret = %{version}-%{release} Requires: %{name}-daemon-driver-secret = %{version}-%{release}
Requires: %{name}-daemon-driver-storage = %{version}-%{release} Requires: %{name}-daemon-driver-storage = %{version}-%{release}
@@ -728,8 +695,6 @@ Requires: %{name}-daemon-driver-storage = %{version}-%{release}
Server side daemon and driver required to manage the virtualization Server side daemon and driver required to manage the virtualization
capabilities of LXC capabilities of LXC
This package does not contain files, it just requires the necessary packages.
%package daemon-xen %package daemon-xen
Summary: Server side daemon & driver required to run XEN guests Summary: Server side daemon & driver required to run XEN guests
%if %{with_modular_daemons} %if %{with_modular_daemons}
@@ -744,6 +709,7 @@ Requires: %{name}-daemon-driver-interface = %{version}-%{release}
Requires: %{name}-daemon-driver-libxl = %{version}-%{release} Requires: %{name}-daemon-driver-libxl = %{version}-%{release}
Requires: %{name}-daemon-driver-network = %{version}-%{release} Requires: %{name}-daemon-driver-network = %{version}-%{release}
Requires: %{name}-daemon-driver-nodedev = %{version}-%{release} Requires: %{name}-daemon-driver-nodedev = %{version}-%{release}
Requires: %{name}-daemon-driver-nwfilter = %{version}-%{release}
Requires: %{name}-daemon-driver-secret = %{version}-%{release} Requires: %{name}-daemon-driver-secret = %{version}-%{release}
Requires: %{name}-daemon-driver-storage = %{version}-%{release} Requires: %{name}-daemon-driver-storage = %{version}-%{release}
Requires: xen Requires: xen
@@ -752,8 +718,6 @@ Requires: xen
Server side daemon and driver required to manage the virtualization Server side daemon and driver required to manage the virtualization
capabilities of XEN capabilities of XEN
This package does not contain files, it just requires the necessary packages.
%package daemon-vbox %package daemon-vbox
Summary: Server side daemon & driver required to run VirtualBox guests Summary: Server side daemon & driver required to run VirtualBox guests
%if ! %{with_modular_daemons} %if ! %{with_modular_daemons}
@@ -764,7 +728,7 @@ Requires: %{name}-daemon-driver-interface = %{version}-%{release}
%endif %endif
Requires: %{name}-daemon-driver-network = %{version}-%{release} Requires: %{name}-daemon-driver-network = %{version}-%{release}
Requires: %{name}-daemon-driver-nodedev = %{version}-%{release} Requires: %{name}-daemon-driver-nodedev = %{version}-%{release}
Recommends: %{name}-daemon-driver-nwfilter = %{version}-%{release} Requires: %{name}-daemon-driver-nwfilter = %{version}-%{release}
Requires: %{name}-daemon-driver-secret = %{version}-%{release} Requires: %{name}-daemon-driver-secret = %{version}-%{release}
Requires: %{name}-daemon-driver-storage = %{version}-%{release} Requires: %{name}-daemon-driver-storage = %{version}-%{release}
Requires: %{name}-daemon-driver-vbox = %{version}-%{release} Requires: %{name}-daemon-driver-vbox = %{version}-%{release}
@@ -776,12 +740,13 @@ Requires: virtualbox < 5.3
Server side daemon and driver required to manage the virtualization Server side daemon and driver required to manage the virtualization
capabilities of VirtualBox capabilities of VirtualBox
This package does not contain files, it just requires the necessary packages.
%package client %package client
Summary: Client side utilities of the libvirt library Summary: Client side utilities of the libvirt library
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
# Needed by virt-pki-validate script.
Requires: cyrus-sasl
Requires: bash-completion >= 2.0 Requires: bash-completion >= 2.0
Requires: gnutls
# Ensure smooth upgrades # Ensure smooth upgrades
Obsoletes: libvirt-bash-completion < 7.3.0 Obsoletes: libvirt-bash-completion < 7.3.0
@@ -822,7 +787,6 @@ Summary: Sanlock lock manager plugin for QEMU driver
Requires: sanlock >= 2.4 Requires: sanlock >= 2.4
# For virt-sanlock-cleanup require augeas # For virt-sanlock-cleanup require augeas
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Requires: %{name}-daemon-common = %{version}-%{release}
Requires: augeas Requires: augeas
Obsoletes: %{name}-lock-sanlock < 9.0.0 Obsoletes: %{name}-lock-sanlock < 9.0.0
Provides: %{name}-lock-sanlock = %{version}-%{release} Provides: %{name}-lock-sanlock = %{version}-%{release}
@@ -845,13 +809,6 @@ Requires: %{name}-daemon-driver-network = %{version}-%{release}
%description nss %description nss
libvirt plugin for NSS for translating domain names into IP addresses. libvirt plugin for NSS for translating domain names into IP addresses.
%package ssh-proxy
Summary: Libvirt SSH proxy
Requires: %{name}-libs = %{version}-%{release}
%description ssh-proxy
Allows SSH into domains via VSOCK without need for network.
%prep %prep
%autosetup -p1 %autosetup -p1
@@ -943,11 +900,6 @@ Allows SSH into domains via VSOCK without need for network.
%else %else
%define arg_numad -Dnumad=disabled %define arg_numad -Dnumad=disabled
%endif %endif
%if %{with_userfaultfd_sysctl}
%define arg_userfaultfd_sysctl -Duserfaultfd_sysctl=enabled
%else
%define arg_userfaultfd_sysctl -Duserfaultfd_sysctl=disabled
%endif
%if %{with_nbdkit} %if %{with_nbdkit}
%define arg_nbdkit -Dnbdkit=enabled %define arg_nbdkit -Dnbdkit=enabled
%else %else
@@ -1036,8 +988,6 @@ Allows SSH into domains via VSOCK without need for network.
%meson \ %meson \
--libexecdir=%{_libexecdir} \ --libexecdir=%{_libexecdir} \
-Drunstatedir=%{_rundir} \ -Drunstatedir=%{_rundir} \
-Dunitdir=%{_unitdir} \
-Dsysusersdir=%{_sysusersdir} \
%{?arg_qemu} \ %{?arg_qemu} \
%{?arg_openvz} \ %{?arg_openvz} \
%{?arg_lxc} \ %{?arg_lxc} \
@@ -1070,11 +1020,8 @@ Allows SSH into domains via VSOCK without need for network.
-Dstorage_vstorage=disabled \ -Dstorage_vstorage=disabled \
%{?arg_numactl} \ %{?arg_numactl} \
%{?arg_numad} \ %{?arg_numad} \
%{?arg_userfaultfd_sysctl} \
%{?arg_nbdkit} \ %{?arg_nbdkit} \
%{?arg_nbdkit_config_default} \ %{?arg_nbdkit_config_default} \
-Dssh_proxy=enabled \
-Dsysctl_config=enabled \
-Dcapng=enabled \ -Dcapng=enabled \
-Dfuse=enabled \ -Dfuse=enabled \
-Dnetcf=disabled \ -Dnetcf=disabled \
@@ -1084,7 +1031,7 @@ Allows SSH into domains via VSOCK without need for network.
%{?arg_apparmor} \ %{?arg_apparmor} \
%{?arg_apparmor_profiles} \ %{?arg_apparmor_profiles} \
-Dudev=enabled \ -Dudev=enabled \
-Djson_c=enabled \ -Dyajl=enabled \
%{?arg_sanlock} \ %{?arg_sanlock} \
-Dlibpcap=enabled \ -Dlibpcap=enabled \
-Dlibnl=enabled \ -Dlibnl=enabled \
@@ -1104,7 +1051,6 @@ Allows SSH into domains via VSOCK without need for network.
-Dexpensive_tests=enabled \ -Dexpensive_tests=enabled \
%{?arg_loader_nvram} \ %{?arg_loader_nvram} \
-Dinit_script=systemd \ -Dinit_script=systemd \
-Dfirewall_backend_priority=%{firewall_backend_priority} \
-Ddocs=enabled \ -Ddocs=enabled \
-Dtests=enabled \ -Dtests=enabled \
-Drpath=disabled \ -Drpath=disabled \
@@ -1133,9 +1079,7 @@ mv %{buildroot}/%{_sysconfdir}/logrotate.d/libvirtd %{buildroot}/%{logrotate_dir
%endif %endif
mkdir -p %{buildroot}/%{_localstatedir}/lib/%{name} mkdir -p %{buildroot}/%{_localstatedir}/lib/%{name}
%if %{with_qemu}
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/hooks mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/hooks
%endif
%find_lang %{name} %find_lang %{name}
install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/networks/ install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/networks/
cp %{buildroot}/%{_sysconfdir}/%{name}/qemu/networks/default.xml \ cp %{buildroot}/%{_sysconfdir}/%{name}/qemu/networks/default.xml \
@@ -1167,9 +1111,34 @@ rm -f %{buildroot}/%{_datadir}/augeas/lenses/libvirt_sanlock.aug
rm -f %{buildroot}/%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug rm -f %{buildroot}/%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
%endif %endif
rm -f %{buildroot}/%{_sysusersdir}/libvirt.conf
rm -f %{buildroot}/%{_sysusersdir}/libvirt-qemu.conf
rm -f %{buildroot}/usr/lib/sysctl.d/60-libvirtd.conf rm -f %{buildroot}/usr/lib/sysctl.d/60-libvirtd.conf
# Provide rc symlink backward compatibility
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rclibvirtd
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcvirtproxyd
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcvirtlogd
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcvirtlockd
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcvirtnetworkd
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcvirtnodedevd
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcvirtnwfilterd
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcvirtsecretd
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcvirtstoraged
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rclibvirt-guests
%if %{with_interface}
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcvirtinterfaced
%endif
%if %{with_qemu}
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcvirtqemud
%endif
%if %{with_lxc}
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcvirtlxcd
%endif
%if %{with_libxl}
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcvirtxend
%endif
%if %{with_vbox}
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcvirtvboxd
%endif
# Install firewall services for migration ports # Install firewall services for migration ports
mkdir -p %{buildroot}/%{_fwdefdir} mkdir -p %{buildroot}/%{_fwdefdir}
@@ -1180,9 +1149,7 @@ mkdir -p %{buildroot}/usr/lib/supportconfig/plugins
install -m 755 %{S:1} %{buildroot}/usr/lib/supportconfig/plugins/libvirt install -m 755 %{S:1} %{buildroot}/usr/lib/supportconfig/plugins/libvirt
# Install qemu hook script # Install qemu hook script
%if %{with_qemu}
install -m 755 %{S:2} %{buildroot}/%{_sysconfdir}/%{name}/hooks/qemu install -m 755 %{S:2} %{buildroot}/%{_sysconfdir}/%{name}/hooks/qemu
%endif
%ifarch %{power64} s390x x86_64 %ifarch %{power64} s390x x86_64
mv %{buildroot}/%{_datadir}/systemtap/tapset/libvirt_probes.stp \ mv %{buildroot}/%{_datadir}/systemtap/tapset/libvirt_probes.stp \
@@ -1194,8 +1161,7 @@ mv %{buildroot}/%{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp \
%endif %endif
%check %check
export VIR_TEST_DEBUG=1 VIR_TEST_DEBUG=1 %meson_test -t 5 --no-suite syntax-check
%meson_test -t 5 --no-suite syntax-check
# For daemons with only UNIX sockets # For daemons with only UNIX sockets
%define libvirt_daemon_systemd_pre() %service_add_pre %1.socket %1-ro.socket %1-admin.socket %1.service %define libvirt_daemon_systemd_pre() %service_add_pre %1.socket %1-ro.socket %1-admin.socket %1.service
@@ -1466,6 +1432,7 @@ fi
%{_unitdir}/libvirtd-admin.socket %{_unitdir}/libvirtd-admin.socket
%{_unitdir}/libvirtd-tcp.socket %{_unitdir}/libvirtd-tcp.socket
%{_unitdir}/libvirtd-tls.socket %{_unitdir}/libvirtd-tls.socket
%{_sbindir}/rclibvirtd
%config(noreplace) %{_sysconfdir}/%{name}/libvirtd.conf %config(noreplace) %{_sysconfdir}/%{name}/libvirtd.conf
%if %{with_apparmor} %if %{with_apparmor}
%config(noreplace) %{_sysconfdir}/apparmor.d/usr.sbin.libvirtd %config(noreplace) %{_sysconfdir}/apparmor.d/usr.sbin.libvirtd
@@ -1480,11 +1447,11 @@ fi
%files daemon-common %files daemon-common
%dir %{_libdir}/%{name} %dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/connection-driver/
%attr(0755, root, root) %{_libexecdir}/libvirt-guests.sh %attr(0755, root, root) %{_libexecdir}/libvirt-guests.sh
%dir %attr(0700, root, root) %{_sysconfdir}/%{name}/hooks %dir %attr(0700, root, root) %{_sysconfdir}/%{name}/hooks
%{_unitdir}/libvirt-guests.service %{_unitdir}/libvirt-guests.service
%{_unitdir}/virt-guest-shutdown.target %{_unitdir}/virt-guest-shutdown.target
%{_sbindir}/rclibvirt-guests
%{_bindir}/virt-admin %{_bindir}/virt-admin
%{_bindir}/virt-host-validate %{_bindir}/virt-host-validate
%dir %{_sysconfdir}/sasl2/ %dir %{_sysconfdir}/sasl2/
@@ -1531,6 +1498,7 @@ fi
%{_unitdir}/virtlockd.service %{_unitdir}/virtlockd.service
%{_unitdir}/virtlockd.socket %{_unitdir}/virtlockd.socket
%{_unitdir}/virtlockd-admin.socket %{_unitdir}/virtlockd-admin.socket
%{_sbindir}/rcvirtlockd
%config(noreplace) %{_sysconfdir}/%{name}/virtlockd.conf %config(noreplace) %{_sysconfdir}/%{name}/virtlockd.conf
%{_datadir}/augeas/lenses/virtlockd.aug %{_datadir}/augeas/lenses/virtlockd.aug
%{_datadir}/augeas/lenses/tests/test_virtlockd.aug %{_datadir}/augeas/lenses/tests/test_virtlockd.aug
@@ -1547,6 +1515,7 @@ fi
%{_unitdir}/virtlogd.service %{_unitdir}/virtlogd.service
%{_unitdir}/virtlogd.socket %{_unitdir}/virtlogd.socket
%{_unitdir}/virtlogd-admin.socket %{_unitdir}/virtlogd-admin.socket
%{_sbindir}/rcvirtlogd
%config(noreplace) %{_sysconfdir}/%{name}/virtlogd.conf %config(noreplace) %{_sysconfdir}/%{name}/virtlogd.conf
%{_datadir}/augeas/lenses/virtlogd.aug %{_datadir}/augeas/lenses/virtlogd.aug
%{_datadir}/augeas/lenses/tests/test_virtlogd.aug %{_datadir}/augeas/lenses/tests/test_virtlogd.aug
@@ -1560,15 +1529,14 @@ fi
%{_unitdir}/virtproxyd-admin.socket %{_unitdir}/virtproxyd-admin.socket
%{_unitdir}/virtproxyd-tcp.socket %{_unitdir}/virtproxyd-tcp.socket
%{_unitdir}/virtproxyd-tls.socket %{_unitdir}/virtproxyd-tls.socket
%{_sbindir}/rcvirtproxyd
%config(noreplace) %{_sysconfdir}/%{name}/virtproxyd.conf %config(noreplace) %{_sysconfdir}/%{name}/virtproxyd.conf
%{_datadir}/augeas/lenses/virtproxyd.aug %{_datadir}/augeas/lenses/virtproxyd.aug
%{_datadir}/augeas/lenses/tests/test_virtproxyd.aug %{_datadir}/augeas/lenses/tests/test_virtproxyd.aug
%doc %{_mandir}/man8/virtproxyd.8* %doc %{_mandir}/man8/virtproxyd.8*
%if %{with_qemu}
%files daemon-hooks %files daemon-hooks
%{_sysconfdir}/%{name}/hooks/qemu %{_sysconfdir}/%{name}/hooks/qemu
%endif
%files daemon-config-network %files daemon-config-network
%dir %{_datadir}/%{name}/networks/ %dir %{_datadir}/%{name}/networks/
@@ -1588,6 +1556,8 @@ fi
%{_unitdir}/virtinterfaced-ro.socket %{_unitdir}/virtinterfaced-ro.socket
%{_unitdir}/virtinterfaced-admin.socket %{_unitdir}/virtinterfaced-admin.socket
%{_sbindir}/virtinterfaced %{_sbindir}/virtinterfaced
%{_sbindir}/rcvirtinterfaced
%dir %{_libdir}/%{name}/connection-driver/
%{_libdir}/%{name}/connection-driver/libvirt_driver_interface.so %{_libdir}/%{name}/connection-driver/libvirt_driver_interface.so
%doc %{_mandir}/man8/virtinterfaced.8* %doc %{_mandir}/man8/virtinterfaced.8*
%endif %endif
@@ -1596,20 +1566,19 @@ fi
%config(noreplace) %{_sysconfdir}/%{name}/virtnetworkd.conf %config(noreplace) %{_sysconfdir}/%{name}/virtnetworkd.conf
%{_datadir}/augeas/lenses/virtnetworkd.aug %{_datadir}/augeas/lenses/virtnetworkd.aug
%{_datadir}/augeas/lenses/tests/test_virtnetworkd.aug %{_datadir}/augeas/lenses/tests/test_virtnetworkd.aug
%config(noreplace) %{_sysconfdir}/%{name}/network.conf
%{_datadir}/augeas/lenses/libvirtd_network.aug
%{_datadir}/augeas/lenses/tests/test_libvirtd_network.aug
%{_unitdir}/virtnetworkd.service %{_unitdir}/virtnetworkd.service
%{_unitdir}/virtnetworkd.socket %{_unitdir}/virtnetworkd.socket
%{_unitdir}/virtnetworkd-ro.socket %{_unitdir}/virtnetworkd-ro.socket
%{_unitdir}/virtnetworkd-admin.socket %{_unitdir}/virtnetworkd-admin.socket
%{_sbindir}/virtnetworkd %{_sbindir}/virtnetworkd
%{_sbindir}/rcvirtnetworkd
%dir %attr(0700, root, root) %{_sysconfdir}/%{name}/qemu/ %dir %attr(0700, root, root) %{_sysconfdir}/%{name}/qemu/
%dir %attr(0700, root, root) %{_sysconfdir}/%{name}/qemu/networks/ %dir %attr(0700, root, root) %{_sysconfdir}/%{name}/qemu/networks/
%dir %attr(0700, root, root) %{_sysconfdir}/%{name}/qemu/networks/autostart/ %dir %attr(0700, root, root) %{_sysconfdir}/%{name}/qemu/networks/autostart/
%dir %attr(0700, root, root) %{_localstatedir}/lib/%{name}/network/ %dir %attr(0700, root, root) %{_localstatedir}/lib/%{name}/network/
%dir %attr(0755, root, root) %{_localstatedir}/lib/%{name}/dnsmasq/ %dir %attr(0755, root, root) %{_localstatedir}/lib/%{name}/dnsmasq/
%attr(0755, root, root) %{_libexecdir}/libvirt_leaseshelper %attr(0755, root, root) %{_libexecdir}/libvirt_leaseshelper
%dir %{_libdir}/%{name}/connection-driver/
%{_libdir}/%{name}/connection-driver/libvirt_driver_network.so %{_libdir}/%{name}/connection-driver/libvirt_driver_network.so
%if %{with_firewalld_zone} %if %{with_firewalld_zone}
%dir %{_prefix}/lib/firewalld/zones/ %dir %{_prefix}/lib/firewalld/zones/
@@ -1631,6 +1600,8 @@ fi
%{_unitdir}/virtnodedevd-ro.socket %{_unitdir}/virtnodedevd-ro.socket
%{_unitdir}/virtnodedevd-admin.socket %{_unitdir}/virtnodedevd-admin.socket
%{_sbindir}/virtnodedevd %{_sbindir}/virtnodedevd
%{_sbindir}/rcvirtnodedevd
%dir %{_libdir}/%{name}/connection-driver/
%{_libdir}/%{name}/connection-driver/libvirt_driver_nodedev.so %{_libdir}/%{name}/connection-driver/libvirt_driver_nodedev.so
%doc %{_mandir}/man8/virtnodedevd.8* %doc %{_mandir}/man8/virtnodedevd.8*
@@ -1643,7 +1614,9 @@ fi
%{_unitdir}/virtnwfilterd-ro.socket %{_unitdir}/virtnwfilterd-ro.socket
%{_unitdir}/virtnwfilterd-admin.socket %{_unitdir}/virtnwfilterd-admin.socket
%{_sbindir}/virtnwfilterd %{_sbindir}/virtnwfilterd
%{_sbindir}/rcvirtnwfilterd
%dir %attr(0700, root, root) %{_sysconfdir}/%{name}/nwfilter/ %dir %attr(0700, root, root) %{_sysconfdir}/%{name}/nwfilter/
%dir %{_libdir}/%{name}/connection-driver/
%{_libdir}/%{name}/connection-driver/libvirt_driver_nwfilter.so %{_libdir}/%{name}/connection-driver/libvirt_driver_nwfilter.so
%doc %{_mandir}/man8/virtnwfilterd.8* %doc %{_mandir}/man8/virtnwfilterd.8*
@@ -1656,7 +1629,9 @@ fi
%{_unitdir}/virtsecretd-ro.socket %{_unitdir}/virtsecretd-ro.socket
%{_unitdir}/virtsecretd-admin.socket %{_unitdir}/virtsecretd-admin.socket
%{_sbindir}/virtsecretd %{_sbindir}/virtsecretd
%{_sbindir}/rcvirtsecretd
%dir %attr(0700, root, root) %{_sysconfdir}/%{name}/secrets/ %dir %attr(0700, root, root) %{_sysconfdir}/%{name}/secrets/
%dir %{_libdir}/%{name}/connection-driver/
%{_libdir}/%{name}/connection-driver/libvirt_driver_secret.so %{_libdir}/%{name}/connection-driver/libvirt_driver_secret.so
%doc %{_mandir}/man8/virtsecretd.8* %doc %{_mandir}/man8/virtsecretd.8*
@@ -1671,12 +1646,16 @@ fi
%{_unitdir}/virtstoraged-ro.socket %{_unitdir}/virtstoraged-ro.socket
%{_unitdir}/virtstoraged-admin.socket %{_unitdir}/virtstoraged-admin.socket
%{_sbindir}/virtstoraged %{_sbindir}/virtstoraged
%{_sbindir}/rcvirtstoraged
%attr(0755, root, root) %{_libexecdir}/libvirt_parthelper %attr(0755, root, root) %{_libexecdir}/libvirt_parthelper
%dir %attr(0700, root, root) %{_sysconfdir}/%{name}/storage/ %dir %attr(0700, root, root) %{_sysconfdir}/%{name}/storage/
%dir %attr(0700, root, root) %{_sysconfdir}/%{name}/storage/autostart/ %dir %attr(0700, root, root) %{_sysconfdir}/%{name}/storage/autostart/
%dir %{_libdir}/%{name}/connection-driver/
%{_libdir}/%{name}/connection-driver/libvirt_driver_storage.so %{_libdir}/%{name}/connection-driver/libvirt_driver_storage.so
%dir %{_libdir}/%{name}/storage-backend/ %dir %{_libdir}/%{name}/storage-backend/
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_fs.so %{_libdir}/%{name}/storage-backend/libvirt_storage_backend_fs.so
%dir %{_libdir}/%{name}/storage-file/
%{_libdir}/%{name}/storage-file/libvirt_storage_file_fs.so
%doc %{_mandir}/man8/virtstoraged.8* %doc %{_mandir}/man8/virtstoraged.8*
%files daemon-driver-storage-disk %files daemon-driver-storage-disk
@@ -1697,7 +1676,6 @@ fi
%if %{with_storage_gluster} %if %{with_storage_gluster}
%files daemon-driver-storage-gluster %files daemon-driver-storage-gluster
%{_libdir}/%{name}/storage-backend/libvirt_storage_backend_gluster.so %{_libdir}/%{name}/storage-backend/libvirt_storage_backend_gluster.so
%dir %{_libdir}/%{name}/storage-file/
%{_libdir}/%{name}/storage-file/libvirt_storage_file_gluster.so %{_libdir}/%{name}/storage-file/libvirt_storage_file_gluster.so
%endif %endif
@@ -1718,9 +1696,7 @@ fi
%if %{with_apparmor} %if %{with_apparmor}
%config(noreplace) %{_sysconfdir}/apparmor.d/usr.sbin.virtqemud %config(noreplace) %{_sysconfdir}/apparmor.d/usr.sbin.virtqemud
%endif %endif
%if %{with_userfaultfd_sysctl}
%config(noreplace) %{_prefix}/lib/sysctl.d/60-qemu-postcopy-migration.conf %config(noreplace) %{_prefix}/lib/sysctl.d/60-qemu-postcopy-migration.conf
%endif
%{_datadir}/augeas/lenses/virtqemud.aug %{_datadir}/augeas/lenses/virtqemud.aug
%{_datadir}/augeas/lenses/tests/test_virtqemud.aug %{_datadir}/augeas/lenses/tests/test_virtqemud.aug
%{_unitdir}/virtqemud.service %{_unitdir}/virtqemud.service
@@ -1728,6 +1704,7 @@ fi
%{_unitdir}/virtqemud-ro.socket %{_unitdir}/virtqemud-ro.socket
%{_unitdir}/virtqemud-admin.socket %{_unitdir}/virtqemud-admin.socket
%{_sbindir}/virtqemud %{_sbindir}/virtqemud
%{_sbindir}/rcvirtqemud
%config(noreplace) %{_sysconfdir}/%{name}/qemu.conf %config(noreplace) %{_sysconfdir}/%{name}/qemu.conf
%config(noreplace) %{_sysconfdir}/%{name}/qemu-lockd.conf %config(noreplace) %{_sysconfdir}/%{name}/qemu-lockd.conf
%{logrotate_prefix} %{logrotate_dir}/libvirtd.qemu %{logrotate_prefix} %{logrotate_dir}/libvirtd.qemu
@@ -1737,6 +1714,7 @@ fi
%dir %attr(0700, root, root) %{_localstatedir}/log/%{name}/qemu/ %dir %attr(0700, root, root) %{_localstatedir}/log/%{name}/qemu/
%{_datadir}/augeas/lenses/libvirtd_qemu.aug %{_datadir}/augeas/lenses/libvirtd_qemu.aug
%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
%dir %{_libdir}/%{name}/connection-driver/
%{_libdir}/%{name}/connection-driver/libvirt_driver_qemu.so %{_libdir}/%{name}/connection-driver/libvirt_driver_qemu.so
%dir %attr(0711, root, root) %{_localstatedir}/lib/%{name}/swtpm/ %dir %attr(0711, root, root) %{_localstatedir}/lib/%{name}/swtpm/
%dir %attr(0711, root, root) %{_localstatedir}/log/swtpm/ %dir %attr(0711, root, root) %{_localstatedir}/log/swtpm/
@@ -1758,6 +1736,7 @@ fi
%{_unitdir}/virtlxcd-ro.socket %{_unitdir}/virtlxcd-ro.socket
%{_unitdir}/virtlxcd-admin.socket %{_unitdir}/virtlxcd-admin.socket
%{_sbindir}/virtlxcd %{_sbindir}/virtlxcd
%{_sbindir}/rcvirtlxcd
%dir %attr(0700, root, root) %{_sysconfdir}/%{name}/lxc/ %dir %attr(0700, root, root) %{_sysconfdir}/%{name}/lxc/
%dir %attr(0700, root, root) %{_sysconfdir}/%{name}/lxc/autostart/ %dir %attr(0700, root, root) %{_sysconfdir}/%{name}/lxc/autostart/
%config(noreplace) %{_sysconfdir}/%{name}/lxc.conf %config(noreplace) %{_sysconfdir}/%{name}/lxc.conf
@@ -1767,6 +1746,7 @@ fi
%attr(0755, root, root) %{_libexecdir}/libvirt_lxc %attr(0755, root, root) %{_libexecdir}/libvirt_lxc
%{_datadir}/augeas/lenses/libvirtd_lxc.aug %{_datadir}/augeas/lenses/libvirtd_lxc.aug
%{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
%dir %{_libdir}/%{name}/connection-driver/
%{_libdir}/%{name}/connection-driver/libvirt_driver_lxc.so %{_libdir}/%{name}/connection-driver/libvirt_driver_lxc.so
%{_bindir}/virt-create-rootfs %{_bindir}/virt-create-rootfs
%doc %{_mandir}/man1/virt-create-rootfs.1* %doc %{_mandir}/man1/virt-create-rootfs.1*
@@ -1787,6 +1767,7 @@ fi
%{_unitdir}/virtxend-ro.socket %{_unitdir}/virtxend-ro.socket
%{_unitdir}/virtxend-admin.socket %{_unitdir}/virtxend-admin.socket
%{_sbindir}/virtxend %{_sbindir}/virtxend
%{_sbindir}/rcvirtxend
%config(noreplace) %{_sysconfdir}/%{name}/libxl.conf %config(noreplace) %{_sysconfdir}/%{name}/libxl.conf
%{logrotate_prefix} %{logrotate_dir}/libvirtd.libxl %{logrotate_prefix} %{logrotate_dir}/libvirtd.libxl
%config(noreplace) %{_sysconfdir}/%{name}/libxl-lockd.conf %config(noreplace) %{_sysconfdir}/%{name}/libxl-lockd.conf
@@ -1798,6 +1779,7 @@ fi
%dir %attr(0700, root, root) %{_localstatedir}/lib/%{name}/libxl/dump/ %dir %attr(0700, root, root) %{_localstatedir}/lib/%{name}/libxl/dump/
%dir %attr(0700, root, root) %{_localstatedir}/lib/%{name}/libxl/save/ %dir %attr(0700, root, root) %{_localstatedir}/lib/%{name}/libxl/save/
%dir %attr(0700, root, root) %{_localstatedir}/log/%{name}/libxl/ %dir %attr(0700, root, root) %{_localstatedir}/log/%{name}/libxl/
%dir %{_libdir}/%{name}/connection-driver/
%{_libdir}/%{name}/connection-driver/libvirt_driver_libxl.so %{_libdir}/%{name}/connection-driver/libvirt_driver_libxl.so
%doc %{_mandir}/man8/virtxend.8* %doc %{_mandir}/man8/virtxend.8*
%endif %endif
@@ -1813,6 +1795,7 @@ fi
%{_unitdir}/virtvboxd-ro.socket %{_unitdir}/virtvboxd-ro.socket
%{_unitdir}/virtvboxd-admin.socket %{_unitdir}/virtvboxd-admin.socket
%{_sbindir}/virtvboxd %{_sbindir}/virtvboxd
%{_sbindir}/rcvirtvboxd
%{_libdir}/%{name}/connection-driver/libvirt_driver_vbox.so %{_libdir}/%{name}/connection-driver/libvirt_driver_vbox.so
%doc %{_mandir}/man8/virtvboxd.8* %doc %{_mandir}/man8/virtvboxd.8*
%endif %endif
@@ -1848,6 +1831,7 @@ fi
%{_bindir}/virt-pki-query-dn %{_bindir}/virt-pki-query-dn
%{_bindir}/virt-pki-validate %{_bindir}/virt-pki-validate
%{_datadir}/bash-completion/completions/virsh %{_datadir}/bash-completion/completions/virsh
%dir %{_libdir}/%{name}/
%if %{with_qemu} %if %{with_qemu}
%files client-qemu %files client-qemu
@@ -1932,10 +1916,4 @@ fi
%{_libdir}/libnss_libvirt.so.2 %{_libdir}/libnss_libvirt.so.2
%{_libdir}/libnss_libvirt_guest.so.2 %{_libdir}/libnss_libvirt_guest.so.2
%files ssh-proxy
%dir %{_sysconfdir}/ssh/
%dir %{_sysconfdir}/ssh/ssh_config.d/
%config(noreplace) %{_sysconfdir}/ssh/ssh_config.d/30-libvirt-ssh-proxy.conf
%{_libexecdir}/libvirt-ssh-proxy
%changelog %changelog