%global distdir https://github.com/OleksandrChekhovskyi/hax Name: hax Version: 0.5.0 Release: 1%{?dist} Summary: A minimalist, terminal-native LLM coding agent License: MIT URL: %{distdir} Source0: %{distdir}/releases/download/v%{version}/hax-%{version}.tar.xz BuildRequires: gcc BuildRequires: jansson-devel BuildRequires: libcurl-devel BuildRequires: meson BuildRequires: ninja-build BuildRequires: pkgconf-pkg-config # The end-to-end scenarios are Python scripts run by meson test. BuildRequires: python3 # hax uses fzf for @file completion when it is present. Suggests: fzf %description hax is a minimalist, terminal-native coding agent written in C. A single native binary with a small dependency set that pairs with LLM providers (OpenAI and compatible, Anthropic and compatible, Codex, OpenRouter, llama.cpp, and custom endpoints) to inspect, edit, and run code in the current directory. It starts an interactive REPL with streaming Markdown rendering, live tool output, file completion, and per-directory session persistence, and a one-shot mode (hax -p) that prints only the final answer, so it is safe to pipe in scripts. %prep %setup -q -n %{name}-%{version} %build # debugoptimized is the upstream default and matches Fedora's -O2 -g, # which keeps the debuginfo package useful. meson setup builddir --buildtype=debugoptimized -Dprefix=%{_prefix} meson compile -C builddir %install meson install -C builddir --destdir=%{buildroot} %files %license LICENSE %doc CHANGELOG.md %doc README.md %doc docs/configuration.md %doc docs/debugging.md %doc docs/philosophy.md %doc docs/providers.md %doc docs/usage.md %{_bindir}/hax %changelog * Sat Sep 05 2026 Tomas Smetana - 0.5.0-1 - New upstream version * Sun Aug 23 2026 Tomas Smetana - 0.4.0-1 - New upstream version: breaks configuration compatibility * Mon Aug 17 2026 Tomas Smetana - 0.3.0-1 - Initial Fedora packaging of hax 0.3.0