eggo/eggo.spec
haozi007 dc44282e31 init v0.9.0 eggo
Signed-off-by: haozi007 <liuhao27@huawei.com>
Signed-off-by: WangFengTu <wangfengtu@huawei.com>
2021-07-12 19:20:34 +08:00

58 lines
1.3 KiB
RPMSpec

%global _version 0.9.0
%global _release 20210712.150722.gitddf3d38e
Name: eggo
Version: %{_version}
Release: %{_release}
Summary: Eggo is a tool built to provide standard multi-ways for creating Kubernetes clusters.
License: Mulan PSL V2
URL: https://gitee.com/openeuler/eggo
Source0: https://gitee.com/openeuler/eggo/repository/archive/v%{version}.tar.gz
Patch1: 0001-mkdir-etcd-work-dir-and-manifest-dir.patch
Patch2: 0002-default-open-ports-for-coredns.patch
Patch3: 0003-change-package-path-to-isula.org.patch
BuildRequires: make
BuildRequires: git
BuildRequires: golang >= 1.13
%description
Eggo is a tool built to provide standard multi-ways for creating Kubernetes clusters.
%prep
%autosetup -n eggo -Sgit -p1
%build
export GO111MODULE=off
rm -f go.mod go.sum
cp -rf vendor src
mkdir -p src/isula.org/eggo
cp -rf api cmd pkg src/isula.org/eggo/
export GOPATH=$(pwd):$GOPATH
%{make_build}
%install
rm -rf %{buildroot}
install -d %{buildroot}%{_bindir}
# install binary
install -p ./bin/eggo %{buildroot}%{_bindir}/eggo
%clean
rm -rf %{buildroot}
rm -rf src
%post
%files
# default perm for files and folder
%defattr(0640,root,root,0550)
%attr(551,root,root) %{_bindir}/eggo
%changelog
* Mon Jul 12 2021 wangfengtu<wangfengtu@huawei.com> - 0.9.0-20210712.150722.gitddf3d38e
- Type:add
- CVE:NA
- SUG:restart
- DESC:init repo