mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-03 10:22:19 +00:00
b39a37baf8
(cherry picked from commit df802b1aa9)
# Conflicts:
# anda/devs/ghostty/nightly/ghostty-nightly.spec
Co-authored-by: Gil <rockgrub@protonmail.com>
142 lines
4.1 KiB
RPMSpec
142 lines
4.1 KiB
RPMSpec
Name: ghostty
|
|
Version: 1.0.1
|
|
Release: 2%{?dist}
|
|
Summary: A fast, native terminal emulator written in Zig.
|
|
License: MIT
|
|
URL: https://ghostty.org/
|
|
Source0: https://release.files.ghostty.org/%{version}/ghostty-source.tar.gz
|
|
Patch0: no-strip.diff
|
|
BuildRequires: gtk4-devel
|
|
BuildRequires: libadwaita-devel
|
|
BuildRequires: ncurses
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: pandoc-cli
|
|
BuildRequires: zig
|
|
Requires: %{name}-terminfo = %{version}-%{release}
|
|
Requires: %{name}-shell-integration = %{version}-%{release}
|
|
Requires: fontconfig
|
|
Requires: freetype
|
|
Requires: glib2
|
|
Requires: gtk4
|
|
Requires: harfbuzz
|
|
Requires: libpng
|
|
Requires: oniguruma
|
|
Requires: pixman
|
|
Requires: zlib-ng
|
|
Suggests: libadwaita
|
|
Conflicts: ghostty-nightly
|
|
Packager: ShinyGil <rockgrub@protonmail.com>
|
|
|
|
%description
|
|
👻 Ghostty is a fast, feature-rich, and cross-platform terminal emulator that uses platform-native UI and GPU acceleration.
|
|
|
|
%package bash-completion
|
|
Summary: Ghostty Bash completion
|
|
Requires: bash-completion
|
|
Supplements: (%{name} and bash-completion)
|
|
|
|
%description bash-completion
|
|
%summary.
|
|
|
|
%package fish-completion
|
|
Summary: Ghostty Fish completion
|
|
Requires: fish
|
|
Supplements: (%{name} and fish)
|
|
|
|
%description fish-completion
|
|
%summary.
|
|
|
|
%package zsh-completion
|
|
Summary: Ghostty Zsh completion
|
|
Requires: zsh
|
|
Supplements: (%{name} and zsh)
|
|
|
|
%description zsh-completion
|
|
%summary.
|
|
|
|
%package shell-integration
|
|
Summary: Ghostty shell integration
|
|
Supplements: %{name}
|
|
|
|
%description shell-integration
|
|
%summary.
|
|
|
|
%package terminfo
|
|
Summary: Ghostty terminfo
|
|
Supplements: %{name}
|
|
|
|
%description terminfo
|
|
%summary.
|
|
|
|
%prep
|
|
%autosetup -n ghostty-source -p1
|
|
|
|
%build
|
|
|
|
%install
|
|
zig build \
|
|
--summary all \
|
|
-Doptimize=ReleaseFast --release=fast \
|
|
--prefix %{buildroot}%{_prefix} --verbose \
|
|
-Dcpu=baseline \
|
|
-Dpie=true \
|
|
-Demit-docs
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSE
|
|
%_bindir/ghostty
|
|
%_datadir/applications/com.mitchellh.ghostty.desktop
|
|
%_datadir/bat/syntaxes/ghostty.sublime-syntax
|
|
%_datadir/ghostty/
|
|
%_datadir/kio/servicemenus/com.mitchellh.ghostty.desktop
|
|
%_datadir/nvim/site/ftdetect/ghostty.vim
|
|
%_datadir/nvim/site/ftplugin/ghostty.vim
|
|
%_datadir/nvim/site/syntax/ghostty.vim
|
|
%_datadir/vim/vimfiles/ftdetect/ghostty.vim
|
|
%_datadir/vim/vimfiles/ftplugin/ghostty.vim
|
|
%_datadir/vim/vimfiles/syntax/ghostty.vim
|
|
%_iconsdir/hicolor/16x16/apps/com.mitchellh.ghostty.png
|
|
%_iconsdir/hicolor/16x16@2/apps/com.mitchellh.ghostty.png
|
|
%_iconsdir/hicolor/32x32/apps/com.mitchellh.ghostty.png
|
|
%_iconsdir/hicolor/32x32@2/apps/com.mitchellh.ghostty.png
|
|
%_iconsdir/hicolor/128x128/apps/com.mitchellh.ghostty.png
|
|
%_iconsdir/hicolor/128x128@2/apps/com.mitchellh.ghostty.png
|
|
%_iconsdir/hicolor/256x256/apps/com.mitchellh.ghostty.png
|
|
%_iconsdir/hicolor/256x256@2/apps/com.mitchellh.ghostty.png
|
|
%_iconsdir/hicolor/512x512/apps/com.mitchellh.ghostty.png
|
|
%_iconsdir/hicolor/1024x1024/apps/com.mitchellh.ghostty.png
|
|
%_mandir/man1/ghostty.1.gz
|
|
%_mandir/man5/ghostty.5.gz
|
|
|
|
%files bash-completion
|
|
%bash_completions_dir/ghostty.bash
|
|
|
|
%files fish-completion
|
|
%fish_completions_dir/ghostty.fish
|
|
|
|
%files zsh-completion
|
|
%zsh_completions_dir/_ghostty
|
|
|
|
%files shell-integration
|
|
%_datadir/ghostty/shell-integration/bash/bash-preexec.sh
|
|
%_datadir/ghostty/shell-integration/bash/ghostty.bash
|
|
%_datadir/ghostty/shell-integration/elvish/lib/ghostty-integration.elv
|
|
%_datadir/ghostty/shell-integration/fish/vendor_conf.d/ghostty-shell-integration.fish
|
|
%_datadir/ghostty/shell-integration/zsh/.zshenv
|
|
%_datadir/ghostty/shell-integration/zsh/ghostty-integration
|
|
|
|
%files terminfo
|
|
%_datadir/terminfo/ghostty.termcap
|
|
%_datadir/terminfo/ghostty.terminfo
|
|
%_datadir/terminfo/g/ghostty
|
|
%_datadir/terminfo/x/xterm-ghostty
|
|
|
|
%changelog
|
|
* Thu Dec 26 2024 ShinyGil <rockgrub@protonmail.com>
|
|
- Initial package
|
|
* Tue Dec 31 2024 ShinyGil <rockgrub@protonmail.com>
|
|
- Update to 1.0.1
|
|
* High CVE-2003-0063: Allows execution of arbitrary commands
|
|
* Medium CVE-2003-0070: Allows execution of arbitrary commands
|