%global crate_name bindgen
Name: rust-bindgen
Version: 0.72.1
Release: 1
Summary: Automatically generates Rust FFI bindings to C and C++ libraries
License: BSD-3-Clause
URL: https://crates.io/crates/bindgen
Source0: https://github.com/rust-lang/%{name}/archive/refs/tags/v%{version}.tar.gz
Source1: vendor.tar.xz
BuildRequires: cargo >= 1.70.0
BuildRequires: rust >= 1.70.0
BuildRequires: rust-packaging
Requires: gcc gcc-c++ clang
%description
Automatically generates Rust FFI bindings to C and C++ libraries.
%prep
%setup -q -T -b 0 -n %{name}-%{version}
%setup -q -D -T -a 1 -n %{name}-%{version}
%cargo_prep
%build
%cargo_build
%install
install -D -d -m 0755 %{buildroot}%{_bindir}
install -Dm755 target/release/bindgen %{buildroot}%{_bindir}/
%files
%license LICENSE
%{_bindir}/bindgen
%changelog
* Sun Mar 22 2026 Funda Wang <fundawang@yeah.net> - 0.72.1-1
- update to 0.72.1
* Wed Oct 23 2024 jchzhou <zhoujiacheng@iscas.ac.cn> - 0.70.1-1
- Upgrade to 0.70.1
* Tue Aug 08 2023 jchzhou <zhoujiacheng@iscas.ac.cn> - 0.66.1-1
- Upgrade to 0.66.1
* Mon May 15 2023 jchzhou <zhoujiacheng@iscas.ac.cn> - 0.65.1-1
- Init package