|
|
@ -30,8 +30,10 @@ Patch101: libbpf-sys-default-to-novendor.diff
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{without novendor}
|
|
|
|
# the system libbpf is too old, use the bundled copy
|
|
|
|
# the system libbpf is too old, use the bundled copy
|
|
|
|
Provides: bundled(libbpf) = 1.0.1
|
|
|
|
Provides: bundled(libbpf) = 1.0.1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Rust bindings to libbpf from the Linux kernel.}
|
|
|
|
Rust bindings to libbpf from the Linux kernel.}
|
|
|
@ -113,6 +115,7 @@ use the "static" feature of the "%{crate}" crate.
|
|
|
|
%autopatch -p1 -M 100
|
|
|
|
%autopatch -p1 -M 100
|
|
|
|
%if %{with novendor}
|
|
|
|
%if %{with novendor}
|
|
|
|
%autopatch -p1 -m 101
|
|
|
|
%autopatch -p1 -m 101
|
|
|
|
|
|
|
|
rm -rf libbpf
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
|
|