|
|
@ -1,10 +1,10 @@
|
|
|
|
# Generated by rust2rpm 24
|
|
|
|
# Generated by rust2rpm 25
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
|
|
|
|
%global crate libbpf-cargo
|
|
|
|
%global crate libbpf-cargo
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-libbpf-cargo
|
|
|
|
Name: rust-libbpf-cargo
|
|
|
|
Version: 0.21.2
|
|
|
|
Version: 0.22.0
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Cargo plugin to build bpf programs
|
|
|
|
Summary: Cargo plugin to build bpf programs
|
|
|
|
|
|
|
|
|
|
|
@ -15,7 +15,7 @@ Source: %{crates_source}
|
|
|
|
# fix to point to /usr/share/cargo/registry
|
|
|
|
# fix to point to /usr/share/cargo/registry
|
|
|
|
Patch: libbpf-cargo-fix-finding-libbpf-rs.diff
|
|
|
|
Patch: libbpf-cargo-fix-finding-libbpf-rs.diff
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Cargo plugin to build bpf programs.}
|
|
|
|
Cargo plugin to build bpf programs.}
|
|
|
@ -24,6 +24,9 @@ Cargo plugin to build bpf programs.}
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{crate}
|
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
# FIXME: paste output of %%cargo_license_summary here
|
|
|
|
|
|
|
|
License: # FIXME
|
|
|
|
|
|
|
|
# LICENSE.dependencies contains a full license breakdown
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
|
|
|
|
|
|
|
@ -31,6 +34,7 @@ Summary: %{summary}
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE.BSD-2-Clause
|
|
|
|
%license LICENSE.BSD-2-Clause
|
|
|
|
%license LICENSE.LGPL-2.1
|
|
|
|
%license LICENSE.LGPL-2.1
|
|
|
|
|
|
|
|
%license LICENSE.dependencies
|
|
|
|
%doc CHANGELOG.md
|
|
|
|
%doc CHANGELOG.md
|
|
|
|
%doc README.md
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/cargo-libbpf
|
|
|
|
%{_bindir}/cargo-libbpf
|
|
|
@ -79,7 +83,7 @@ use the "novendor" feature of the "%{crate}" crate.
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
@ -89,6 +93,8 @@ echo 'rustfmt'
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%{cargo_license_summary}
|
|
|
|
|
|
|
|
%{cargo_license} > LICENSE.dependencies
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
%cargo_install
|
|
|
|