SHA256
1
0
forked from pool/fish
fish/fish.spec

124 lines
3.5 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package fish
#
Accepting request 1164533 from home:dirkmueller:Factory - update to 3.7.1: * Deleting the last history entry via `history delete` works again (#10190). * Wildcards (`*`) will no longer sometimes generate paths that did not exist (#10205). * A crash when trying to run an ELF program with a missing interpreter has been fixed. This crashed in the process after fork, so did not affect the fish process that tried to start the program (#10199). * `funced` will now always `source` the file after it has written it, even if the contents did not change. This prevents issues if the file was otherwise modified (#10318). * The warning for when a builtin returns a negative exit code was improved, now mentioning the original status (#10187). * Added completions for `cobra-cli`, `dmidecode`, `mycli`, `ollama`, `pstree` - Update to 3.7.0: in a search (#10005). This makes it nicer to search something with ↑ and then later decide * Closing the history pager with enter will now copy the search text to the commandline * See https://github.com/fish-shell/fish-shell/releases/tag/3.7.0 may not be expected. (bsc#1217808, CVE-2023-49284) * By default, Control-R now opens the command history in the pager, * see https://github.com/fish-shell/fish-shell/releases/tag/3.4.0 * Pasting with a multi-line command no longer causes - Define GenericName and proper category in fish.desktop of the scripting differences between bash and fish may be omitted: $start and $end default to 1 and -1 a substring OBS-URL: https://build.opensuse.org/request/show/1164533 OBS-URL: https://build.opensuse.org/package/show/shells/fish?expand=0&rev=91
2024-05-20 06:58:24 +00:00
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: fish
Accepting request 1164533 from home:dirkmueller:Factory - update to 3.7.1: * Deleting the last history entry via `history delete` works again (#10190). * Wildcards (`*`) will no longer sometimes generate paths that did not exist (#10205). * A crash when trying to run an ELF program with a missing interpreter has been fixed. This crashed in the process after fork, so did not affect the fish process that tried to start the program (#10199). * `funced` will now always `source` the file after it has written it, even if the contents did not change. This prevents issues if the file was otherwise modified (#10318). * The warning for when a builtin returns a negative exit code was improved, now mentioning the original status (#10187). * Added completions for `cobra-cli`, `dmidecode`, `mycli`, `ollama`, `pstree` - Update to 3.7.0: in a search (#10005). This makes it nicer to search something with ↑ and then later decide * Closing the history pager with enter will now copy the search text to the commandline * See https://github.com/fish-shell/fish-shell/releases/tag/3.7.0 may not be expected. (bsc#1217808, CVE-2023-49284) * By default, Control-R now opens the command history in the pager, * see https://github.com/fish-shell/fish-shell/releases/tag/3.4.0 * Pasting with a multi-line command no longer causes - Define GenericName and proper category in fish.desktop of the scripting differences between bash and fish may be omitted: $start and $end default to 1 and -1 a substring OBS-URL: https://build.opensuse.org/request/show/1164533 OBS-URL: https://build.opensuse.org/package/show/shells/fish?expand=0&rev=91
2024-05-20 06:58:24 +00:00
Version: 3.7.1
Release: 0
Summary: The "friendly interactive shell"
# see bundled doc_src/license.rst
Accepting request 1164533 from home:dirkmueller:Factory - update to 3.7.1: * Deleting the last history entry via `history delete` works again (#10190). * Wildcards (`*`) will no longer sometimes generate paths that did not exist (#10205). * A crash when trying to run an ELF program with a missing interpreter has been fixed. This crashed in the process after fork, so did not affect the fish process that tried to start the program (#10199). * `funced` will now always `source` the file after it has written it, even if the contents did not change. This prevents issues if the file was otherwise modified (#10318). * The warning for when a builtin returns a negative exit code was improved, now mentioning the original status (#10187). * Added completions for `cobra-cli`, `dmidecode`, `mycli`, `ollama`, `pstree` - Update to 3.7.0: in a search (#10005). This makes it nicer to search something with ↑ and then later decide * Closing the history pager with enter will now copy the search text to the commandline * See https://github.com/fish-shell/fish-shell/releases/tag/3.7.0 may not be expected. (bsc#1217808, CVE-2023-49284) * By default, Control-R now opens the command history in the pager, * see https://github.com/fish-shell/fish-shell/releases/tag/3.4.0 * Pasting with a multi-line command no longer causes - Define GenericName and proper category in fish.desktop of the scripting differences between bash and fish may be omitted: $start and $end default to 1 and -1 a substring OBS-URL: https://build.opensuse.org/request/show/1164533 OBS-URL: https://build.opensuse.org/package/show/shells/fish?expand=0&rev=91
2024-05-20 06:58:24 +00:00
License: BSD-3-Clause AND GPL-2.0-only AND ISC AND LGPL-2.0-or-later AND MIT AND PSF-2.0
Group: System/Shells
URL: https://fishshell.com/
Accepting request 876027 from home:polslinux:branches:shells - Update to 3.2.0: * Undo and redo support for the command-line editor and pager search * Builtins can now output before all data is read * Prompts will now be truncated instead of replaced with "> " * Better errors with "test" * A new theme for the documentation and Web-based configuration * fish --no-execute will no longer complain about unknown commands or non-matching wildcards * string match --regex now integrates named PCRE2 capture groups as fish variables * Globs and other expansions are limited to 512,288 results * A new "fish for bash users" documentation page gives a quick overview of the scripting differences between bash and fish * Range limits in index range expansions like $x[$start..$end] may be omitted: $start and $end default to 1 and -1 * the type, _ (gettext), . (source) and : (no-op) functions are now implemented builtins for performance purposes * The output for set --show has been shortened * string sub has a new --end option to specify the end index of a substring * string trim now also trims vertical tabs by default * string repeat now handles multiple arguments, repeating each one * The true and false builtins ignore any arguments * status gained new dirname and basename convenience subcommands * jobs now shows continued child processes correctly * A new fish_status_to_signal function for transforming exit statuses to signal names has been added * fish -c now reads the remaining arguments into $argv * The pwd command supports the long options --logical and --physical * https://github.com/fish-shell/fish-shell/releases/tag/3.2.0 - Remove fix-pc-file-paths.patch OBS-URL: https://build.opensuse.org/request/show/876027 OBS-URL: https://build.opensuse.org/package/show/shells/fish?expand=0&rev=58
2021-03-01 23:31:45 +00:00
Source: https://github.com/fish-shell/fish-shell/releases/download/%{version}/fish-%{version}.tar.xz
Source1: https://github.com/fish-shell/fish-shell/releases/download/%{version}/fish-%{version}.tar.xz.asc
Source100: fish.keyring
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: gettext
BuildRequires: groff
BuildRequires: ncurses-devel
BuildRequires: pcre2-devel >= 10.21
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
# for tests
BuildRequires: procps
Requires: awk
Requires: bc
Requires: gzip
Requires: man
Recommends: terminfo
%description
fish is a command line shell.
It is geared towards interactive use and its features are focused on user
friendlieness and discoverability. The language syntax is simple but
incompatible with other shell languages.
%package devel
Summary: Devel files for the fish shell
Group: Development/Libraries/C and C++
%description devel
This package contains development files for the fish shell.
%prep
%autosetup -p1
# fix E: env-script-interpreter
find share/tools -type f -name *.py -exec \
sed -i -r '1s|^#!%{_bindir}/env |#!%{_bindir}/|' {} +
%build
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} \
-DCMAKE_INSTALL_DOCDIR:PATH=share/doc/packages/fish \
%{nil}
%cmake_build
%install
%cmake_install
%find_lang %{name}
# Location varies between TW and SLE/Leap, try both
rm %{buildroot}/%{_datadir}/doc/packages/fish/.buildinfo
%suse_update_desktop_file -G "Command-line interpreter" fish TerminalEmulator
%if %{suse_version} >= 1600
%python3_fix_shebang_path %{buildroot}/%{_datadir}/%{name}/tools/*.py
%endif
%check
pushd build
%make_build test
popd
%post
# Add fish to the list of allowed shells in /etc/shells
if ! grep -q '^%{_bindir}/%{name}$' %{_sysconfdir}/shells; then
echo %{_bindir}/%{name} >>%{_sysconfdir}/shells
fi
%postun
# Remove fish from the list of allowed shells in /etc/shells
if [ "$1" = 0 ]; then
grep -v '^%{_bindir}/%{name}$' %{_sysconfdir}/shells >%{_sysconfdir}/%{name}.tmp
mv %{_sysconfdir}/%{name}.tmp %{_sysconfdir}/shells
fi
%files -f %{name}.lang
%dir %{_sysconfdir}/fish
%config(noreplace) %{_sysconfdir}/%{name}/*
Accepting request 879954 from home:avindra:branches:shells - Update to 3.2.1: * Commands in key bindings are run with fish's internal terminal modes, instead of the terminal modes typically used for commands. This fixes a bug introduced in 3.2.0, where text would unexpectedly appear on the terminal, especially when pasting * Prompts which use the internal __fish_print_pipestatus function will display correctly rather than carrying certain modifiers (such as bold) further than intended * Redirections to internal file descriptors is allowed again, reversing the changes in 3.2.0. This fixes a problem with Midnight Commander * Universal variables should be fully reliable regardless of operating system again * fish_git_prompt no longer causes screen flickering in certain terminals * fish_add_path manipulates the fish_user_paths variable correctly when moving multiple paths * Pasting with a multi-line command no longer causes __fish_tokenizer_state error * psub inside event handlers cleans up temporary files properly * Event handlers declared with --on-job-exit $fish_pid no longer run constantly, although these functions should use --on-event fish_exit instead. * Changing terminal modes inside config.fish works * set_color --print-colors no longer prints all colors in bold * Completing commands starting with a - no longer prints an error * Running fish_command_not_found directly no longer produces an error on macOS or other OSes which do not have a handler available * The new type builtin now has the (deprecated) --quiet long form of -q * help and fish_config work correctly when fish is running in a Chrome OS Crostini Linux VM * The history file can be made a symbolic link without it being overwritten, matching a similar improvement for the universal variable file in 3.2.0. * An unhelpful error ("access: No error"), seen on Cygwin, is no longer produced * Improvements to the rsync completions, some completion descriptions, and completions that use IP address * Improvements to the appearance of fish_config - explicitly list binaries in spec file OBS-URL: https://build.opensuse.org/request/show/879954 OBS-URL: https://build.opensuse.org/package/show/shells/fish?expand=0&rev=62
2021-03-21 10:44:21 +00:00
%{_bindir}/fish
%{_bindir}/fish_indent
%{_bindir}/fish_key_reader
%doc %{_datadir}/doc/packages/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/*.1%{?ext_man}
Accepting request 876027 from home:polslinux:branches:shells - Update to 3.2.0: * Undo and redo support for the command-line editor and pager search * Builtins can now output before all data is read * Prompts will now be truncated instead of replaced with "> " * Better errors with "test" * A new theme for the documentation and Web-based configuration * fish --no-execute will no longer complain about unknown commands or non-matching wildcards * string match --regex now integrates named PCRE2 capture groups as fish variables * Globs and other expansions are limited to 512,288 results * A new "fish for bash users" documentation page gives a quick overview of the scripting differences between bash and fish * Range limits in index range expansions like $x[$start..$end] may be omitted: $start and $end default to 1 and -1 * the type, _ (gettext), . (source) and : (no-op) functions are now implemented builtins for performance purposes * The output for set --show has been shortened * string sub has a new --end option to specify the end index of a substring * string trim now also trims vertical tabs by default * string repeat now handles multiple arguments, repeating each one * The true and false builtins ignore any arguments * status gained new dirname and basename convenience subcommands * jobs now shows continued child processes correctly * A new fish_status_to_signal function for transforming exit statuses to signal names has been added * fish -c now reads the remaining arguments into $argv * The pwd command supports the long options --logical and --physical * https://github.com/fish-shell/fish-shell/releases/tag/3.2.0 - Remove fix-pc-file-paths.patch OBS-URL: https://build.opensuse.org/request/show/876027 OBS-URL: https://build.opensuse.org/package/show/shells/fish?expand=0&rev=58
2021-03-01 23:31:45 +00:00
%{_datadir}/applications/fish.desktop
%{_datadir}/pixmaps/fish.png
%files devel
%{_datadir}/pkgconfig/fish.pc
%changelog