fish/fish.spec
Matthias Mailänder bd50a186fc Accepting request 545529 from home:jaimeMF:branches:shells
- Update to 2.7.0. Notable improvements:
  * A new cdh (change directory using recent history) command provides a more
    friendly alternative to prevd/nextd and pushd/popd (#2847).
  * A new argparse command is available to allow fish script to parse arguments
    with the same behavior as builtin commands. This also includes the fish_opt helper command. (#4190).
  * Invalid array indexes are now silently ignored (#826, #4127).
  * Improvements to the debugging facility, including a prompt specific to the
    debugger (fish_breakpoint_prompt) and a status is-breakpoint subcommand (#1310).
  * string supports new lower and upper subcommands, for altering the case of
    strings (#4080). The case changing is not locale-aware yet.
  * string escape has a new --style=xxx flag where xxx can be script, var,
    or url (#4150), and can be reversed with string unescape (#3543).
  * History can now be split into sessions with the fish_history variable,
    or not saved to disk at all (#102).
  * Read history is now controlled by the fish_history variable rather than
    the --mode-name flag (#1504).
  * command now supports an --all flag to report all directories with the
    command. which is no longer a runtime dependency (#2778).
  * fish can run commands before starting an interactive session using the new 
    --init-command/-C options (#4164).
  * set has a new --show option to show lots of information about variables
    (#4265).
  * Full changelog: https://github.com/fish-shell/fish-shell/releases/tag/2.7.0

OBS-URL: https://build.opensuse.org/request/show/545529
OBS-URL: https://build.opensuse.org/package/show/shells/fish?expand=0&rev=30
2017-12-09 09:44:10 +00:00

85 lines
2.4 KiB
RPMSpec

#
# spec file for package fish
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: fish
Version: 2.7.0
Release: 0
Summary: A user friendly interactive shell
License: GPL-2.0
Group: System/Shells
Url: http://fishshell.com/
Source: https://github.com/fish-shell/fish-shell/releases/download/%{version}/fish-%{version}.tar.gz
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: gettext
BuildRequires: groff
BuildRequires: ncurses-devel
BuildRequires: pcre2-devel >= 10.21
BuildRequires: pkgconfig
BuildRequires: python
Requires: bc
Requires: man
Requires: python-curses
Recommends: terminfo
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
fish is a user friendly command line shell for UNIX-like operating systems
such as Linux.
It's 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.
%prep
%setup -q
%build
%configure \
--without-included-pcre2
make %{?_smp_mflags}
%install
%make_install
%find_lang %{name}
%post
# Add fish to the list of allowed shells in /etc/shells
if ! grep %{_bindir}/%{name} %{_sysconfdir}/shells >/dev/null; 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
%defattr(-,root,root)
%dir %{_sysconfdir}/fish
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_bindir}/*
%{_datadir}/doc/%{name}
%{_datadir}/%{name}
%{_datadir}/pkgconfig/fish.pc
%{_mandir}/man1/*
%changelog