Projects
Factory:RISC-V:Base
rust-bindgen
_service:extract_file:rust-bindgen.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:extract_file:rust-bindgen.spec of Package rust-bindgen
%global debug_package %{nil} %global crate_name bindgen %global rustflags -Clink-arg=-Wl,-z,relro,-z,now Name: rust-bindgen Version: 0.63.0 Release: 1 Summary: Automatically generates Rust FFI bindings to C and C++ libraries License: BSD-3-Clause URL: https://crates.io/crates/bindgen Source0: %{name}-%{version}.tar.gz Source1: vendor.tar.xz Source2: cargo_config # Patch0: bindgen-fix-metadata.diff BuildRequires: cargo >= 1.57.0 BuildRequires: rust >= 1.57.0 Requires: gcc gcc-c++ clang %description Automatically generates Rust FFI bindings to C and C++ libraries. %prep %setup -q -T -b 0 -n %{name}-%{version} %setup -q -D -T -a 1 -n %{name}-%{version} mkdir cargo-home cp %{SOURCE2} cargo-home/config %build export RUSTFLAGS="%{rustflags}" export CARGO_HOME=`pwd`/cargo-home/ cargo build --release --frozen %install # rustflags must be exported again at install as cargo build will # rebuild the project if it detects flags have changed (to none or other) export RUSTFLAGS="%{rustflags}" # install stage also requires re-export of 'cargo-home' or cargo # will try to download source deps and rebuild export CARGO_HOME=`pwd`/cargo-home/ mkdir -p %{buildroot}%{_bindir} install -Dm755 target/release/bindgen %{buildroot}%{_bindir}/ %files %license LICENSE %{_bindir}/bindgen %changelog * Fri Dec 30 2022 jchzhou <jchzhou@outlook.com> - 0.63.0-1 - Init package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2