|
|
|
@ -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
|
|
|
|
|