|
|
|
@ -14,7 +14,7 @@ Summary: Safe, idiomatic, and opinionated wrapper around libbpf-sys
|
|
|
|
|
License: LGPLv2 or BSD
|
|
|
|
|
URL: https://crates.io/crates/libbpf-rs
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Downgrade nix to 0.20
|
|
|
|
|
# Downgrade nix to 0.20, backport novendor feature from PR#125
|
|
|
|
|
Patch0: libbpf-rs-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
@ -55,6 +55,18 @@ which use "default" feature of "%{crate}" crate.
|
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+novendor-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+novendor-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "novendor" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+novendor-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|