Update to 0.22.0

Signed-off-by: Michel Lind <salimma@fedoraproject.org>
epel9
Michel Lind 1 year ago
parent 4f7cd69ab8
commit 15f586da51
No known key found for this signature in database
GPG Key ID: 8B229D2F7CCC04F2

1
.gitignore vendored

@ -2,3 +2,4 @@
/libbpf-cargo-0.10.0.crate /libbpf-cargo-0.10.0.crate
/libbpf-cargo-0.13.1.crate /libbpf-cargo-0.13.1.crate
/libbpf-cargo-0.21.2.crate /libbpf-cargo-0.21.2.crate
/libbpf-cargo-0.22.0.crate

@ -12,7 +12,7 @@
- .parent() - .parent()
- .expect("failed to get parent of libbpf-cargo directory") - .expect("failed to get parent of libbpf-cargo directory")
- .join("libbpf-rs") - .join("libbpf-rs")
+ Path::new("/usr/share/cargo/registry/libbpf-rs-0.21.2") + Path::new("/usr/share/cargo/registry/libbpf-rs-0.22.0")
.canonicalize() .canonicalize()
.expect("failed to canonicalize libbpf-rs") .expect("failed to canonicalize libbpf-rs")
} }

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

@ -1,7 +0,0 @@
[DEFAULT]
buildrequires =
clang
rustfmt
lib.requires =
clang
rustfmt

@ -0,0 +1,3 @@
[requires]
build = ["clang", "rustfmt"]
lib = ["clang", "rustfmt"]

@ -1 +1 @@
SHA512 (libbpf-cargo-0.21.2.crate) = 8cc6e1e9f159fdc619621fe21960d6c634a978b14a203fdbad5b8615e31e871f68f85ad43521625235bf312f03804de633d7d45d0056b58288e612d6794f5db3 SHA512 (libbpf-cargo-0.22.0.crate) = e06d45e543ceca3b8893f435cf22fb2112b93269dde75a2d7757366db3f3b76cff83ec6afd55ee767a54cc5f034cb62b2f5a90939a356231c16df1927243f026

Loading…
Cancel
Save