iSulad-kit.spec 1.2 KB
Newer Older
O
overweight 已提交
1
%global _version 1.0.12
W
WangFengTu 已提交
2
%global _release 20200211.091049.gita4ddcad0
O
overweight 已提交
3 4
Name:       iSulad-kit
Version:    %{_version}
Z
zhuchunyi 已提交
5
Release:    %{_release}
O
overweight 已提交
6 7 8 9 10
Summary:    a tool for downloading iSulad images


Group:      Applications/System
License:    Mulan PSL v1
D
dogsheng 已提交
11
URL:        https://gitee.com/src-openeuler/iSulad-kit
Z
zhuchunyi 已提交
12
Source0:    iSulad-kit-1.0.tar.gz
O
overweight 已提交
13 14 15

BuildRequires:  golang >= 1.8.3
BuildRequires:  gpgme gpgme-devel
W
WangFengTu 已提交
16
BuildRequires:  device-mapper-devel
O
overweight 已提交
17 18 19 20 21 22 23

%description
A tool for downloading iSulad images, written in go language

%global debug_package %{nil}

%prep
Z
zhuchunyi 已提交
24
%setup -q -b 0 -c -n iSulad-kit-%{version}
O
overweight 已提交
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

# 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_kit %{buildroot}/%{_bindir}/isulad_kit
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_kit
%{_sysconfdir}/*

%changelog