mirror of
https://abf.rosa.ru/djam/lima.git
synced 2025-02-23 23:02:48 +00:00
47 lines
919 B
RPMSpec
47 lines
919 B
RPMSpec
%define debug %nil
|
|
%define debug_package %nil
|
|
|
|
Name: lima
|
|
Version: 0.21.0
|
|
Release: 1
|
|
Summary: Linux virtual machines
|
|
URL: https://lima-vm.io
|
|
Source0: https://github.com/lima-vm/lima/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
License: ASL 2.0
|
|
Group: Development/Other
|
|
BuildRequires: go
|
|
BuildRequires: git-core
|
|
BuildRequires: upx
|
|
Provides: %{name}ctl
|
|
|
|
%description
|
|
Lima launches Linux virtual machines with automatic file
|
|
sharing and port forwarding (similar to WSL2).
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
# fix version
|
|
sed -i '/^VERSION=/s/=.*/=%{version}/' Makefile
|
|
|
|
%build
|
|
export GOPROXY=direct
|
|
%make
|
|
|
|
upx _output/bin/%{name}ctl
|
|
|
|
%install
|
|
%makeinstall PREFIX=%{_prefix} DEST=%{buildroot}%{_prefix}
|
|
|
|
%files
|
|
%doc README.md LICENSE
|
|
%{_bindir}/%{name}
|
|
%{_bindir}/apptainer.lima
|
|
%{_bindir}/docker.lima
|
|
%{_bindir}/kubectl.lima
|
|
%{_bindir}/limactl
|
|
%{_bindir}/nerdctl.lima
|
|
%{_bindir}/podman.lima
|
|
%{_datadir}/%{name}/*
|
|
%{_mandir}/man1/*
|
|
|