rust-bindgen/rust-bindgen.spec

44 lines
1.2 KiB
RPMSpec

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