k3d/k3d.spec
2024-07-15 10:48:55 +00:00

39 lines
762 B
RPMSpec

%define debug %nil
%define debug_package %nil
Name: k3d
Version: 5.7.2
Release: 1
Summary: Little helper to run CNCF's k3s in Docker
URL: https://k3d.io
Source0: https://github.com/k3d-io/k3d/archive/v%{version}/%{name}-%{version}.tar.gz
License: MIT
Group: Development/Other
BuildRequires: go
BuildRequires: git-core
BuildRequires: upx
BuildRequires: curl
%description
k3d creates containerized k3s clusters. This means, that you
can spin up a multi-node k3s cluster on a single machine using
docker.
%prep
%setup -q
%build
export GOPROXY=https://proxy.golang.org/cached-only
%make build GIT_TAG=%{version}
upx bin/%{name}
%install
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
%files
%doc README.md LICENSE docs
%{_bindir}/%{name}