%global goipath github.com/atani/glowm %global commit 0c2404be825b8898999864e53fd6864f05a8f777 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: glowm Version: 0.3.0 Release: 1%{?dist} Summary: Markdown CLI with Mermaid diagram rendering %global debug_package %{nil} License: MIT URL: https://%{goipath} Source0: %{name}-%{version}.tar.gz BuildRequires: golang >= 1.22 BuildRequires: git-core %description A Glow-like Markdown CLI with Mermaid rendering for iTerm2, Kitty, and Ghostty terminals, with PDF output support. Renders Markdown to ANSI-formatted text with inline Mermaid diagram images in compatible terminals. %prep %setup -q -n %{name}-%{version} %build export GOTOOLCHAIN=auto export CGO_ENABLED=0 export GOFLAGS="-mod=vendor" go build \ -ldflags "-s -w -X main.version=%{version} -X main.commit=%{shortcommit} -X main.date=$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)" \ -o %{name} ./cmd/%{name} %install install -Dpm 0755 %{name} %{buildroot}%{_bindir}/%{name} %files %license third_party/mermaid/LICENSE %doc README.md CHANGELOG.md %{_bindir}/%{name} %changelog * Sun May 03 2026 Greg Procunier - 0.3.0-1 - Initial package