# Generated by go2rpm 1.19.0 %bcond check 1 %global builddate %(date -u '+%Y-%m-%dT%H:%M:%SZ') # https://github.com/jesseduffield/lazygit %global goipath github.com/jesseduffield/lazygit Version: 0.66.2 %gometa -L -f Name: lazygit Release: %autorelease Summary: Simple terminal UI for git commands # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND Unlicense URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml # Fix licensing of github.com/kr/logfmt Patch0: https://github.com/jesseduffield/lazygit/pull/6142.patch BuildRequires: go-vendor-tools BuildRequires: git-core Requires: git-core %description Simple terminal UI for git commands. %prep %goprep -p1 tar -xf %{S:1} # Contains information related to development. rm -rf docs/dev %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on # Following .goreleaser.yml here. export GO_LDFLAGS="-X main.version=%version -X main.commit=unspecified -X main.date=%builddate -X main.buildSource=fedora" %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/* %{buildroot}%{_bindir}/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %doc docs README.md %{_bindir}/lazygit %changelog %autochangelog