# Prism for COPR (Fedora) and OBS (openSUSE), repacked from the signed release archive (pi-fork R10.6, owner's decision # of 2026-11-20): the same tree as the deb and rpm of pi-fork's fork/packaging/nfpm.yaml, nothing rebuilt. publish.sh # fills in 1.0.0+fork.12 (the release's with "+" for "-"), 1.0.0-fork.12 and 12fc5ae237c6e85c9e3c3dd6f182433c65abec122f467a01a503c6f87a90690c (the archive's, from the release's # signed SHA256SUMS). # # The archive ships its own Node and native modules: no debuginfo, stripping, rpath check or build-id links, and no # dependencies computed from the bundled libraries (as nFPM's rpm). Dependencies by soname, so one spec fits both. %global debug_package %{nil} %global __os_install_post %{nil} %global __arch_install_post %{nil} %global _build_id_links none %global release_version 1.0.0-fork.12 # Tells Prism which package manager updates it, so it never updates itself (pi-fork src/fork/self-update.ts). %if 0%{?suse_version} %global manager zypper %else %global manager dnf %endif Name: prism Version: 1.0.0+fork.12 Release: 1%{?dist} Summary: Free and open source coding agent for Linux License: GPL-3.0-or-later URL: https://prism.odelserver.space Source0: https://prism.odelserver.space/releases/%{release_version}/prism-%{release_version}-linux-x64.tar.gz ExclusiveArch: x86_64 AutoReqProv: no Requires: bubblewrap # The window (prism --gui); the terminal works without it. Requires: libwebkit2gtk-4.1.so.0()(64bit) # The agent's own desktop (off by default). Recommends: labwc %description A free and open source coding agent for Linux, for local or remote models. Terminal and native window, sandboxed commands, permissions. %prep echo "12fc5ae237c6e85c9e3c3dd6f182433c65abec122f467a01a503c6f87a90690c %{SOURCE0}" | sha256sum -c - %setup -q -n prism-%{release_version}-linux-x64 %build %install mkdir -p %{buildroot}/opt/prism %{buildroot}%{_bindir} cp -a . %{buildroot}/opt/prism/ printf '%s\n' %{manager} >%{buildroot}/opt/prism/.prism-package ln -s /opt/prism/prism %{buildroot}%{_bindir}/prism %files /opt/prism %{_bindir}/prism