1 Star 0 Fork 13

zwy/iSulad-img

forked from openEuler/iSulad-img
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
iSulad-img.spec 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
YoungJQ 提交于 2020-08-03 09:54 . iSulad-img : add debug package
%global _version 2.0.0
%global _release 20200803.130531.git7619e1a0
Name: iSulad-img
Version: %{_version}
Release: %{_release}
Summary: a tool for downloading iSulad images
Group: Applications/System
License: Mulan PSL v2
URL: https://gitee.com/src-openeuler/iSulad-img
Source0: iSulad-img-2.0.tar.gz
BuildRequires: golang >= 1.8.3
BuildRequires: gpgme gpgme-devel
BuildRequires: device-mapper-devel
%description
A tool for downloading iSulad images, written in go language
%prep
%setup -q -b 0 -c -n iSulad-img-%{version}
# apply the patchs
cp ./patch/* ./
cat series-patch.conf | while read line
do
if [[ $line == '' || $line =~ ^\s*# ]]; then
continue
fi
patch -p1 -F1 -s < $line
done
cd -
%build
make %{?_smp_mflags}
%install
install -d $RPM_BUILD_ROOT/%{_bindir}
install -m 0755 ./isulad-img %{buildroot}/%{_bindir}/isulad-img
install -d $RPM_BUILD_ROOT/%{_sysconfdir}/containers
install -m 0644 ./default-policy.json $RPM_BUILD_ROOT/%{_sysconfdir}/containers/policy.json
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/isulad-img
%{_sysconfdir}/*
%changelog
* Mon Aug 03 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.0.0-20200803.130531.git7619e1a0
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: add debug packages
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/zwyopen2021/iSulad-img.git
git@gitee.com:zwyopen2021/iSulad-img.git
zwyopen2021
iSulad-img
iSulad-img
master

搜索帮助