Maintain compatibility with rust-packaging v21 on EPEL 9

epel9
Fabio Valentini 2 years ago
parent 767cc1a8da
commit 61084027a4
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -15,7 +15,7 @@ Source: %{crates_source}
# * default to linking with libclang instead of using dlopen # * default to linking with libclang instead of using dlopen
Patch: bindgen-cli-fix-metadata.diff Patch: bindgen-cli-fix-metadata.diff
BuildRequires: rust-packaging >= 23 BuildRequires: rust-packaging >= 21
%global _description %{expand: %global _description %{expand:
Automatically generates Rust FFI bindings to C and C++ libraries.} Automatically generates Rust FFI bindings to C and C++ libraries.}
@ -36,13 +36,11 @@ Obsoletes: bindgen < 0.61
# MIT OR Apache-2.0 # MIT OR Apache-2.0
# Unlicense OR MIT # Unlicense OR MIT
License: BSD-3-Clause AND Apache-2.0 AND ISC and MIT AND Unicode-DFS-2016 License: BSD-3-Clause AND Apache-2.0 AND ISC and MIT AND Unicode-DFS-2016
# LICENSE.dependencies contains a full license breakdown
%description -n %{crate} %{_description} %description -n %{crate} %{_description}
%files -n %{crate} %files -n %{crate}
%license LICENSE %license LICENSE
%license LICENSE.dependencies
%doc README.md %doc README.md
%{_bindir}/bindgen %{_bindir}/bindgen
@ -55,7 +53,6 @@ License: BSD-3-Clause AND Apache-2.0 AND ISC and MIT AND Unicode-DFS-2016
%build %build
%cargo_build %cargo_build
%{cargo_license} > LICENSE.dependencies
%install %install
%cargo_install %cargo_install

Loading…
Cancel
Save