# # spec file for package rust-cbindgen # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # Use hardening ldflags. %global crate_name cbindgen %global rustflags -Clink-arg=-Wl,-z,relro,-z,now Name: rust-%{crate_name} Version: 0.6.7 Release: 0 Summary: A tool for generating C bindings from Rust code License: MPL-2.0 Group: Development/Languages/Rust Url: https://crates.io/crates/cbindgen Source0: %{crate_name}-%{version}.tar.gz Source1: vendor.tar.xz BuildRequires: cargo >= 1.30.0 BuildRequires: rust >= 1.30.0 BuildRequires: rust-std-static >= 1.30.0 %description A tool for generating C bindings from Rust code. %prep %setup -q -T -b 0 -n %{crate_name}-%{version} %setup -q -D -T -a 1 -n %{crate_name}-%{version} mkdir cargo-home cat >cargo-home/config <