From 46b0efd8104f880d8e2d2044b495349eb43d7ff1 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:35:16 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.63.0-1mamba;Tue Dec 27 2022] --- README.md | 2 ++ rust-bindgen.spec | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 rust-bindgen.spec diff --git a/README.md b/README.md index e4aa32f..bb646d2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # rust-bindgen +Automatically generates Rust FFI bindings to C (and some C++) libraries. + diff --git a/rust-bindgen.spec b/rust-bindgen.spec new file mode 100644 index 0000000..4e7c962 --- /dev/null +++ b/rust-bindgen.spec @@ -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 +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 0.63.0-1mamba +- package created using the webbuild interface