# original file forked from gitlab.com/alternateved/specs # I did not personally create this file, I just updated the tag to match the tip %define build_timestamp %(date +"%Y%m%d") %global forgeurl https://github.com/ghostty-org/ghostty %global tag tip %forgemeta Name: ghostty Version: 1.2.0 Release: tip.%{build_timestamp} Summary: Fast, feature-rich, and cross-platform terminal emulator that uses platform-native UI and GPU acceleration License: MIT URL: %{forgeurl} Source: %{forgesource} BuildRequires: coreutils BuildRequires: blueprint-compiler BuildRequires: fontconfig-devel BuildRequires: freetype-devel BuildRequires: glib2-devel BuildRequires: glslang-devel BuildRequires: gtk4-devel BuildRequires: gtk4-layer-shell-devel BuildRequires: harfbuzz-devel BuildRequires: libadwaita-devel BuildRequires: libpng-devel BuildRequires: libxml2-devel BuildRequires: oniguruma-devel BuildRequires: pandoc-cli BuildRequires: pixman-devel BuildRequires: pkg-config BuildRequires: simdutf-devel BuildRequires: wayland-protocols-devel # currently blocked, tip requires 0.15.1, but doesn't exist on repos as of committing # https://ghostty.org/docs/install/build BuildRequires: zig >= 0.15.1 BuildRequires: zlib-ng-devel Requires: fontconfig Requires: freetype Requires: glib2 Requires: gtk4 Requires: harfbuzz Requires: libadwaita Requires: libpng Requires: oniguruma Requires: pixman Requires: zlib-ng Requires: ncurses-term %description %{summary}. %prep %forgeautosetup %build export ZIG_GLOBAL_CACHE_DIR="$(mktemp --directory)" ./nix/build-support/fetch-zig-cache.sh DESTDIR=%{buildroot} zig build \ --summary all \ --prefix "%{_prefix}" \ --system "${ZIG_GLOBAL_CACHE_DIR}/p" \ -Dversion-string=%{version}-%{release} \ -Doptimize=ReleaseFast \ -Dcpu=baseline \ -Dpie=true \ -Demit-docs find "%{buildroot}/usr/share/locale" -type f -name "com.mitchellh.ghostty.mo" | sed "s|%{buildroot}||" > message_catalogs.txt # Remove terminfo files that conflict with ncurses-term rm -f %{buildroot}%{_datadir}/terminfo/g/ghostty %files -f message_catalogs.txt %license LICENSE %{_mandir}/man5/ghostty.5 %{_mandir}/man1/ghostty.1 %{_datadir}/kio/servicemenus/com.mitchellh.ghostty.desktop %{_datadir}/nvim/site/compiler/ghostty.vim %{_datadir}/nvim/site/syntax/ghostty.vim %{_datadir}/nvim/site/ftplugin/ghostty.vim %{_datadir}/nvim/site/ftdetect/ghostty.vim %{_datadir}/fish/vendor_completions.d/ghostty.fish %{_datadir}/nautilus-python/extensions/ghostty.py %{_datadir}/bash-completion/completions/ghostty.bash %{_datadir}/zsh/site-functions/_ghostty %{_datadir}/applications/com.mitchellh.ghostty.desktop %{_datadir}/metainfo/com.mitchellh.ghostty.metainfo.xml %{_datadir}/icons/hicolor/128x128@2/apps/com.mitchellh.ghostty.png %{_datadir}/icons/hicolor/16x16@2/apps/com.mitchellh.ghostty.png %{_datadir}/icons/hicolor/16x16/apps/com.mitchellh.ghostty.png %{_datadir}/icons/hicolor/256x256@2/apps/com.mitchellh.ghostty.png %{_datadir}/icons/hicolor/1024x1024/apps/com.mitchellh.ghostty.png %{_datadir}/icons/hicolor/256x256/apps/com.mitchellh.ghostty.png %{_datadir}/icons/hicolor/32x32@2/apps/com.mitchellh.ghostty.png %{_datadir}/icons/hicolor/128x128/apps/com.mitchellh.ghostty.png %{_datadir}/icons/hicolor/512x512/apps/com.mitchellh.ghostty.png %{_datadir}/icons/hicolor/32x32/apps/com.mitchellh.ghostty.png %{_datadir}/dbus-1/services/com.mitchellh.ghostty.service %{_datadir}/pkgconfig/libghostty-vt.pc %{_datadir}/vim/vimfiles/compiler/ghostty.vim %{_datadir}/vim/vimfiles/syntax/ghostty.vim %{_datadir}/vim/vimfiles/ftplugin/ghostty.vim %{_datadir}/vim/vimfiles/ftdetect/ghostty.vim %{_datadir}/terminfo/x/xterm-ghostty %{_datadir}/bat/syntaxes/ghostty.sublime-syntax %{_datadir}/ghostty/doc/ghostty.5.html %{_datadir}/ghostty/doc/ghostty.5.md %{_datadir}/ghostty/doc/ghostty.1.html %{_datadir}/ghostty/doc/ghostty.1.md %{_datadir}/ghostty/themes %{_datadir}/ghostty/shell-integration/fish/vendor_conf.d/ghostty-shell-integration.fish %{_datadir}/ghostty/shell-integration/zsh/ghostty-integration %{_datadir}/ghostty/shell-integration/zsh/.zshenv %{_datadir}/ghostty/shell-integration/elvish/lib/ghostty-integration.elv %{_datadir}/ghostty/shell-integration/bash/ghostty.bash %{_datadir}/ghostty/shell-integration/bash/bash-preexec.sh %{_prefix}/lib/systemd/user/app-com.mitchellh.ghostty.service %{_prefix}/lib/libghostty-vt.so.0.1.0 %{_prefix}/lib/libghostty-vt.so %{_prefix}/lib/libghostty-vt.so.0 %{_includedir}/ghostty/vt.h %{_includedir}/ghostty/vt/allocator.h %{_includedir}/ghostty/vt/result.h %{_includedir}/ghostty/vt/color.h %{_includedir}/ghostty/vt/wasm.h %{_includedir}/ghostty/vt/osc.h %{_includedir}/ghostty/vt/paste.h %{_includedir}/ghostty/vt/key.h %{_includedir}/ghostty/vt/key/event.h %{_includedir}/ghostty/vt/key/encoder.h %{_includedir}/ghostty/vt/sgr.h %{_bindir}/ghostty %changelog %autochangelog