diff --git a/libbpf-sys-fix-metadata.diff b/libbpf-sys-fix-metadata.diff index 3b33bb2..daea48d 100644 --- a/libbpf-sys-fix-metadata.diff +++ b/libbpf-sys-fix-metadata.diff @@ -18,11 +18,3 @@ optional = true [build-dependencies.cc] -@@ -48,6 +48,7 @@ - version = "0.3" - - [features] -+default = ["novendor"] - novendor = [] - static = [] - diff --git a/rust-libbpf-sys.spec b/rust-libbpf-sys.spec index c535c1b..54d7092 100644 --- a/rust-libbpf-sys.spec +++ b/rust-libbpf-sys.spec @@ -15,12 +15,14 @@ URL: https://crates.io/crates/libbpf-sys Source: %{crates_source %{crate} %{upstream_version}} # Manually created patch for downstream crate metadata changes # * remove version suffix from crate version -# * default to novendor # * bump bindgen to 0.63 Patch: libbpf-sys-fix-metadata.diff BuildRequires: rust-packaging >= 21 +# the system libbpf is too old, use the bundled copy +Provides: bundled(libbpf) = 1.0.1 + %global _description %{expand: Rust bindings to libbpf from the Linux kernel.} @@ -94,15 +96,12 @@ use the "static" feature of the "%{crate}" crate. %prep %autosetup -n %{crate}-%{upstream_version} -p1 -# Remove bundled libbpf -rm -r libbpf %cargo_prep %generate_buildrequires %cargo_generate_buildrequires echo 'elfutils-libelf-devel' echo 'kernel-headers' -echo 'libbpf-devel' echo 'zlib-devel' %build