# TODO: use shared crates? Summary: Tool for generating C bindings to Rust code Summary(pl.UTF-8): Narzędzie do generowania wiązań C do kodu w języku Rust Name: rust-cbindgen Version: 0.13.1 Release: 1 License: MPL v2.0 Group: Development/Tools #Source0Download: https://github.com/eqrion/cbindgen/releases Source0: https://github.com/eqrion/cbindgen/archive/v%{version}/cbindgen-%{version}.tar.gz # Source0-md5: 5b13c2d2ba8465a940427d3fcafa8adb # cd cbindgen-%{version} # cargo vendor # cd .. # tar cJf cbindgen-crates-%{version}.tar.xz cbindgen-%{version}/{vendor,Cargo.lock} Source1: cbindgen-crates-%{version}.tar.xz # Source1-md5: 7a3a1fc0aa0167a84547385a63dae000 URL: https://github.com/eqrion/cbindgen BuildRequires: cargo BuildRequires: rust ExclusiveArch: %{x8664} %{ix86} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This project can be used to generate C bindings for Rust code. %description -l pl.UTF-8 Ten projekt służy do generowania wiązań C do kodu w języku Rust. %prep %setup -q -n cbindgen-%{version} -b1 # use our offline registry export CARGO_HOME="$(pwd)/.cargo" mkdir -p "$CARGO_HOME" cat >.cargo/config <