Skip to content

Commit

Permalink
[skip-ci] RPM: adjust qemu dependency
Browse files Browse the repository at this point in the history
QEMU is available only on Fedora. RHEL and CentOS Stream can use
qemu-kvm instead.

Signed-off-by: Lokesh Mandvekar <[email protected]>
  • Loading branch information
lsm5 committed Dec 13, 2024
1 parent b5579cd commit 2f614df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rpm/podman.spec
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
# podman-machine subpackage will be present only on these architectures
%global machine_arches x86_64 aarch64

%if %{defined fedora}
%define qemu 1
%endif

Name: podman
%if %{defined copr_build}
Epoch: 102
Expand Down Expand Up @@ -187,7 +191,11 @@ 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
%if %{defined qemu}
Requires: qemu
%else
Requires: qemu-kvm
%endif
Requires: virtiofsd
ExclusiveArch: x86_64 aarch64

Expand Down

0 comments on commit 2f614df

Please sign in to comment.