# RPM spec for Fast Syntax Highlighting (F-Sy-H) - Zsh plugin # https://github.com/zdharma-continuum/fast-syntax-highlighting Name: zsh-fast-syntax-highlighting Version: 1.56 Release: 1%{?dist} Summary: Feature-rich syntax highlighting for Zsh License: BSD-3-Clause URL: https://github.com/zdharma-continuum/fast-syntax-highlighting Source0: https://github.com/zdharma-continuum/fast-syntax-highlighting/archive/refs/tags/v%{version}.tar.gz BuildArch: noarch BuildRequires: zsh %description Fast Syntax Highlighting (F-Sy-H) provides feature-rich syntax highlighting for the Zsh shell. It supports themes, chroma functions for command-specific highlighting (e.g. git), and is designed for performance. Add to your ~/.zshrc to enable: source %{_datadir}/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh %prep %autosetup -n fast-syntax-highlighting-%{version} -p1 %build # No compilation; pure Zsh script plugin : %install install -dm755 %{buildroot}%{_datadir}/zsh/plugins/fast-syntax-highlighting # Main plugin scripts and data install -pm644 fast-syntax-highlighting.plugin.zsh fast-highlight fast-string-highlight \ fast-theme _fast-theme \ %{buildroot}%{_datadir}/zsh/plugins/fast-syntax-highlighting/ # Directories required at runtime cp -a share themes %{buildroot}%{_datadir}/zsh/plugins/fast-syntax-highlighting/ # Documentation install -dm755 %{buildroot}%{_docdir}/%{name}-%{version} install -pm644 README.md CHANGELOG.md LICENSE \ %{buildroot}%{_docdir}/%{name}-%{version}/ [ -f THEME_GUIDE.md ] && install -pm644 THEME_GUIDE.md %{buildroot}%{_docdir}/%{name}-%{version}/ || true [ -f CHROMA_GUIDE.adoc ] && install -pm644 CHROMA_GUIDE.adoc %{buildroot}%{_docdir}/%{name}-%{version}/ || true %files %{_datadir}/zsh/plugins/fast-syntax-highlighting/ %doc %{_docdir}/%{name}-%{version} %changelog * Sat Feb 07 2026 - 1.56-1 - Initial package for fast-syntax-highlighting v1.56