1 Star 0 Fork 6

brucezhang/cargo-c

forked from wynn-OpenCloudOS/cargo-c 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
cargo-c.spec 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
brucezhang 提交于 2024-10-16 17:55 +08:00 . rebuild
%bcond_without check
%global rustflags_debuginfo 1
Summary: Helper program to build and install c-like libraries
Name: cargo-c
Version: 0.9.18
Release: 6%{?dist}
License: MIT
URL: https://crates.io/crates/cargo-c
Source0: https://github.com/lu-zero/cargo-c/archive/refs/tags/v%{version}.tar.gz #/%{name}-%{version}.tar.gz
# cd source directory; cargo vendor; tar
Source1: vendor.tar.gz
BuildRequires: cargo rust-toolset
BuildRequires: pkgconfig(openssl)
%description
cargo applet to build and install C-ABI compatible dynamic and static libraries.
It produces and installs a correct pkg-config file, a static library and
a dynamic library, and a C header to be used by any C (and C-compatible) software.
%prep
%autosetup -p1
%cargo_prep -V 1
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%files
%license LICENSE
%doc README.md
%{_bindir}/cargo-capi
%{_bindir}/cargo-cbuild
%{_bindir}/cargo-cinstall
%{_bindir}/cargo-ctest
%changelog
* Fri Sep 08 2023 OpenCloudOS Release Engineering <[email protected]> - 0.9.18-6
- Rebuild
* Fri Sep 08 2023 OpenCloudOS Release Engineering <[email protected]> - 0.9.18-5
- Rebuilt for OpenCloudOS Stream 23.09
* Tue Jul 18 2023 Wang Guodong <[email protected]> - 0.9.18-4
- Rebuilt for rust 1.69.0
* Fri Apr 28 2023 OpenCloudOS Release Engineering <[email protected]> - 0.9.18-3
- Rebuilt for OpenCloudOS Stream 23.05
* Thu Apr 27 2023 rockerzhu <[email protected]> - 0.9.18-2
- Enable check.
* Sun Apr 23 2023 rockerzhu <[email protected]> - 0.9.18-1
- Initial build.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bbrucezhang/cargo-c.git
[email protected]:bbrucezhang/cargo-c.git
bbrucezhang
cargo-c
cargo-c
master

搜索帮助