代码拉取完成,页面将自动刷新
%global debug_package %{nil}
%global crate_name bindgen
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now
Name: nix
Version: 0.29.0
Release: 1
Summary: Nix seeks to provide friendly bindings to various *nix platform APIs (Linux, Darwin, ...). The goal is to not provide a 100% unified interface, but to unify what can be while still providing platform specific APIs.
License: MIT License
URL: https://github.com/nix-rust/nix
Source0: v%{version}.tar.gz
Source1: vendor.tar.xz
Source2: cargo_config
BuildRequires: cargo >= 1.63.0
BuildRequires: rust >= 1.63.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
%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}/usr/lib
install -Dm755 target/release/lib* %{buildroot}/usr/lib
%files
%license LICENSE
/usr/lib/libnix*
%changelog
* Wed Sep 25 2024 zhangxingrong <[email protected]> - 0.29.0-1
- Update to version 0.29.0
* Tue May 21 2024 zhangxingrong <[email protected]> - 0.28.0-1
- Update to version 0.28.0
* Mon Jan 08 2024 Paul Thomas <[email protected]> - 0.27.1-1
- update to version 0.27.1
* Mon Jul 24 2023 huangduirong<[email protected]> - 0.26.2-1
- Init package
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。