mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-16 13:49:33 +00:00
Merge pull request #25217 from openshift-cherrypick-robot/cherry-pick-24748-to-v5.4
[v5.4] [skip-ci] RPM: no qemu on RHEL
This commit is contained in:
commit
4cd60c063c
1 changed files with 16 additions and 1 deletions
|
|
@ -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}
|
||||
|
|
@ -188,7 +190,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
|
||||
|
||||
|
|
@ -297,6 +309,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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue