Skip to content

Commit

Permalink
Merge pull request #24748 from lsm5/no-qemu-centos
Browse files Browse the repository at this point in the history
[skip-ci] RPM: no qemu on RHEL
  • Loading branch information
openshift-merge-bot[bot] authored Jan 31, 2025
2 parents a923409 + be6fa68 commit e83c0c4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion rpm/podman.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -296,6 +308,9 @@ ln -s ../virtiofsd %{buildroot}%{_libexecdir}/%{name}
#define license tag if not already defined
%{!?_licensedir:%global license %doc}

# Include empty check to silence rpmlint warning
%check

%files -f %{name}.file-list
%license LICENSE vendor/modules.txt
%doc README.md CONTRIBUTING.md install.md transfer.md
Expand Down

0 comments on commit e83c0c4

Please sign in to comment.