%global upstream_version 0.0.43-nightly.20260916.1811 %global cmd_pr 10861 # The AppImage is a prebuilt opaque ELF bundle without a build ID. %global _build_id_links none %global debug_package %{nil} %global __brp_strip %{nil} %global __brp_strip_comment_note %{nil} %global __brp_strip_lto %{nil} Name: t3code-cmd-nightly Version: %(echo %{upstream_version} | sed 's/-.*//') Release: 1.cmd.pr%{cmd_pr}.%(echo %{upstream_version} | sed 's/.*-nightly\.//')%{?dist} Summary: Minimal GUI for coding agents (nightly build with the Command Code provider) License: MIT URL: https://github.com/pingdotgg/t3code Source0: T3-Code-%{upstream_version}-x86_64.AppImage Source1: t3code Source2: t3code.desktop Source3: LICENSE Source4: upstream-pr-%{cmd_pr}.txt ExclusiveArch: x86_64 # Installs over the plain nightly package: same paths, newer release, so dnf # swaps t3code-nightly for this one instead of erroring on file conflicts. Both # packages track the same upstream nightly, and this one's release always sorts # above the plain nightly's `0.nightly.*`, so `<=` covers the concurrent build. Provides: t3code = %{version}-%{release} Obsoletes: t3code-nightly <= %{version}-%{release} %description T3 Code is a minimal GUI for coding agents. This unofficial package is built from upstream nightly sources with upstream pull request %{cmd_pr} layered on top, which adds Command Code as a provider driver. It is otherwise the same x86_64 nightly desktop build, so it replaces t3code-nightly and provides the same `t3code` entry point. %prep %autosetup -c -T %install install -Dpm0755 %{SOURCE0} %{buildroot}%{_libexecdir}/t3code/t3code.AppImage install -Dpm0755 %{SOURCE1} %{buildroot}%{_bindir}/t3code install -Dpm0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/t3code.desktop install -Dpm0644 %{SOURCE3} %{buildroot}%{_licensedir}/%{name}/LICENSE install -Dpm0644 %{SOURCE4} %{buildroot}%{_docdir}/%{name}/upstream-pr-%{cmd_pr}.txt # Install application icons from the AppImage (FUSE-free extract). extractdir="%{_builddir}/%{name}-icons" mkdir -p "$extractdir" ( cd "$extractdir" %{buildroot}%{_libexecdir}/t3code/t3code.AppImage --appimage-extract \ 'usr/share/icons/hicolor/*/apps/t3code.png' ) for icon in "$extractdir"/squashfs-root/usr/share/icons/hicolor/*/apps/t3code.png; do size="$(basename "$(dirname "$(dirname "$icon")")")" install -Dpm0644 "$icon" \ "%{buildroot}%{_datadir}/icons/hicolor/${size}/apps/t3code.png" done %files %license %{_licensedir}/%{name}/LICENSE %doc %{_docdir}/%{name}/upstream-pr-%{cmd_pr}.txt %{_bindir}/t3code %{_libexecdir}/t3code/t3code.AppImage %{_datadir}/applications/t3code.desktop %{_datadir}/icons/hicolor/*/apps/t3code.png %changelog * Wed Sep 16 2026 T3 Code COPR Maintainers - %{version}-%{release} - Package upstream nightly %{upstream_version} with pull request %{cmd_pr}