1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

rpm: Introduce with_native

The new _without_native knob makes it possible to skip the native
build completely and build for MinGW only.

Best viewed with 'git show -w'.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Andrea Bolognani 2023-11-02 16:56:54 +01:00
parent 3c840e50d9
commit eb6552d98b

View File

@ -203,6 +203,9 @@
%define qemu_moddir %{_libdir}/qemu %define qemu_moddir %{_libdir}/qemu
%define qemu_datadir %{_datadir}/qemu %define qemu_datadir %{_datadir}/qemu
# Native / MinGW builds
%define with_native 0%{!?_without_native:1}
%define with_mingw32 0 %define with_mingw32 0
%define with_mingw64 0 %define with_mingw64 0
@ -218,6 +221,13 @@
%define mingw_build_win64 %{with_mingw64} %define mingw_build_win64 %{with_mingw64}
%endif %endif
%if !%{with_native}
# Building the debugsource package apparently only works if the
# native build is enabled. debuginfo packages don't have this
# problem and setting this doesn't disable them
%global debug_package %{nil}
%endif
# RHEL releases provide stable tool chains and so it is safe to turn # RHEL releases provide stable tool chains and so it is safe to turn
# compiler warning into errors without being worried about frequent # compiler warning into errors without being worried about frequent
# changes in reported warnings # changes in reported warnings
@ -306,10 +316,11 @@ BuildRequires: systemd-rpm-macros
BuildRequires: rpcgen BuildRequires: rpcgen
# Fedora build root suckage # Fedora build root suckage
BuildRequires: gawk BuildRequires: gawk
%if %{with_native}
BuildRequires: gcc BuildRequires: gcc
%if %{with_libxl} %if %{with_libxl}
BuildRequires: xen-devel BuildRequires: xen-devel
%endif %endif
BuildRequires: glib2-devel >= 2.56 BuildRequires: glib2-devel >= 2.56
BuildRequires: libxml2-devel BuildRequires: libxml2-devel
BuildRequires: readline-devel BuildRequires: readline-devel
@ -324,9 +335,9 @@ BuildRequires: augeas
BuildRequires: systemd-devel >= 185 BuildRequires: systemd-devel >= 185
BuildRequires: libpciaccess-devel >= 0.10.9 BuildRequires: libpciaccess-devel >= 0.10.9
BuildRequires: yajl-devel BuildRequires: yajl-devel
%if %{with_sanlock} %if %{with_sanlock}
BuildRequires: sanlock-devel >= 2.4 BuildRequires: sanlock-devel >= 2.4
%endif %endif
BuildRequires: libpcap-devel >= 1.5.0 BuildRequires: libpcap-devel >= 1.5.0
BuildRequires: libnl3-devel BuildRequires: libnl3-devel
BuildRequires: libselinux-devel BuildRequires: libselinux-devel
@ -338,59 +349,59 @@ BuildRequires: cyrus-sasl-devel
BuildRequires: polkit >= 0.112 BuildRequires: polkit >= 0.112
# For mount/umount in FS driver # For mount/umount in FS driver
BuildRequires: util-linux BuildRequires: util-linux
%if %{with_qemu} %if %{with_qemu}
# For managing ACLs # For managing ACLs
BuildRequires: libacl-devel BuildRequires: libacl-devel
# From QEMU RPMs, used by virstoragetest # From QEMU RPMs, used by virstoragetest
BuildRequires: /usr/bin/qemu-img BuildRequires: /usr/bin/qemu-img
%endif %endif
# nbdkit support requires libnbd # nbdkit support requires libnbd
%if %{with_nbdkit} %if %{with_nbdkit}
BuildRequires: libnbd-devel BuildRequires: libnbd-devel
%endif %endif
# For LVM drivers # For LVM drivers
BuildRequires: lvm2 BuildRequires: lvm2
# For pool type=iscsi # For pool type=iscsi
BuildRequires: iscsi-initiator-utils BuildRequires: iscsi-initiator-utils
%if %{with_storage_iscsi_direct} %if %{with_storage_iscsi_direct}
# For pool type=iscsi-direct # For pool type=iscsi-direct
BuildRequires: libiscsi-devel BuildRequires: libiscsi-devel
%endif %endif
# For disk driver # For disk driver
BuildRequires: parted-devel BuildRequires: parted-devel
# For Multipath support # For Multipath support
BuildRequires: device-mapper-devel BuildRequires: device-mapper-devel
%if %{with_storage_rbd} %if %{with_storage_rbd}
BuildRequires: librados-devel BuildRequires: librados-devel
BuildRequires: librbd-devel BuildRequires: librbd-devel
%endif %endif
%if %{with_storage_gluster} %if %{with_storage_gluster}
BuildRequires: glusterfs-api-devel >= 3.4.1 BuildRequires: glusterfs-api-devel >= 3.4.1
BuildRequires: glusterfs-devel >= 3.4.1 BuildRequires: glusterfs-devel >= 3.4.1
%endif %endif
%if %{with_numactl} %if %{with_numactl}
# For QEMU/LXC numa info # For QEMU/LXC numa info
BuildRequires: numactl-devel BuildRequires: numactl-devel
%endif %endif
BuildRequires: libcap-ng-devel >= 0.5.0 BuildRequires: libcap-ng-devel >= 0.5.0
%if %{with_fuse} %if %{with_fuse}
BuildRequires: fuse-devel >= 2.8.6 BuildRequires: fuse-devel >= 2.8.6
%endif %endif
%if %{with_libssh2} %if %{with_libssh2}
BuildRequires: libssh2-devel >= 1.3.0 BuildRequires: libssh2-devel >= 1.3.0
%endif %endif
%if %{with_netcf} %if %{with_netcf}
BuildRequires: netcf-devel >= 0.2.2 BuildRequires: netcf-devel >= 0.2.2
%endif %endif
%if 0%{?fedora} || 0%{?rhel} >= 9 %if 0%{?fedora} || 0%{?rhel} >= 9
BuildRequires: passt BuildRequires: passt
%endif %endif
%if %{with_esx} %if %{with_esx}
BuildRequires: libcurl-devel BuildRequires: libcurl-devel
%endif %endif
%if %{with_hyperv} %if %{with_hyperv}
BuildRequires: libwsman-devel >= 2.6.3 BuildRequires: libwsman-devel >= 2.6.3
%endif %endif
BuildRequires: audit-libs-devel BuildRequires: audit-libs-devel
# we need /usr/sbin/dtrace # we need /usr/sbin/dtrace
BuildRequires: systemtap-sdt-devel BuildRequires: systemtap-sdt-devel
@ -400,19 +411,20 @@ BuildRequires: util-linux
BuildRequires: nfs-utils BuildRequires: nfs-utils
# For storage wiping with different algorithms # For storage wiping with different algorithms
BuildRequires: scrub BuildRequires: scrub
%if %{with_numad} %if %{with_numad}
BuildRequires: numad BuildRequires: numad
%endif %endif
%if %{with_wireshark} %if %{with_wireshark}
BuildRequires: wireshark-devel BuildRequires: wireshark-devel
%endif %endif
%if %{with_libssh} %if %{with_libssh}
BuildRequires: libssh-devel >= 0.8.1 BuildRequires: libssh-devel >= 0.8.1
%endif %endif
BuildRequires: libtirpc-devel BuildRequires: libtirpc-devel
%if %{with_firewalld_zone}
# Needed for the firewalld_reload macro # Needed for the firewalld_reload macro
%if %{with_firewalld_zone}
BuildRequires: firewalld-filesystem BuildRequires: firewalld-filesystem
%endif
%endif %endif
%if %{with_mingw32} %if %{with_mingw32}
@ -451,6 +463,7 @@ Libvirt is a C toolkit to interact with the virtualization capabilities
of recent versions of Linux (and other OSes). The main package includes of recent versions of Linux (and other OSes). The main package includes
the libvirtd server exporting the virtualization support. the libvirtd server exporting the virtualization support.
%if %{with_native}
%package docs %package docs
Summary: API reference and website documentation Summary: API reference and website documentation
@ -490,10 +503,10 @@ Requires: iproute
# for /sbin/tc # for /sbin/tc
Requires: iproute-tc Requires: iproute-tc
Requires: polkit >= 0.112 Requires: polkit >= 0.112
%if %{with_dmidecode} %if %{with_dmidecode}
# For virConnectGetSysinfo # For virConnectGetSysinfo
Requires: dmidecode Requires: dmidecode
%endif %endif
# For service management # For service management
Requires(posttrans): /usr/bin/systemctl Requires(posttrans): /usr/bin/systemctl
Requires(preun): /usr/bin/systemctl Requires(preun): /usr/bin/systemctl
@ -502,11 +515,11 @@ Requires: dbus
# For uid creation during pre # For uid creation during pre
Requires(pre): shadow-utils Requires(pre): shadow-utils
# Needed by /usr/libexec/libvirt-guests.sh script. # Needed by /usr/libexec/libvirt-guests.sh script.
%if 0%{?fedora} %if 0%{?fedora}
Requires: gettext-runtime Requires: gettext-runtime
%else %else
Requires: gettext Requires: gettext
%endif %endif
# Ensure smooth upgrades # Ensure smooth upgrades
Obsoletes: libvirt-admin < 7.3.0 Obsoletes: libvirt-admin < 7.3.0
@ -614,9 +627,9 @@ capabilities.
Summary: Interface driver plugin for the libvirtd daemon Summary: Interface driver plugin for the libvirtd daemon
Requires: libvirt-daemon-common = %{version}-%{release} Requires: libvirt-daemon-common = %{version}-%{release}
Requires: libvirt-libs = %{version}-%{release} Requires: libvirt-libs = %{version}-%{release}
%if %{with_netcf} %if %{with_netcf}
Requires: netcf-libs >= 0.2.2 Requires: netcf-libs >= 0.2.2
%endif %endif
%description daemon-driver-interface %description daemon-driver-interface
The interface driver plugin for the libvirtd daemon, providing The interface driver plugin for the libvirtd daemon, providing
@ -638,13 +651,13 @@ Requires: libvirt-libs = %{version}-%{release}
Requires: nfs-utils Requires: nfs-utils
# For mkfs # For mkfs
Requires: util-linux Requires: util-linux
%if %{with_qemu} %if %{with_qemu}
# From QEMU RPMs # From QEMU RPMs
Requires: /usr/bin/qemu-img Requires: /usr/bin/qemu-img
%endif %endif
%if !%{with_storage_rbd} %if !%{with_storage_rbd}
Obsoletes: libvirt-daemon-driver-storage-rbd < 5.2.0 Obsoletes: libvirt-daemon-driver-storage-rbd < 5.2.0
%endif %endif
Obsoletes: libvirt-daemon-driver-storage-sheepdog < 8.8.0 Obsoletes: libvirt-daemon-driver-storage-sheepdog < 8.8.0
%description daemon-driver-storage-core %description daemon-driver-storage-core
@ -692,7 +705,7 @@ Requires: iscsi-initiator-utils
The storage driver backend adding implementation of the storage APIs for iscsi The storage driver backend adding implementation of the storage APIs for iscsi
volumes using the host iscsi stack. volumes using the host iscsi stack.
%if %{with_storage_iscsi_direct} %if %{with_storage_iscsi_direct}
%package daemon-driver-storage-iscsi-direct %package daemon-driver-storage-iscsi-direct
Summary: Storage driver plugin for iscsi-direct Summary: Storage driver plugin for iscsi-direct
Requires: libvirt-daemon-driver-storage-core = %{version}-%{release} Requires: libvirt-daemon-driver-storage-core = %{version}-%{release}
@ -701,7 +714,7 @@ Requires: libvirt-libs = %{version}-%{release}
%description daemon-driver-storage-iscsi-direct %description daemon-driver-storage-iscsi-direct
The storage driver backend adding implementation of the storage APIs for iscsi The storage driver backend adding implementation of the storage APIs for iscsi
volumes using libiscsi direct connection. volumes using libiscsi direct connection.
%endif %endif
%package daemon-driver-storage-mpath %package daemon-driver-storage-mpath
Summary: Storage driver plugin for multipath volumes Summary: Storage driver plugin for multipath volumes
@ -713,7 +726,7 @@ Requires: device-mapper
The storage driver backend adding implementation of the storage APIs for The storage driver backend adding implementation of the storage APIs for
multipath storage using device mapper. multipath storage using device mapper.
%if %{with_storage_gluster} %if %{with_storage_gluster}
%package daemon-driver-storage-gluster %package daemon-driver-storage-gluster
Summary: Storage driver plugin for gluster Summary: Storage driver plugin for gluster
Requires: libvirt-daemon-driver-storage-core = %{version}-%{release} Requires: libvirt-daemon-driver-storage-core = %{version}-%{release}
@ -728,9 +741,9 @@ Requires: /usr/sbin/gluster
%description daemon-driver-storage-gluster %description daemon-driver-storage-gluster
The storage driver backend adding implementation of the storage APIs for gluster The storage driver backend adding implementation of the storage APIs for gluster
volumes using libgfapi. volumes using libgfapi.
%endif %endif
%if %{with_storage_rbd} %if %{with_storage_rbd}
%package daemon-driver-storage-rbd %package daemon-driver-storage-rbd
Summary: Storage driver plugin for rbd Summary: Storage driver plugin for rbd
Requires: libvirt-daemon-driver-storage-core = %{version}-%{release} Requires: libvirt-daemon-driver-storage-core = %{version}-%{release}
@ -739,9 +752,9 @@ Requires: libvirt-libs = %{version}-%{release}
%description daemon-driver-storage-rbd %description daemon-driver-storage-rbd
The storage driver backend adding implementation of the storage APIs for rbd The storage driver backend adding implementation of the storage APIs for rbd
volumes using the ceph protocol. volumes using the ceph protocol.
%endif %endif
%if %{with_storage_zfs} %if %{with_storage_zfs}
%package daemon-driver-storage-zfs %package daemon-driver-storage-zfs
Summary: Storage driver plugin for ZFS Summary: Storage driver plugin for ZFS
Requires: libvirt-daemon-driver-storage-core = %{version}-%{release} Requires: libvirt-daemon-driver-storage-core = %{version}-%{release}
@ -753,7 +766,7 @@ Requires: /sbin/zpool
%description daemon-driver-storage-zfs %description daemon-driver-storage-zfs
The storage driver backend adding implementation of the storage APIs for The storage driver backend adding implementation of the storage APIs for
ZFS volumes. ZFS volumes.
%endif %endif
%package daemon-driver-storage %package daemon-driver-storage
Summary: Storage driver plugin including all backends for the libvirtd daemon Summary: Storage driver plugin including all backends for the libvirtd daemon
@ -763,25 +776,25 @@ Requires: libvirt-daemon-driver-storage-logical = %{version}-%{release}
Requires: libvirt-daemon-driver-storage-scsi = %{version}-%{release} Requires: libvirt-daemon-driver-storage-scsi = %{version}-%{release}
Requires: libvirt-daemon-driver-storage-iscsi = %{version}-%{release} Requires: libvirt-daemon-driver-storage-iscsi = %{version}-%{release}
Requires: libvirt-daemon-driver-storage-mpath = %{version}-%{release} Requires: libvirt-daemon-driver-storage-mpath = %{version}-%{release}
%if %{with_storage_iscsi_direct} %if %{with_storage_iscsi_direct}
Requires: libvirt-daemon-driver-storage-iscsi-direct = %{version}-%{release} Requires: libvirt-daemon-driver-storage-iscsi-direct = %{version}-%{release}
%endif %endif
%if %{with_storage_gluster} %if %{with_storage_gluster}
Requires: libvirt-daemon-driver-storage-gluster = %{version}-%{release} Requires: libvirt-daemon-driver-storage-gluster = %{version}-%{release}
%endif %endif
%if %{with_storage_rbd} %if %{with_storage_rbd}
Requires: libvirt-daemon-driver-storage-rbd = %{version}-%{release} Requires: libvirt-daemon-driver-storage-rbd = %{version}-%{release}
%endif %endif
%if %{with_storage_zfs} %if %{with_storage_zfs}
Requires: libvirt-daemon-driver-storage-zfs = %{version}-%{release} Requires: libvirt-daemon-driver-storage-zfs = %{version}-%{release}
%endif %endif
%description daemon-driver-storage %description daemon-driver-storage
The storage driver plugin for the libvirtd daemon, providing 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.
%if %{with_qemu} %if %{with_qemu}
%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: libvirt-daemon-common = %{version}-%{release} Requires: libvirt-daemon-common = %{version}-%{release}
@ -812,9 +825,9 @@ Recommends: nbdkit-ssh-plugin
The qemu driver plugin for the libvirtd daemon, providing The qemu driver plugin for the libvirtd daemon, providing
an implementation of the hypervisor driver APIs using an implementation of the hypervisor driver APIs using
QEMU QEMU
%endif %endif
%if %{with_lxc} %if %{with_lxc}
%package daemon-driver-lxc %package daemon-driver-lxc
Summary: LXC driver plugin for the libvirtd daemon Summary: LXC driver plugin for the libvirtd daemon
Requires: libvirt-daemon-common = %{version}-%{release} Requires: libvirt-daemon-common = %{version}-%{release}
@ -832,9 +845,9 @@ Requires: numad
The LXC driver plugin for the libvirtd daemon, providing The LXC driver plugin for the libvirtd daemon, providing
an implementation of the hypervisor driver APIs using an implementation of the hypervisor driver APIs using
the Linux kernel the Linux kernel
%endif %endif
%if %{with_vbox} %if %{with_vbox}
%package daemon-driver-vbox %package daemon-driver-vbox
Summary: VirtualBox driver plugin for the libvirtd daemon Summary: VirtualBox driver plugin for the libvirtd daemon
Requires: libvirt-daemon-common = %{version}-%{release} Requires: libvirt-daemon-common = %{version}-%{release}
@ -844,9 +857,9 @@ Requires: libvirt-libs = %{version}-%{release}
The vbox driver plugin for the libvirtd daemon, providing The vbox driver plugin for the libvirtd daemon, providing
an implementation of the hypervisor driver APIs using an implementation of the hypervisor driver APIs using
VirtualBox VirtualBox
%endif %endif
%if %{with_libxl} %if %{with_libxl}
%package daemon-driver-libxl %package daemon-driver-libxl
Summary: Libxl driver plugin for the libvirtd daemon Summary: Libxl driver plugin for the libvirtd daemon
Requires: libvirt-daemon-common = %{version}-%{release} Requires: libvirt-daemon-common = %{version}-%{release}
@ -857,9 +870,9 @@ Obsoletes: libvirt-daemon-driver-xen < 4.3.0
The Libxl driver plugin for the libvirtd daemon, providing The Libxl driver plugin for the libvirtd daemon, providing
an implementation of the hypervisor driver APIs using an implementation of the hypervisor driver APIs using
Libxl Libxl
%endif %endif
%if %{with_qemu_tcg} %if %{with_qemu_tcg}
%package daemon-qemu %package daemon-qemu
Summary: Server side daemon & driver required to run QEMU guests Summary: Server side daemon & driver required to run QEMU guests
@ -885,9 +898,9 @@ Requires: qemu
%description daemon-qemu %description daemon-qemu
Server side daemon and driver required to manage the virtualization Server side daemon and driver required to manage the virtualization
capabilities of the QEMU TCG emulators capabilities of the QEMU TCG emulators
%endif %endif
%if %{with_qemu_kvm} %if %{with_qemu_kvm}
%package daemon-kvm %package daemon-kvm
Summary: Server side daemon & driver required to run KVM guests Summary: Server side daemon & driver required to run KVM guests
@ -913,9 +926,9 @@ Requires: qemu-kvm
%description daemon-kvm %description daemon-kvm
Server side daemon and driver required to manage the virtualization Server side daemon and driver required to manage the virtualization
capabilities of the KVM hypervisor capabilities of the KVM hypervisor
%endif %endif
%if %{with_lxc} %if %{with_lxc}
%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
@ -937,9 +950,9 @@ Requires: libvirt-daemon-driver-storage = %{version}-%{release}
%description daemon-lxc %description daemon-lxc
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
%endif %endif
%if %{with_libxl} %if %{with_libxl}
%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
@ -964,9 +977,9 @@ Requires: xen
%description daemon-xen %description daemon-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
%endif %endif
%if %{with_vbox} %if %{with_vbox}
%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
@ -988,7 +1001,7 @@ Requires: libvirt-daemon-driver-storage = %{version}-%{release}
%description daemon-vbox %description daemon-vbox
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
%endif %endif
%package client %package client
Summary: Client side utilities of the libvirt library Summary: Client side utilities of the libvirt library
@ -1025,7 +1038,7 @@ Requires: cyrus-sasl-gssapi
%description libs %description libs
Shared libraries for accessing the libvirt daemon. Shared libraries for accessing the libvirt daemon.
%if %{with_wireshark} %if %{with_wireshark}
%package wireshark %package wireshark
Summary: Wireshark dissector plugin for libvirt RPC transactions Summary: Wireshark dissector plugin for libvirt RPC transactions
Requires: wireshark Requires: wireshark
@ -1033,9 +1046,9 @@ Requires: libvirt-libs = %{version}-%{release}
%description wireshark %description wireshark
Wireshark dissector plugin for better analysis of libvirt RPC traffic. Wireshark dissector plugin for better analysis of libvirt RPC traffic.
%endif %endif
%if %{with_lxc} %if %{with_lxc}
%package login-shell %package login-shell
Summary: Login shell for connecting users to an LXC container Summary: Login shell for connecting users to an LXC container
Requires: libvirt-libs = %{version}-%{release} Requires: libvirt-libs = %{version}-%{release}
@ -1044,7 +1057,7 @@ Requires: libvirt-libs = %{version}-%{release}
Provides the set-uid virt-login-shell binary that is used to Provides the set-uid virt-login-shell binary that is used to
connect a user to an LXC container when they login, by switching connect a user to an LXC container when they login, by switching
namespaces. namespaces.
%endif %endif
%package devel %package devel
Summary: Libraries, includes, etc. to compile with the libvirt library Summary: Libraries, includes, etc. to compile with the libvirt library
@ -1054,7 +1067,7 @@ Requires: pkgconfig
%description devel %description devel
Include header files & development libraries for the libvirt C library. Include header files & development libraries for the libvirt C library.
%if %{with_sanlock} %if %{with_sanlock}
%package daemon-plugin-sanlock %package daemon-plugin-sanlock
Summary: Sanlock lock manager plugin for QEMU driver Summary: Sanlock lock manager plugin for QEMU driver
Requires: sanlock >= 2.4 Requires: sanlock >= 2.4
@ -1067,7 +1080,7 @@ Provides: libvirt-lock-sanlock = %{version}-%{release}
%description daemon-plugin-sanlock %description daemon-plugin-sanlock
Includes the Sanlock lock manager plugin for the QEMU Includes the Sanlock lock manager plugin for the QEMU
driver driver
%endif %endif
%package nss %package nss
Summary: Libvirt plugin for Name Service Switch Summary: Libvirt plugin for Name Service Switch
@ -1075,6 +1088,7 @@ Requires: libvirt-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.
%endif
%if %{with_mingw32} %if %{with_mingw32}
%package -n mingw32-libvirt %package -n mingw32-libvirt
@ -1266,6 +1280,7 @@ exit 1
export SOURCE_DATE_EPOCH=$(stat --printf='%Y' %{_specdir}/libvirt.spec) export SOURCE_DATE_EPOCH=$(stat --printf='%Y' %{_specdir}/libvirt.spec)
%if %{with_native}
%meson \ %meson \
-Drunstatedir=%{_rundir} \ -Drunstatedir=%{_rundir} \
-Dinitconfdir=%{_sysconfdir}/sysconfig \ -Dinitconfdir=%{_sysconfdir}/sysconfig \
@ -1341,6 +1356,7 @@ export SOURCE_DATE_EPOCH=$(stat --printf='%Y' %{_specdir}/libvirt.spec)
%{?arg_login_shell} %{?arg_login_shell}
%meson_build %meson_build
%endif
%if %{with_mingw32} || %{with_mingw64} %if %{with_mingw32} || %{with_mingw64}
%mingw_meson \ %mingw_meson \
@ -1417,7 +1433,7 @@ export SOURCE_DATE_EPOCH=$(stat --printf='%Y' %{_specdir}/libvirt.spec)
-Dudev=disabled \ -Dudev=disabled \
-Dwireshark_dissector=disabled \ -Dwireshark_dissector=disabled \
-Dyajl=disabled -Dyajl=disabled
%mingw_ninja %mingw_ninja
%endif %endif
%install %install
@ -1425,6 +1441,7 @@ rm -fr %{buildroot}
export SOURCE_DATE_EPOCH=$(stat --printf='%Y' %{_specdir}/libvirt.spec) export SOURCE_DATE_EPOCH=$(stat --printf='%Y' %{_specdir}/libvirt.spec)
%if %{with_native}
%meson_install %meson_install
# 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
@ -1444,41 +1461,41 @@ cp -a $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/nwfilter/*.xml \
# libvirt saves these files with mode 600 # libvirt saves these files with mode 600
chmod 600 $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/nwfilter/*.xml chmod 600 $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/nwfilter/*.xml
%if ! %{with_qemu} %if ! %{with_qemu}
rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_qemu.aug rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_qemu.aug
rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
%endif %endif
%find_lang %{name} %find_lang %{name}
%if ! %{with_sanlock} %if ! %{with_sanlock}
rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirt_sanlock.aug rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirt_sanlock.aug
rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
%endif %endif
%if ! %{with_lxc} %if ! %{with_lxc}
rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_lxc.aug rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_lxc.aug
rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
%endif %endif
%if ! %{with_qemu} %if ! %{with_qemu}
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu.conf rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu.conf
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.qemu rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.qemu
%endif %endif
%if ! %{with_lxc} %if ! %{with_lxc}
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/lxc.conf rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/lxc.conf
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.lxc rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.lxc
%endif %endif
%if ! %{with_libxl} %if ! %{with_libxl}
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/libxl.conf rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/libxl.conf
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.libxl rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.libxl
rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_libxl.aug rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_libxl.aug
rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_libxl.aug rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_libxl.aug
%endif %endif
# Copied into libvirt-docs subpackage eventually # Copied into libvirt-docs subpackage eventually
mv $RPM_BUILD_ROOT%{_datadir}/doc/libvirt libvirt-docs mv $RPM_BUILD_ROOT%{_datadir}/doc/libvirt libvirt-docs
%ifarch %{arches_systemtap_64bit} %ifarch %{arches_systemtap_64bit}
mv $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_probes.stp \ mv $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_probes.stp \
$RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_probes-64.stp $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_probes-64.stp
@ -1486,6 +1503,7 @@ mv $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_probes.stp \
mv $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp \ mv $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp \
$RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_qemu_probes-64.stp $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_qemu_probes-64.stp
%endif %endif
%endif
%endif %endif
%if %{with_mingw32} || %{with_mingw64} %if %{with_mingw32} || %{with_mingw64}
@ -1516,9 +1534,12 @@ rm -rf $RPM_BUILD_ROOT%{mingw64_libexecdir}/libvirt-guests.sh
%endif %endif
%check %check
%if %{with_native}
# Building on slow archs, like emulated s390x in Fedora copr, requires # Building on slow archs, like emulated s390x in Fedora copr, requires
# raising the test timeout # raising the test timeout
VIR_TEST_DEBUG=1 %meson_test --no-suite syntax-check --timeout-multiplier 10 VIR_TEST_DEBUG=1 %meson_test --no-suite syntax-check --timeout-multiplier 10
%endif
%define libvirt_rpmstatedir %{_localstatedir}/lib/rpm-state/libvirt %define libvirt_rpmstatedir %{_localstatedir}/lib/rpm-state/libvirt
@ -1664,6 +1685,7 @@ VIR_TEST_DEBUG=1 %meson_test --no-suite syntax-check --timeout-multiplier 10
%define libvirt_systemd_config_pre() %libvirt_systemd_schedule_restart %1.service %define libvirt_systemd_config_pre() %libvirt_systemd_schedule_restart %1.service
%define libvirt_systemd_config_posttrans() %libvirt_systemd_perform_restart %1.service %define libvirt_systemd_config_posttrans() %libvirt_systemd_perform_restart %1.service
%if %{with_native}
%pre daemon %pre daemon
%libvirt_sysconfig_pre libvirtd %libvirt_sysconfig_pre libvirtd
%libvirt_systemd_inet_pre libvirtd %libvirt_systemd_inet_pre libvirtd
@ -1728,9 +1750,9 @@ exit 0
%libvirt_systemd_unix_pre virtnetworkd %libvirt_systemd_unix_pre virtnetworkd
%post daemon-driver-network %post daemon-driver-network
%if %{with_firewalld_zone} %if %{with_firewalld_zone}
%firewalld_reload %firewalld_reload
%endif %endif
%posttrans daemon-driver-network %posttrans daemon-driver-network
%libvirt_sysconfig_posttrans virtnetworkd %libvirt_sysconfig_posttrans virtnetworkd
@ -1740,9 +1762,9 @@ exit 0
%libvirt_systemd_unix_preun virtnetworkd %libvirt_systemd_unix_preun virtnetworkd
%postun daemon-driver-network %postun daemon-driver-network
%if %{with_firewalld_zone} %if %{with_firewalld_zone}
%firewalld_reload %firewalld_reload
%endif %endif
%pre daemon-driver-nwfilter %pre daemon-driver-nwfilter
%libvirt_sysconfig_pre virtnwfilterd %libvirt_sysconfig_pre virtnwfilterd
@ -1799,7 +1821,7 @@ exit 0
%preun daemon-driver-storage-core %preun daemon-driver-storage-core
%libvirt_systemd_unix_preun virtstoraged %libvirt_systemd_unix_preun virtstoraged
%if %{with_qemu} %if %{with_qemu}
%pre daemon-driver-qemu %pre daemon-driver-qemu
%libvirt_sysconfig_pre virtqemud %libvirt_sysconfig_pre virtqemud
%libvirt_systemd_unix_pre virtqemud %libvirt_systemd_unix_pre virtqemud
@ -1823,9 +1845,9 @@ exit 0
%preun daemon-driver-qemu %preun daemon-driver-qemu
%libvirt_systemd_unix_preun virtqemud %libvirt_systemd_unix_preun virtqemud
%endif %endif
%if %{with_lxc} %if %{with_lxc}
%pre daemon-driver-lxc %pre daemon-driver-lxc
%libvirt_sysconfig_pre virtlxcd %libvirt_sysconfig_pre virtlxcd
%libvirt_systemd_unix_pre virtlxcd %libvirt_systemd_unix_pre virtlxcd
@ -1836,9 +1858,9 @@ exit 0
%preun daemon-driver-lxc %preun daemon-driver-lxc
%libvirt_systemd_unix_preun virtlxcd %libvirt_systemd_unix_preun virtlxcd
%endif %endif
%if %{with_vbox} %if %{with_vbox}
%pre daemon-driver-vbox %pre daemon-driver-vbox
%libvirt_sysconfig_pre virtvboxd %libvirt_sysconfig_pre virtvboxd
%libvirt_systemd_unix_pre virtvboxd %libvirt_systemd_unix_pre virtvboxd
@ -1849,9 +1871,9 @@ exit 0
%preun daemon-driver-vbox %preun daemon-driver-vbox
%libvirt_systemd_unix_preun virtvboxd %libvirt_systemd_unix_preun virtvboxd
%endif %endif
%if %{with_libxl} %if %{with_libxl}
%pre daemon-driver-libxl %pre daemon-driver-libxl
%libvirt_sysconfig_pre virtxend %libvirt_sysconfig_pre virtxend
%libvirt_systemd_unix_pre virtxend %libvirt_systemd_unix_pre virtxend
@ -1862,7 +1884,7 @@ exit 0
%preun daemon-driver-libxl %preun daemon-driver-libxl
%libvirt_systemd_unix_preun virtxend %libvirt_systemd_unix_preun virtxend
%endif %endif
%pre daemon-config-network %pre daemon-config-network
%libvirt_systemd_config_pre libvirtd %libvirt_systemd_config_pre libvirtd
@ -1927,12 +1949,14 @@ done
%libvirt_systemd_config_posttrans libvirtd %libvirt_systemd_config_posttrans libvirtd
%libvirt_systemd_config_posttrans virtnwfilterd %libvirt_systemd_config_posttrans virtnwfilterd
%if %{with_lxc} %if %{with_lxc}
%pre login-shell %pre login-shell
getent group virtlogin >/dev/null || groupadd -r virtlogin getent group virtlogin >/dev/null || groupadd -r virtlogin
exit 0 exit 0
%endif
%endif %endif
%if %{with_native}
%files %files
%files docs %files docs
@ -1993,9 +2017,9 @@ exit 0
%{_datadir}/augeas/lenses/virtlockd.aug %{_datadir}/augeas/lenses/virtlockd.aug
%{_datadir}/augeas/lenses/tests/test_virtlockd.aug %{_datadir}/augeas/lenses/tests/test_virtlockd.aug
%{_datadir}/augeas/lenses/libvirt_lockd.aug %{_datadir}/augeas/lenses/libvirt_lockd.aug
%if %{with_qemu} %if %{with_qemu}
%{_datadir}/augeas/lenses/tests/test_libvirt_lockd.aug %{_datadir}/augeas/lenses/tests/test_libvirt_lockd.aug
%endif %endif
%attr(0755, root, root) %{_sbindir}/virtlockd %attr(0755, root, root) %{_sbindir}/virtlockd
%{_mandir}/man8/virtlockd.8* %{_mandir}/man8/virtlockd.8*
@ -2068,13 +2092,13 @@ exit 0
%attr(0755, root, root) %{_libexecdir}/libvirt_leaseshelper %attr(0755, root, root) %{_libexecdir}/libvirt_leaseshelper
%{_libdir}/libvirt/connection-driver/libvirt_driver_network.so %{_libdir}/libvirt/connection-driver/libvirt_driver_network.so
%{_mandir}/man8/virtnetworkd.8* %{_mandir}/man8/virtnetworkd.8*
%if %{with_firewalld_zone} %if %{with_firewalld_zone}
%{_prefix}/lib/firewalld/zones/libvirt.xml %{_prefix}/lib/firewalld/zones/libvirt.xml
%{_prefix}/lib/firewalld/zones/libvirt-routed.xml %{_prefix}/lib/firewalld/zones/libvirt-routed.xml
%{_prefix}/lib/firewalld/policies/libvirt-routed-in.xml %{_prefix}/lib/firewalld/policies/libvirt-routed-in.xml
%{_prefix}/lib/firewalld/policies/libvirt-routed-out.xml %{_prefix}/lib/firewalld/policies/libvirt-routed-out.xml
%{_prefix}/lib/firewalld/policies/libvirt-to-host.xml %{_prefix}/lib/firewalld/policies/libvirt-to-host.xml
%endif %endif
%files daemon-driver-nodedev %files daemon-driver-nodedev
%config(noreplace) %{_sysconfdir}/libvirt/virtnodedevd.conf %config(noreplace) %{_sysconfdir}/libvirt/virtnodedevd.conf
@ -2151,31 +2175,31 @@ exit 0
%files daemon-driver-storage-iscsi %files daemon-driver-storage-iscsi
%{_libdir}/libvirt/storage-backend/libvirt_storage_backend_iscsi.so %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_iscsi.so
%if %{with_storage_iscsi_direct} %if %{with_storage_iscsi_direct}
%files daemon-driver-storage-iscsi-direct %files daemon-driver-storage-iscsi-direct
%{_libdir}/libvirt/storage-backend/libvirt_storage_backend_iscsi-direct.so %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_iscsi-direct.so
%endif %endif
%files daemon-driver-storage-mpath %files daemon-driver-storage-mpath
%{_libdir}/libvirt/storage-backend/libvirt_storage_backend_mpath.so %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_mpath.so
%if %{with_storage_gluster} %if %{with_storage_gluster}
%files daemon-driver-storage-gluster %files daemon-driver-storage-gluster
%{_libdir}/libvirt/storage-backend/libvirt_storage_backend_gluster.so %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_gluster.so
%{_libdir}/libvirt/storage-file/libvirt_storage_file_gluster.so %{_libdir}/libvirt/storage-file/libvirt_storage_file_gluster.so
%endif %endif
%if %{with_storage_rbd} %if %{with_storage_rbd}
%files daemon-driver-storage-rbd %files daemon-driver-storage-rbd
%{_libdir}/libvirt/storage-backend/libvirt_storage_backend_rbd.so %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_rbd.so
%endif %endif
%if %{with_storage_zfs} %if %{with_storage_zfs}
%files daemon-driver-storage-zfs %files daemon-driver-storage-zfs
%{_libdir}/libvirt/storage-backend/libvirt_storage_backend_zfs.so %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_zfs.so
%endif %endif
%if %{with_qemu} %if %{with_qemu}
%files daemon-driver-qemu %files daemon-driver-qemu
%config(noreplace) %{_sysconfdir}/libvirt/virtqemud.conf %config(noreplace) %{_sysconfdir}/libvirt/virtqemud.conf
%config(noreplace) %{_prefix}/lib/sysctl.d/60-qemu-postcopy-migration.conf %config(noreplace) %{_prefix}/lib/sysctl.d/60-qemu-postcopy-migration.conf
@ -2213,9 +2237,9 @@ exit 0
%{_bindir}/virt-qemu-run %{_bindir}/virt-qemu-run
%{_mandir}/man1/virt-qemu-run.1* %{_mandir}/man1/virt-qemu-run.1*
%{_mandir}/man8/virtqemud.8* %{_mandir}/man8/virtqemud.8*
%endif %endif
%if %{with_lxc} %if %{with_lxc}
%files daemon-driver-lxc %files daemon-driver-lxc
%config(noreplace) %{_sysconfdir}/libvirt/virtlxcd.conf %config(noreplace) %{_sysconfdir}/libvirt/virtlxcd.conf
%{_datadir}/augeas/lenses/virtlxcd.aug %{_datadir}/augeas/lenses/virtlxcd.aug
@ -2237,9 +2261,9 @@ exit 0
%attr(0755, root, root) %{_libexecdir}/libvirt_lxc %attr(0755, root, root) %{_libexecdir}/libvirt_lxc
%{_libdir}/libvirt/connection-driver/libvirt_driver_lxc.so %{_libdir}/libvirt/connection-driver/libvirt_driver_lxc.so
%{_mandir}/man8/virtlxcd.8* %{_mandir}/man8/virtlxcd.8*
%endif %endif
%if %{with_libxl} %if %{with_libxl}
%files daemon-driver-libxl %files daemon-driver-libxl
%config(noreplace) %{_sysconfdir}/libvirt/virtxend.conf %config(noreplace) %{_sysconfdir}/libvirt/virtxend.conf
%{_datadir}/augeas/lenses/virtxend.aug %{_datadir}/augeas/lenses/virtxend.aug
@ -2265,9 +2289,9 @@ exit 0
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/libxl/save/ %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/libxl/save/
%{_libdir}/libvirt/connection-driver/libvirt_driver_libxl.so %{_libdir}/libvirt/connection-driver/libvirt_driver_libxl.so
%{_mandir}/man8/virtxend.8* %{_mandir}/man8/virtxend.8*
%endif %endif
%if %{with_vbox} %if %{with_vbox}
%files daemon-driver-vbox %files daemon-driver-vbox
%config(noreplace) %{_sysconfdir}/libvirt/virtvboxd.conf %config(noreplace) %{_sysconfdir}/libvirt/virtvboxd.conf
%{_datadir}/augeas/lenses/virtvboxd.aug %{_datadir}/augeas/lenses/virtvboxd.aug
@ -2279,29 +2303,29 @@ exit 0
%attr(0755, root, root) %{_sbindir}/virtvboxd %attr(0755, root, root) %{_sbindir}/virtvboxd
%{_libdir}/libvirt/connection-driver/libvirt_driver_vbox.so %{_libdir}/libvirt/connection-driver/libvirt_driver_vbox.so
%{_mandir}/man8/virtvboxd.8* %{_mandir}/man8/virtvboxd.8*
%endif %endif
%if %{with_qemu_tcg} %if %{with_qemu_tcg}
%files daemon-qemu %files daemon-qemu
%endif %endif
%if %{with_qemu_kvm} %if %{with_qemu_kvm}
%files daemon-kvm %files daemon-kvm
%endif %endif
%if %{with_lxc} %if %{with_lxc}
%files daemon-lxc %files daemon-lxc
%endif %endif
%if %{with_libxl} %if %{with_libxl}
%files daemon-xen %files daemon-xen
%endif %endif
%if %{with_vbox} %if %{with_vbox}
%files daemon-vbox %files daemon-vbox
%endif %endif
%if %{with_sanlock} %if %{with_sanlock}
%files daemon-plugin-sanlock %files daemon-plugin-sanlock
%if %{with_qemu} %if %{with_qemu}
%config(noreplace) %{_sysconfdir}/libvirt/qemu-sanlock.conf %config(noreplace) %{_sysconfdir}/libvirt/qemu-sanlock.conf
@ -2317,7 +2341,7 @@ exit 0
%{_sbindir}/virt-sanlock-cleanup %{_sbindir}/virt-sanlock-cleanup
%{_mandir}/man8/virt-sanlock-cleanup.8* %{_mandir}/man8/virt-sanlock-cleanup.8*
%attr(0755, root, root) %{_libexecdir}/libvirt_sanlock_helper %attr(0755, root, root) %{_libexecdir}/libvirt_sanlock_helper
%endif %endif
%files client %files client
%{_mandir}/man1/virsh.1* %{_mandir}/man1/virsh.1*
@ -2331,13 +2355,13 @@ exit 0
%{_bindir}/virt-pki-validate %{_bindir}/virt-pki-validate
%{_datadir}/bash-completion/completions/virsh %{_datadir}/bash-completion/completions/virsh
%if %{with_qemu} %if %{with_qemu}
%files client-qemu %files client-qemu
%{_mandir}/man1/virt-qemu-qmp-proxy.1* %{_mandir}/man1/virt-qemu-qmp-proxy.1*
%{_mandir}/man1/virt-qemu-sev-validate.1* %{_mandir}/man1/virt-qemu-sev-validate.1*
%{_bindir}/virt-qemu-qmp-proxy %{_bindir}/virt-qemu-qmp-proxy
%{_bindir}/virt-qemu-sev-validate %{_bindir}/virt-qemu-sev-validate
%endif %endif
%files libs -f %{name}.lang %files libs -f %{name}.lang
%license COPYING COPYING.LESSER %license COPYING COPYING.LESSER
@ -2352,29 +2376,29 @@ exit 0
%dir %{_datadir}/libvirt/schemas/ %dir %{_datadir}/libvirt/schemas/
%{_datadir}/systemtap/tapset/libvirt_probes*.stp %{_datadir}/systemtap/tapset/libvirt_probes*.stp
%{_datadir}/systemtap/tapset/libvirt_functions.stp %{_datadir}/systemtap/tapset/libvirt_functions.stp
%if %{with_qemu} %if %{with_qemu}
%{_datadir}/systemtap/tapset/libvirt_qemu_probes*.stp %{_datadir}/systemtap/tapset/libvirt_qemu_probes*.stp
%endif %endif
%{_datadir}/libvirt/schemas/*.rng %{_datadir}/libvirt/schemas/*.rng
%{_datadir}/libvirt/cpu_map/*.xml %{_datadir}/libvirt/cpu_map/*.xml
%{_datadir}/libvirt/test-screenshot.png %{_datadir}/libvirt/test-screenshot.png
%if %{with_wireshark} %if %{with_wireshark}
%files wireshark %files wireshark
%{wireshark_plugindir}/libvirt.so %{wireshark_plugindir}/libvirt.so
%endif %endif
%files nss %files nss
%{_libdir}/libnss_libvirt.so.2 %{_libdir}/libnss_libvirt.so.2
%{_libdir}/libnss_libvirt_guest.so.2 %{_libdir}/libnss_libvirt_guest.so.2
%if %{with_lxc} %if %{with_lxc}
%files login-shell %files login-shell
%attr(4750, root, virtlogin) %{_bindir}/virt-login-shell %attr(4750, root, virtlogin) %{_bindir}/virt-login-shell
%{_libexecdir}/virt-login-shell-helper %{_libexecdir}/virt-login-shell-helper
%config(noreplace) %{_sysconfdir}/libvirt/virt-login-shell.conf %config(noreplace) %{_sysconfdir}/libvirt/virt-login-shell.conf
%{_mandir}/man1/virt-login-shell.1* %{_mandir}/man1/virt-login-shell.1*
%endif %endif
%files devel %files devel
%{_libdir}/libvirt.so %{_libdir}/libvirt.so
@ -2409,6 +2433,7 @@ exit 0
%{_datadir}/libvirt/api/libvirt-admin-api.xml %{_datadir}/libvirt/api/libvirt-admin-api.xml
%{_datadir}/libvirt/api/libvirt-qemu-api.xml %{_datadir}/libvirt/api/libvirt-qemu-api.xml
%{_datadir}/libvirt/api/libvirt-lxc-api.xml %{_datadir}/libvirt/api/libvirt-lxc-api.xml
%endif
%if %{with_mingw32} %if %{with_mingw32}
%files -n mingw32-libvirt -f mingw32-libvirt.lang %files -n mingw32-libvirt -f mingw32-libvirt.lang