%bcond_with check %global forgeurl https://github.com/kubernetes/minikube %global goipath github.com/kubernetes/minikube Version: 1.35.0 %gometa %global common_description %{expand: A tool that makes it easy to run Kubernetes locally } %global golicenses LICENSE %global godocs *.md Name: minikube Release: 1.eog%{dist} Summary: A tool that makes it easy to run Kubernetes locally License: Apache-2.0 and BSD-3-Clause and CC-BY-4.0 and MIT and OpenSSL and OFL-1.1 and MPL-2.0 and Intel and ISC and LGPL-3.0-only and BSD-2-Clause URL: %{gourl} Source0: https://%{goipath}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: vendor.tar.gz # Script that creates vendor tarball Source10: create-vendor-tarball.sh BuildRequires: go-rpm-macros BuildRequires: golang >= 1.23.4 ExclusiveArch: %{golang_arches} %description %{common_description} %gopkg %prep %autosetup tar -xzf %{SOURCE1} mkdir -p src/$(dirname %{goipath}) ln -s $PWD src/%{goipath} %build export GO111MODULE=on export GOPROXY=off export GOPATH=%{_builddir}/go export GOFLAGS="-mod=vendor" go build -o %{name} ./cmd/%{name} %install mkdir -p %{buildroot}%{_bindir} install -Dpm 0755 %{name} %{buildroot}%{_bindir}/%{name} %check # Disabled tests. This is still WIP %if %{with check} export GOPATH=$PWD cd src/%{goipath} %gotest ./... %endif %files %{_bindir}/%{name} %doc README.md %license LICENSE %changelog * Wed May 07 2025 Robby Callicotte - 1.35.0-1.eog - Initial build