# Same-named CLI exists in Fedora rawhide; -bin reserves the plain name Name: openclaw-bin Version: 2026.10.4 Release: 1%{?dist} Summary: OpenClaw CLI, a personal AI assistant (npm bundle) License: MIT URL: https://github.com/openclaw/openclaw Source0: https://registry.npmjs.org/openclaw/-/openclaw-%{version}.tgz BuildArch: noarch Provides: openclaw = %{version}-%{release} Conflicts: openclaw Requires: nodejs24 %description OpenClaw is a personal AI assistant you run on your own devices: one agent, persistent memory, and the channels you already use. This package ships the official npm bundle with the openclaw CLI. %prep %autosetup -n package %build %install install -d -m755 %{buildroot}%{_prefix}/lib/node_modules/openclaw cp -a . %{buildroot}%{_prefix}/lib/node_modules/openclaw/ install -Dpm755 /dev/null %{buildroot}%{_bindir}/openclaw cat > %{buildroot}%{_bindir}/openclaw <<'EOF' #!/bin/sh exec /usr/bin/node-24 %{_prefix}/lib/node_modules/openclaw/openclaw.mjs "$@" EOF %check %{buildroot}%{_bindir}/openclaw --version %files %license LICENSE %doc README.md %{_bindir}/openclaw %{_prefix}/lib/node_modules/openclaw/ %changelog * Sat Oct 17 2026 Caio Bruno - 2026.10.4-1 - Initial package