# fzf-style fully-bundled (vendored) Go build for offline koji/Copr on AL2023. # Vendor blob (Source1) generated with go-vendor-tools (go_vendor_archive). %bcond_with check # https://github.com/jesseduffield/lazygit %global goipath github.com/jesseduffield/lazygit Version: 0.62.2 %gometa -L -f Name: lazygit Release: 1%{?dist} Summary: Simple terminal UI for git commands License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND Unlicense URL: %{gourl} Source0: %{gosource} Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-rpm-macros BuildRequires: go-vendor-tools BuildRequires: golang %description A simple terminal UI for git commands, written in Go. All Go module dependencies are bundled (vendored) in the source RPM for fully offline builds. %prep %goprep -p1 # Unpack the vendored dependencies (go.mod, go.sum, vendor/) over the source tree tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/lazygit %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/lazygit %{buildroot}%{_bindir}/lazygit %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %doc README.md %{_bindir}/lazygit %changelog * Fri Jul 03 2026 yxwang5db2 - 0.62.2-1 - Initial package for AL-Stream-2023 with fully bundled (vendored) Go deps