Name: herdr-app Version: 0.1.16 Release: 1%{?dist} Summary: Desktop app for terminals and coding agents License: Apache-2.0 URL: https://github.com/herdrdev/herdr-app Source0: %{url}/archive/refs/tags/v%{version}.tar.gz Source1: vendor.tar.zst # zig is not in Fedora; the vendored ghostty-sys (terminal core) builds with # the official prebuilt toolchain (one Source per arch, SRPM builder arch is # arbitrary), pinned once here %global zig_version 0.16.0 Source2: https://ziglang.org/download/%{zig_version}/zig-x86_64-linux-%{zig_version}.tar.xz Source3: https://ziglang.org/download/%{zig_version}/zig-aarch64-linux-%{zig_version}.tar.xz # ghostty's build.zig.zon closure, served to the embedded zig build via # --system: zig's own http client fails on COPR builders (vendor-sources.sh) Source4: zig-pkg.tar.zst BuildRequires: cargo-rpm-macros BuildRequires: clang-devel BuildRequires: desktop-file-utils BuildRequires: fontconfig-devel BuildRequires: freetype-devel BuildRequires: libxcb-devel BuildRequires: libxkbcommon-devel BuildRequires: libxkbcommon-x11-devel BuildRequires: libzstd-devel BuildRequires: pkgconf-pkg-config BuildRequires: vulkan-loader-devel BuildRequires: wayland-devel # Bin-only crate: do not install sources into the cargo registry %global cargo_install_lib false # debugsource trips brp-mangle-shebangs on vendored crate inner attrs %global debug_package %{nil} %description Herdr is a desktop app for terminals and coding agents: keep work in spaces, see which agents need you, and leave terminals running when you close the window. Built on GPUI with the Ghostty terminal emulation core. %prep %autosetup -n herdr-app-%{version} -p1 -a 1 %cargo_prep -v vendor-deps cat vendor-deps/git-sources.conf >> .cargo/config.toml %build tar --zstd -xf %{SOURCE4} %ifarch x86_64 tar -xJf %{SOURCE2} zigbin="$PWD/zig-x86_64-linux-%{zig_version}/zig" %else tar -xJf %{SOURCE3} zigbin="$PWD/zig-aarch64-linux-%{zig_version}/zig" %endif # ghostty-sys shells out to `zig build` itself; the shim serves its zon # closure from the prefetched --system store instead of zig's downloader mkdir _zig cat > _zig/zig < %{buildroot}%{_datadir}/applications/herdr-app.desktop <<'EOF' [Desktop Entry] Type=Application Name=Herdr Comment=Terminals and coding agents that keep running Exec=herdr-app Icon=herdr-app Terminal=false Categories=Development; StartupWMClass=herdr-app EOF %check desktop-file-validate %{buildroot}%{_datadir}/applications/herdr-app.desktop %{buildroot}%{_bindir}/herdr-app --version %files %license LICENSE THIRD-PARTY-NOTICES %{_bindir}/herdr-app %{_datadir}/applications/herdr-app.desktop %{_datadir}/icons/hicolor/scalable/apps/herdr-app.svg %changelog * Sun Nov 15 2026 github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> - 0.1.16-1 - Update to 0.1.16 * Tue Nov 10 2026 github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> - 0.1.15-1 - Update to 0.1.15 * Sun Nov 08 2026 github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> - 0.1.14-1 - Update to 0.1.14 * Fri Nov 06 2026 Caio Bruno - 0.1.13-1 - Initial package