%global debug_package %{nil} Name: flow Version: master Release: 7%{?dist} Summary: Flow Control: a programmer's text editor License: MIT URL: https://github.com/neurocyte/flow Source0: %{url}/archive/refs/heads/master.zip BuildRequires: gcc BuildRequires: cmake BuildRequires: zig BuildRequires: zig-libs %description A modern terminal with 24bit color and kitty keyboard protocol support. Kitty, Foot and Ghostty are the only recommended terminals at this time. Most other terminals will work, but with reduced functionality. %prep %autosetup -p1 %install zig build -Doptimize=ReleaseFast mkdir -p %{buildroot}%{_bindir} mv ./zig-out/bin/flow %{buildroot}%{_bindir}/flow mkdir -p %{buildroot}%{_datadir}/licenses/flow mv ./LICENSE %{buildroot}%{_datadir}/licenses/flow/LICENSE mkdir -p %{buildroot}%{_docdir}/flow mv README.md %{buildroot}%{_docdir}/flow/README.md strip --strip-all %{buildroot}%{_bindir}/* %files %license LICENSE %doc README.md %{_bindir}/flow