Fix errors with %setup
This commit is contained in:
parent
c3cdbefe4f
commit
c007c18356
@ -1,5 +1,6 @@
|
|||||||
%bcond_without ctr
|
%bcond_without ctr
|
||||||
%bcond_with debug
|
%bcond_with debug
|
||||||
|
%define tarball_name containerd
|
||||||
|
|
||||||
%if %{with debug}
|
%if %{with debug}
|
||||||
%global _dwz_low_mem_die_limit 0
|
%global _dwz_low_mem_die_limit 0
|
||||||
@ -12,7 +13,7 @@
|
|||||||
%global runc_nokmem %{getenv:RUNC_NOKMEM}
|
%global runc_nokmem %{getenv:RUNC_NOKMEM}
|
||||||
|
|
||||||
Name: containerd.io
|
Name: containerd.io
|
||||||
Provides: containerd
|
Provides: %{tarball_name}
|
||||||
|
|
||||||
# Conflicting packages
|
# Conflicting packages
|
||||||
|
|
||||||
@ -66,10 +67,10 @@ low-level storage and network attachments, etc.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q -n %{tarball_name}-%{version}
|
||||||
# symlink the go source path to our build directory
|
# symlink the go source path to our build directory
|
||||||
mkdir -p ${RPM_BUILD_DIR}/go/src/github.com/containerd/
|
mkdir -p ${RPM_BUILD_DIR}/go/src/github.com/containerd/
|
||||||
ln -s %{_topdir}/BUILD/containerd-1.6.4 ${RPM_BUILD_DIR}/go/src/%{import_path}
|
ln -s %{_topdir}/BUILD/%{tarball_name}-%{version} ${RPM_BUILD_DIR}/go/src/%{import_path}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
GO111MODULE=auto make man
|
GO111MODULE=auto make man
|
||||||
@ -88,7 +89,7 @@ bin/containerd --version
|
|||||||
bin/ctr --version
|
bin/ctr --version
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd %{_topdir}/BUILD/containerd-1.6.4
|
cd %{_topdir}/BUILD/%{tarball_name}-%{version}
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
install -D -m 0755 bin/* %{buildroot}%{_bindir}
|
install -D -m 0755 bin/* %{buildroot}%{_bindir}
|
||||||
install -D -m 0644 containerd.service %{buildroot}%{_unitdir}/containerd.service
|
install -D -m 0644 containerd.service %{buildroot}%{_unitdir}/containerd.service
|
||||||
|
Loading…
Reference in New Issue
Block a user