%global debug_package %{nil} Name: zigdown Version: main Release: 2%{?dist} Summary: Markdown parser in Zig License: MIT URL: https://github.com/JacobCrabill/zigdown Source0: %{url}/archive/refs/heads/main.zip BuildRequires: gcc BuildRequires: cmake BuildRequires: zig BuildRequires: zig-libs %description Zigdown, inspired by Glow and mdcat, is a tool to parse and render Markdown-like content to the terminal or to HTML. %prep %autosetup -p1 %install zig build -Doptimize=ReleaseFast mkdir -p %{buildroot}%{_bindir} mv ./zig-out/bin/zigdown %{buildroot}%{_bindir}/zigdown mkdir -p %{buildroot}%{_docdir}/zigdown mv README.md %{buildroot}%{_docdir}/zigdown/README.md strip --strip-all %{buildroot}%{_bindir}/* %files %doc README.md %{_bindir}/zigdown