(cherry picked from commit 886e5f664a)

Co-authored-by: sadlerm4 <sad_lerm@hotmail.com>
This commit is contained in:
Raboneko
2025-02-08 23:24:21 -08:00
committed by GitHub
parent 522dfc74da
commit 2fdc6103dc
@@ -1,4 +1,4 @@
%define debug_package %nil
%define debug_package %nil
# Generated by go2rpm 1.9.0
# https://github.com/charmbracelet/glow
@@ -29,11 +29,10 @@ BuildRequires: git-core
%prep
%goprep
%autopatch -p1
go mod download
%build
go build -ldflags "-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -s -w" -buildmode=pie -o %{gobuilddir}/bin/glow %{goipath}
go build -ldflags "-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -s -w" -buildmode=pie -o %{gobuilddir}/bin/glow %{goipath}/v2
%install
%gopkginstall