Imported from SRPM

This commit is contained in:
Sergey Zhemoytel 2024-01-20 18:53:54 +03:00
commit 0ff56b8190
2 changed files with 46 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
g-0.25.2.tar.gz: ba40b85fc27dbab90e5bcb27926ff3e04bee0fdb

44
g.spec Normal file
View file

@ -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}