Don't BuildRequire bpftool if we aren't building an actual kernel

Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
This commit is contained in:
Justin M. Forbes 2021-06-29 14:19:05 -05:00
parent 1711d9ed45
commit 9d4cb9c3e3
No known key found for this signature in database
GPG Key ID: B8FA7924A4B1C140

View File

@ -545,7 +545,9 @@ BuildRequires: net-tools, hostname, bc, elfutils-devel
BuildRequires: dwarves BuildRequires: dwarves
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: gcc-plugin-devel BuildRequires: gcc-plugin-devel
%ifnarch %{nobuildarches}
BuildRequires: bpftool BuildRequires: bpftool
%endif
%if %{with_headers} %if %{with_headers}
BuildRequires: rsync BuildRequires: rsync
%endif %endif