%define debug_package %nil
# Generated by go2rpm 1.9.0

# https://github.com/charmbracelet/glow
%global goipath         github.com/charmbracelet/glow
Version:                2.1.2

%gometa -f


%global common_description %{expand:
Render markdown on the CLI, with pizzazz! 💅🏻.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        1%{?dist}
Summary:        Render markdown on the CLI, with pizzazz! 💅🏻

License:        MIT
URL:            %{gourl}
Source:         %{gosource}
BuildRequires:  git-core

%description %{common_description}

%gopkg

%prep
%goprep
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}/v2

%install
%gopkginstall
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

%files
%license LICENSE
%doc README.md
%{_bindir}/*

%gopkgfiles

%changelog
%autochangelog
