# Generated by go2rpm 1.19.0 %bcond check 1 # 1. Conflicts with python3-jsonschema # 2. When invoked the tools display errors like # /usr/bin/components: line 1: syntax error near unexpected token `newline' # /usr/bin/components: line 1: `!' # so they're probably not useful outside of the repo root. %bcond devtools 0 # 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 #--- FAIL: TestIntegration (30.11s) # go_test.go:71: # Error Trace: /builddir/build/BUILD/lazygit-0.66.2-build/lazygit-0.66.2/pkg/integration/clients/go_test.go:71 # Error: Received unexpected error: # exec: "git": executable file not found in $PATH # Test: TestIntegration BuildRequires: git-core Requires: git-core %description Simple terminal UI for git commands. %if %{with devtools} %package devel Requires: %{name}%{?_isa} = %{version}-%{release} Summary: Development files for %{name} %description devel %{_description} %endif %prep %goprep -p1 tar -xf %{S:1} # With intent of moving to the devel package. mkdir -p dev mv docs/dev dev/docs %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on export GO_LDFLAGS="-X main.version=%version" %if %{with devtools} for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %endif %gobuild -o %{gobuilddir}/bin/lazygit %{goipath} %if %{with devtools} for cmd in pkg/cheatsheet pkg/integration/clients/injector pkg/integration/components pkg/jsonschema; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %endif %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 %if %{with devtools} %files devel %doc dev/docs CONTRIBUTING.md VISION.md %{_bindir}/author_colors_repo %{_bindir}/cheatsheet %{_bindir}/components %{_bindir}/i18n %{_bindir}/injector %{_bindir}/integration_test %{_bindir}/jsonschema_lazygit %endif %changelog %autochangelog