mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-03 02:12:18 +00:00
55 lines
1.6 KiB
RPMSpec
55 lines
1.6 KiB
RPMSpec
# Generated by go2rpm 1.15.0
|
|
|
|
# https://github.com/jesseduffield/lazygit
|
|
%global goipath github.com/jesseduffield/lazygit
|
|
Version: 0.49.0
|
|
|
|
%gometa -f
|
|
|
|
%global common_description %{expand:
|
|
Simple terminal UI for git commands.}
|
|
|
|
%global golicenses LICENSE
|
|
%global godocs docs README.md VISION.md
|
|
|
|
Name: golang-github-jesseduffield-lazygit
|
|
Release: 1%?dist
|
|
Summary: Simple terminal UI for git commands
|
|
|
|
License: MIT
|
|
URL: %{gourl}
|
|
Source: %{gosource}
|
|
Packager: sadlerm <lerm@chromebooks.lol>
|
|
|
|
BuildRequires: anda-srpm-macros
|
|
|
|
Provides: lazygit = %{version}-%{release}
|
|
|
|
%description %{common_description}
|
|
|
|
%gopkg
|
|
|
|
%prep
|
|
%goprep
|
|
%go_prep_online
|
|
|
|
%build
|
|
go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${GO_BUILDTAGS-${BUILDTAGS-}}" -a -x \
|
|
-ldflags "-X main.version=%{version} \
|
|
-B 0x$(echo "%{name}-%{version}-%{release}-${SOURCE_DATE_EPOCH:-}" | sha1sum | cut -d ' ' -f1) \
|
|
-compressdwarf=false -linkmode=external \
|
|
-extldflags '-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now \
|
|
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 \
|
|
-Wl,--build-id=sha1'" \
|
|
-o %{gobuilddir}/bin/lazygit %{goipath}
|
|
|
|
%install
|
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
|
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc docs README.md VISION.md
|
|
%{_bindir}/lazygit
|
|
|