Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
rust-cbindgen.34326
rust-cbindgen.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rust-cbindgen.spec of Package rust-cbindgen.34326
# # spec file # # Copyright (c) 2024 SUSE LLC # # 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 https://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.26.0+git0 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.xz Source1: vendor.tar.xz Source99: UPDATING.md BuildRequires: cargo1.78 BuildRequires: rust1.78 %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} %build # This should eventually migrate to distro policy # Enable optimization, debuginfo, and link hardening. export RUSTFLAGS="%{rustflags}" cargo build --release %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}" # cargo install appends /bin to the path cargo install --root=%{buildroot}%{_prefix} --path . # remove spurious files rm -f %{buildroot}%{_prefix}/.crates.toml rm -f %{buildroot}%{_prefix}/.crates2.json %files %license LICENSE %{_bindir}/cbindgen %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor