forked from pool/lazygit
- Update to version 0.41.0:
- Packaging improvments:
* Update to BuildRequires: golang(API) >= 1.21 matching go.mod
* Drop autosetup -n arg only needed when archive and package
name differ
* Build PIE with pattern that may become recommended procedure:
%%ifnarch ppc64 GOFLAGS="-buildmode=pie" %%endif go build
A go toolchain buildmode default config would be preferable
but none exist at this time.
OBS-URL: https://build.opensuse.org/request/show/1161039
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/lazygit?expand=0&rev=9
58 lines
1.5 KiB
RPMSpec
58 lines
1.5 KiB
RPMSpec
#
|
|
# spec file for package lazygit
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: lazygit
|
|
Version: 0.41.0
|
|
Release: 0
|
|
Summary: Simple terminal UI for git commands
|
|
License: MIT
|
|
Group: Development/Tools/Version Control
|
|
URL: https://github.com/jesseduffield/lazygit
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Source1: vendor.tar.gz
|
|
BuildRequires: golang(API) >= 1.21
|
|
Requires: git-core
|
|
|
|
%description
|
|
lazygit is a terminal UI for git commmands that helps make common and complex
|
|
git operations easy and accessible without requiring expertise with the git
|
|
command line.
|
|
|
|
%prep
|
|
%autosetup -a 1
|
|
|
|
%build
|
|
%ifnarch ppc64
|
|
export GOFLAGS="-buildmode=pie"
|
|
%endif
|
|
go build
|
|
|
|
%install
|
|
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
|
|
|
|
%check
|
|
# execute the binary as a basic check
|
|
./%{name} --help
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{_bindir}/%{name}
|
|
|
|
%changelog
|