From ee7b594630672e3f5aebcfb4fbc0fe5f613341cd Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Mon, 9 Feb 2026 18:03:04 -0800 Subject: [PATCH] add: lazygit (#9747) (#9748) * add: lazygit * package lazygit manpage * use upstream description * unify %install * unify name --------- (cherry picked from commit 14c769128a5fd9de15af9975aa03108398a7a057) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/tools/lazygit/anda.hcl | 5 +++ anda/tools/lazygit/lazygit.spec | 67 +++++++++++++++++++++++++++++++++ anda/tools/lazygit/update.rhai | 1 + 3 files changed, 73 insertions(+) create mode 100644 anda/tools/lazygit/anda.hcl create mode 100644 anda/tools/lazygit/lazygit.spec create mode 100644 anda/tools/lazygit/update.rhai diff --git a/anda/tools/lazygit/anda.hcl b/anda/tools/lazygit/anda.hcl new file mode 100644 index 0000000000..6d53fbbc73 --- /dev/null +++ b/anda/tools/lazygit/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "lazygit.spec" + } +} diff --git a/anda/tools/lazygit/lazygit.spec b/anda/tools/lazygit/lazygit.spec new file mode 100644 index 0000000000..946d1020fb --- /dev/null +++ b/anda/tools/lazygit/lazygit.spec @@ -0,0 +1,67 @@ +%global goipath github.com/jesseduffield/lazygit + +Name: lazygit +Version: 0.59.0 +Release: 1%?dist +Summary: Simple terminal UI for git commands +License: MIT +URL: https://github.com/jesseduffield/lazygit +Source0: %{url}/archive/refs/tags/v%{version}.tar.gz +BuildRequires: golang go-rpm-macros go-md2man +Requires: git-core +Packager: Owen Zimmerman + +%description +Simple, pragmatic TUI (Terminal UI) frontend for GIT. Written in Go with the +gocui library. + +From the official GIT repository: + +Rant time: You've heard it before, git is powerful, but what good is that +power when everything is so damn hard to do? Interactive rebasing requires you +to edit a goddamn TODO file in your editor? Are you kidding me? To stage part +of a file you need to use a command line program to step through each hunk and +if a hunk can't be split down any further but contains code you don't want to +stage, you have to edit an arcane patch file by hand? Are you KIDDING me?! +Sometimes you get asked to stash your changes when switching branches only to +realise that after you switch and unstash that there weren't even any +conflicts and it would have been fine to just checkout the branch directly? +YOU HAVE GOT TO BE KIDDING ME! + +If you're a mere mortal like me and you're tired of hearing how powerful git +is when in your daily life it's a powerful pain in your ass, lazygit might be +for you. + +%package doc +Summary: Documentations for %{name} +Requires: %{name} = %{evr} +BuildArch: noarch + +%description doc +%{summary}. + +%prep +%autosetup +%goprep + +%build +export GO111MODULE=on +%gobuild -o %{gobuilddir}/lazygit +go-md2man -in README.md -out lazygit.1 + +%install +install -Dm755 %{gobuilddir}/lazygit %{buildroot}%{_bindir}/lazygit +install -Dpm644 lazygit.1 %{buildroot}/%{_mandir}/man1/lazygit.1 + +%files +%doc README.md +%license LICENSE +%{_bindir}/lazygit +%{_mandir}/man1/lazygit.1.* + +%files doc +%doc VISION.md CONTRIBUTING.md CODE-OF-CONDUCT.md docs/ + +%changelog +* Mon Feb 09 2026 Owen Zimmerman +- Initial commit diff --git a/anda/tools/lazygit/update.rhai b/anda/tools/lazygit/update.rhai new file mode 100644 index 0000000000..de72a07150 --- /dev/null +++ b/anda/tools/lazygit/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("jesseduffield/lazygit"));