Only declare providing the bundled libbpf if we're vendoring

- restore deleting the bundled libbpf if defaulting to novendor

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
epel9
Michel Alexandre Salim 2 years ago
parent 73ba4a2a11
commit b378a9adee
No known key found for this signature in database
GPG Key ID: 8B229D2F7CCC04F2

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

Loading…
Cancel
Save