5 Star 0 Fork 6

src-openEuler/nix

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nix.spec 1.81 KB
一键复制 编辑 原始数据 按行查看 历史
zhangxingrong 提交于 2024-09-25 17:21 . update to v0.29.0
%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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/nix.git
[email protected]:src-openeuler/nix.git
src-openeuler
nix
nix
master

搜索帮助