mirror of
https://github.com/containers/podman.git
synced 2025-10-18 03:33:32 +08:00
[skip-ci] RPM: adjust qemu dependencies
We only need qemu-system-[x86|aarch64]-core based on the architecture along with qemu-img. So, there's no need to pull in all of qemu. The qemu-system-[x86|aarch64]-core packages are not present on CentOS Stream and RHEL, so we use qemu-kvm there instead. Ref: https://github.com/containers/podman/pull/24369/files#r1883658262 Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
@ -24,6 +24,8 @@
|
||||
|
||||
%if %{defined fedora}
|
||||
%define build_with_btrfs 1
|
||||
# qemu-system* isn't packageed for CentOS Stream / RHEL
|
||||
%define qemu 1
|
||||
%endif
|
||||
|
||||
%if %{defined copr_username}
|
||||
@ -187,7 +189,17 @@ when `%{_bindir}/%{name}sh` is set as a login shell or set as os.Args[0].
|
||||
Summary: Metapackage for setting up %{name} machine
|
||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||
Requires: gvisor-tap-vsock
|
||||
Requires: qemu
|
||||
%if %{defined qemu}
|
||||
%ifarch aarch64
|
||||
Requires: qemu-system-aarch64-core
|
||||
%endif
|
||||
%ifarch x86_64
|
||||
Requires: qemu-system-x86-core
|
||||
%endif
|
||||
%else
|
||||
Requires: qemu-kvm
|
||||
%endif
|
||||
Requires: qemu-img
|
||||
Requires: virtiofsd
|
||||
ExclusiveArch: x86_64 aarch64
|
||||
|
||||
|
Reference in New Issue
Block a user