From 73b42ebf699c25bba31bf5ab98753bb6253f3046 Mon Sep 17 00:00:00 2001 From: Joel Capitao Date: Nov 06 2024 16:18:52 +0000 Subject: Import fish-3.7.1-1.el10s in CloudSIG Epoxy --- diff --git a/.fish.metadata b/.fish.metadata new file mode 100644 index 0000000..3df49ba --- /dev/null +++ b/.fish.metadata @@ -0,0 +1,2 @@ +d711f20b53693b4f0946489b1b0abcbccc8888d8 SOURCES/fish-3.7.1.tar.xz +3efcd2f8ebca79e34b663edcd319445812c49e9c SOURCES/gpgkey-003837986104878835FA516D7A67D962D88A709A.gpg diff --git a/SOURCES/fish-3.7.1.tar.xz.asc b/SOURCES/fish-3.7.1.tar.xz.asc new file mode 100644 index 0000000..fb8a16a --- /dev/null +++ b/SOURCES/fish-3.7.1.tar.xz.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCAAdFiEEnh3gZzzMAykZ0YUmwLlpspdOiI4FAmX5EKYACgkQwLlpspdO +iI5nwA/+Pp2y+/gdWdYffM7VwndSZy/QIvmTzCOAOvB4fWRQcYNibdEeLSuU5z0g +SljV3zyQpstrO3NGnWKOl1P/o5Itk1H6vha9RpEpBok8TCbuDBOuvnTQVraJKYfF +h7BsuNUHPF2NORpxp00eNSmLPIgR3p/DndRG2d3ti25tOKQ5rAP7azX3xmzKy0D5 +nw1jGB/yTN/a0iVEL4/0m3M7p3E4Pz58G8CxavUPwoF/yDnhNm1IcjiS4QEw5AJh +DXtJP8x1QP0gfXmA+nZFfdTPHNOxpct7yDcxV0JRHxhEvqbwRc0sEnXXp0zrZT4m +wb3PNh/TxGjNIw0sX9wHb6yEJ4TYHkv+e4BfoJbU9OFsLPaE/5WBDg1+z9vqBYzr +r7l/MfvJIXMqSMlcFmccJzQ9Xu0OpsyRsLAOTgwI8Zu7uEXUlqh3wpAq7JkYtBMg +Js1UrdlT1QFm1F0qJ4SDZ3SXdSkcosT6U7FfTL2XpinHZnT/2jBcUUGWM7UyW+6I +9lNMQs+K7jR545nvt4lp3ODuhnqvLkGzfzE75DH/iPfUj1K/Q3wBU2MYXMZriGKX +jpiXDI+cYWzUgRdEB7FS1RQ3AJZzYJ37DikCazvCCARUeByaSnSwG3D4ch//TPFI +W7e94aS89l2A4SuIi6dU2/ZUlZSojSTcwIF9PpoZ0se6e/8x4uY= +=0Gvd +-----END PGP SIGNATURE----- diff --git a/SPECS/fish.spec b/SPECS/fish.spec new file mode 100644 index 0000000..270cf3a --- /dev/null +++ b/SPECS/fish.spec @@ -0,0 +1,147 @@ +%global version_base 3.7.1 +%dnl %global gitnum 120 +%dnl %global githash 1a0b1ae238e1deb132a0ae4a8d0c589d583cc5b0 +%dnl %global githashshort %{lua:print(string.sub(rpm.expand('%{githash}'), 1, 11))} + +Name: fish +Version: %{version_base}%{?gitnum:^%{gitnum}g%{githashshort}} +Release: %autorelease +Summary: Friendly interactive shell +# see also doc_src/license.rst +# GPLv2 +# - src/fish.cpp +# and rest… +# GPLv2+ +# - src/builtins/printf.cpp +# BSD +# - src/fallback.cpp +# - share/tools/create_manpage_completions.py +# ISC +# - src/env.cpp +# - src/utf8.cpp +# - src/utf8.h +# LGPLv2+ +# - src/wgetopt.cpp +# - src/wgetopt.h +# MIT +# - share/completions/grunt.fish +# - share/tools/web_config/js/angular-route.js +# - share/tools/web_config/js/angular-sanitize.js +# - share/tools/web_config/js/angular.js +# PSF-2.0 +# - doc_src/python_docs_theme/, +License: GPL-2.0-only AND BSD-3-Clause AND ISC AND LGPL-2.0-or-later AND MIT AND PSF-2.0 +URL: https://fishshell.com +%if %{undefined gitnum} +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: gpgkey-003837986104878835FA516D7A67D962D88A709A.gpg +%else +Source0: https://github.com/fish-shell/fish-shell/archive/%{githash}/%{name}-%{githash}.tar.gz +%endif + +BuildRequires: cmake >= 3.5 +BuildRequires: ninja-build +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: gettext +BuildRequires: ncurses-devel +BuildRequires: pcre2-devel +BuildRequires: gnupg2 +BuildRequires: python3-devel +BuildRequires: python3-pexpect +BuildRequires: procps-ng +BuildRequires: glibc-langpack-en +%global __python %{__python3} +BuildRequires: /usr/bin/sphinx-build +BuildRequires: /usr/bin/desktop-file-validate + +# tab completion wants man-db +Recommends: man-db +Recommends: man-pages +Recommends: groff-base + +Provides: bundled(js-angular) = 1.8.2 + +%description +fish is a fully-equipped command line shell (like bash or zsh) that is +smart and user-friendly. fish supports powerful features like syntax +highlighting, autosuggestions, and tab completions that just work, with +nothing to learn or configure. + +%prep +%if %{undefined gitnum} +%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' +%endif +%autosetup -p1 %{?gitnum:-n fish-shell-%{githash}} +%if %{defined gitnum} +echo "%{version_base}-%{gitnum}g%{githashshort}" > version +%endif + +# Change the bundled scripts to invoke the python binary directly. +for f in $(find share/tools -type f -name '*.py'); do + sed -i -e '1{s@^#!.*@#!%{__python3}@}' "$f" +done + +%build +%cmake -GNinja \ + -DBUILD_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 -t all doc fish_tests + +# We still need to slightly manually adapt the pkgconfig file and remove +# some /usr/local/ references (RHBZ#1869376) +sed -i 's^/usr/local/^/usr/^g' %{_vpath_builddir}/*.pc + +%install +%cmake_install + +# No more automagic Python bytecompilation phase 3 +# * https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3 +%py_byte_compile %{python3} %{buildroot}%{_datadir}/%{name}/tools/ + +# Install docs from tarball root +cp -a README.rst %{buildroot}%{_pkgdocdir} +cp -a CONTRIBUTING.rst %{buildroot}%{_pkgdocdir} + +%find_lang %{name} + +%check +# Sadly, ctest is broken +%ninja_build -C %{_vpath_builddir} test +desktop-file-validate %{buildroot}%{_datadir}/applications/fish.desktop + +%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 -f %{name}.lang +%license COPYING +%{_mandir}/man1/fish*.1* +%{_bindir}/fish* +%config(noreplace) %{_sysconfdir}/fish/ +%{_datadir}/fish/ +%{_datadir}/pkgconfig/fish.pc +%{_pkgdocdir} +%{_datadir}/applications/fish.desktop +%{_datadir}/pixmaps/fish.png + +%changelog +%autochangelog