1 Star 0 Fork 6

abushwang/runc

forked from OpenCloudOS Stream/runc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
runc.spec 2.17 KB
一键复制 编辑 原始数据 按行查看 历史
Jackey_1024 提交于 2023-07-18 15:28 . upgrade to 1.1.7
%global gohomepath github.com/opencontainers
%global goipath %{gohomepath}/runc
Summary: runc is a CLI tool for spawning and running containers according to the OCI specification.
Name: runc
Version: 1.1.7
Release: 1%{?dist}
License: ASL 2.0
URL: https://%{goipath}
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
BuildRequires: golang glibc-static make libseccomp-devel libseccomp-static
BuildRequires: go-md2man libselinux-devel git go-rpm-macros
Provides: oci-runtime
%description
runc is a CLI tool for spawning and running containers according to the OCI specification.
%prep
%autosetup -n runc-%{version} -p1 -Sgit
%build
export CGO_CFLAGS=$CFLAGS
export BUILDTAGS="seccomp selinux"
CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-flto=auto//g')
%ifarch x86_64
export CGO_CFLAGS+=" -m64 -mtune=generic -fcf-protection=full"
%endif
export GOPATH=$PWD/.gopath
mkdir -p ${GOPATH}/src/%{gohomepath}
ln -sfn $PWD $GOPATH/src/%{goipath}
%gobuild -o runc %{goipath}
%install
install -p -Dm 755 runc %{buildroot}/%{_bindir}/runc
man/md2man-all.sh
install -d -p %{buildroot}%{_mandir}/man8
install -p -m 0644 man/man8/*.8 %{buildroot}%{_mandir}/man8/.
install -d -p %{buildroot}%{_datadir}/bash-completion/completions
install -p -Dm 0644 contrib/completions/bash/%{name} \
%{buildroot}%{_datadir}/bash-completion/completions/%{name}
%files
%license LICENSE
%doc MAINTAINERS_GUIDE.md PRINCIPLES.md README.md CONTRIBUTING.md
%{_bindir}/%{name}
%{_datadir}/bash-completion/completions/%{name}
%{_mandir}/man8/%{name}*
%changelog
* Tue Jul 18 2023 Kui Ji <[email protected]> - 1.1.7-1
- upgrade to 1.1.7
* Fri Apr 28 2023 OpenCloudOS Release Engineering <[email protected]> - 1.1.4-6
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <[email protected]> - 1.1.4-5
- Rebuilt for OpenCloudOS Stream 23
* Mon Dec 26 2022 Shuo Wang <[email protected]> - 1.1.4-4
- provides oci-runtime
* Fri Dec 16 2022 Shuo Wang <[email protected]> - 1.1.4-3
- apply %gobuild macro and enable debuginfo
* Thu Dec 15 2022 Shuo Wang <[email protected]> - 1.1.4-2
- enable man
* Wed Dec 14 2022 Shuo Wang <[email protected]> - 1.1.4-1
- initial build
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/abushwang/runc.git
[email protected]:abushwang/runc.git
abushwang
runc
runc
master

搜索帮助