Name: fish Version: 4.9.2 Release: 1%{?dist} Summary: Friendly interactive shell License: Apache-2.0 OR MIT and GPL-2.0-only AND LGPL-2.0-or-later AND MIT AND PSF-2.0 and Unlicense OR MIT and WTFPL and Zlib URL: https://fishshell.com Source0: https://github.com/fish-shell/fish-shell/releases/download/%{version}/%{name}-%{version}.tar.xz Source1: https://github.com/fish-shell/fish-shell/releases/download/%{version}/%{name}-%{version}.tar.xz.asc Source2: https://github.com/krobelus.gpg # Primary key of Johannes Altmanninger, who signs the fish releases. Pinned so a # swapped key served from Source2 cannot pass the signature check below. %global signing_key_fpr D7E7B7E37EF129243377FC0A634329A4CF8E23E8 BuildRequires: cargo BuildRequires: cmake BuildRequires: gcc BuildRequires: gettext BuildRequires: gnupg2 BuildRequires: ninja-build BuildRequires: ncurses-devel BuildRequires: pcre2-devel BuildRequires: python3-devel BuildRequires: rust >= 1.85 BuildRequires: glibc-langpack-en BuildRequires: /usr/bin/sphinx-build Requires: ncurses-term Recommends: groff-base Recommends: man-db Recommends: man-pages Provides: bundled(js-alpine) %description fish is a fully-equipped command line shell that is smart and user-friendly. It supports syntax highlighting, autosuggestions, and tab completions with little or no configuration. %prep gpg --show-keys --with-colons '%{SOURCE2}' | awk -F: '$1 == "fpr" { print $10 }' \ | grep -qx '%{signing_key_fpr}' %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup %build export CARGO_HOME=$PWD/.cargo-home %cmake -GNinja \ -DCMAKE_BUILD_TYPE=Release \ -DWITH_DOCS=ON \ -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} \ -Dextra_completionsdir=%{_datadir}/%{name}/vendor_completions.d \ -Dextra_functionsdir=%{_datadir}/%{name}/vendor_functions.d \ -Dextra_confdir=%{_datadir}/%{name}/vendor_conf.d %cmake_build sed -i 's^/usr/local/^/usr/^g' %{_vpath_builddir}/*.pc %install %cmake_install %py_byte_compile %{python3} %{buildroot}%{_datadir}/%{name}/tools/ cp -a README.rst CONTRIBUTING.rst %{buildroot}%{_pkgdocdir} %check %{buildroot}%{_bindir}/fish --version | grep -Fqx 'fish, version %{version}' %post if [ "$1" = 1 ]; then if [ ! -f %{_sysconfdir}/shells ]; then echo "%{_bindir}/fish" > %{_sysconfdir}/shells echo "/bin/fish" >> %{_sysconfdir}/shells else grep -q "^%{_bindir}/fish$" %{_sysconfdir}/shells || echo "%{_bindir}/fish" >> %{_sysconfdir}/shells grep -q "^/bin/fish$" %{_sysconfdir}/shells || echo "/bin/fish" >> %{_sysconfdir}/shells fi fi %postun if [ "$1" = 0 ] && [ -f %{_sysconfdir}/shells ]; then sed -i '\!^%{_bindir}/fish$!d' %{_sysconfdir}/shells sed -i '\!^/bin/fish$!d' %{_sysconfdir}/shells fi %files %license COPYING %{_pkgdocdir} %{_mandir}/man1/fish*.1* %{_bindir}/fish* %config(noreplace) %{_sysconfdir}/fish/ %{_datadir}/fish/ %{_datadir}/pkgconfig/fish.pc %changelog * Mon Sep 07 2026 sachesi - 4.9.2-1 - Package fish 4.9.2 for Copr.