commit 0ff56b8190319aa67c7850069ffc2dcf347d0231 Author: Sergey Zhemoytel Date: Sat Jan 20 18:53:54 2024 +0300 Imported from SRPM diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..1d4dd15 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + g-0.25.2.tar.gz: ba40b85fc27dbab90e5bcb27926ff3e04bee0fdb diff --git a/g.spec b/g.spec new file mode 100644 index 0000000..fd5d629 --- /dev/null +++ b/g.spec @@ -0,0 +1,44 @@ +%define debug %nil +%define debug_package %nil + +Name: g +Version: 0.25.2 +Release: 1 +Summary: A powerful ls +URL: https://g.equationzhao.space +Source0: https://github.com/Equationzhao/g/archive/v%{version}/%{name}-%{version}.tar.gz +License: MIT +Group: Development/Other +BuildRequires: go +BuildRequires: git-core +BuildRequires: upx + +%description +g is a ls alternative with features: + +- display items with type-specific icons and colors that are +easy to be customized +- display in various layouts ( grid/across/byline/zero/comma +/table/html/json/markdown/tree ) +- user-friendly options with many aliases +- check file git-status when listing entries +- highly customizable sort option +- cross-platform ( Linux/Windows/MacOS ) +- option to fuzzy match the path like zoxide with fzf algorithm + +%prep +%setup -q + +%build +export GOPROXY=direct +go build -ldflags="-s -w" -o bin/%{name} . +upx bin/%{name} + +%install +install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name} + +%files +%doc LICENSE *.md +%{_bindir}/%{name} + +