package created using the webbuild interface [release 0.63.0-1mamba;Tue Dec 27 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 17:35:16 +01:00
parent d9598fb03a
commit 46b0efd810
2 changed files with 45 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# rust-bindgen # rust-bindgen
Automatically generates Rust FFI bindings to C (and some C++) libraries.

43
rust-bindgen.spec Normal file
View File

@ -0,0 +1,43 @@
Name: rust-bindgen
Version: 0.63.0
Release: 1mamba
Summary: Automatically generates Rust FFI bindings to C (and some C++) libraries
Group: Development/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/rust-lang/rust-bindgen
Source: https://github.com/rust-lang/rust-bindgen.git/v%{version}/rust-bindgen-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
## AUTOBUILDREQ-END
%description
Automatically generates Rust FFI bindings to C (and some C++) libraries.
%debug_package
%prep
%setup -q
cargo fetch --locked --target "%{_target_cpu}-unknown-linux-gnu"
%build
cargo build --release --frozen
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -D -m0755 target/release/bindgen %{buildroot}%{_bindir}/bindgen
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/bindgen
%doc LICENSE
%changelog
* Tue Dec 27 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.63.0-1mamba
- package created using the webbuild interface