fish/fish.spec
Matthias Mailänder 0409a04c53 Accepting request 397351 from home:simotek:branches:shells
- Update to v2.3.0
- Significant Changes
   * A new string builtin to handle… strings! 
   * After seeing an escape character wait up to 300ms for an a
     dditional character.
   * Add new directories for vendor functions and configuration 
     snippets (#2498)
   * A new fish_realpath builtin and associated function to allow 
     the use of realpath even on those platforms that don't ship 
     an appropriate command. (#2932)
   * Alt-# toggles the current command line between commented and 
     uncommented states, making it easy to save a command in 
     history without executing it.
   * The fish_vi_mode function is now deprecated in favour of 
     fish_vi_key_bindings
- Backward-incompatible changes
   * Unmatched globs will now cause an error, except when used 
     with for, set or count (#2719, #2394) and and or will now bind 
     to the closest if or while, allowing compound conditions without 
     begin and end (#1428)
   * set -ql now searches up to function scope for variables (#2502)
   * status -f will now behave the same when run as the main script 
     or using source (#2643)
   * source no longer puts the file name in $argv if no arguments 
     are given (#139) 
- Full release notes at
  https://github.com/fish-shell/fish-shell/releases/tag/2.3.0

OBS-URL: https://build.opensuse.org/request/show/397351
OBS-URL: https://build.opensuse.org/package/show/shells/fish?expand=0&rev=17
2016-05-23 19:26:11 +00:00

84 lines
2.5 KiB
RPMSpec

#
# spec file for package fish
#
# Copyright (c) 2016 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.3.0
Release: 0
Summary: A user friendly interactive shell
License: GPL-2.0
Group: System/Shells
Url: http://fishshell.com/
Source: http://fishshell.com/files/%{version}/fish-%{version}.tar.gz
# PATCH-FIX-UPSTREAM no-return-in-nonvoid-function.patch Fix no-return-in-nonvoid-function error
Patch0: no-return-in-nonvoid-function.patch
BuildRequires: autoconf
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: gettext
BuildRequires: groff
BuildRequires: ncurses-devel
BuildRequires: python
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
%patch0 -p1
%build
autoconf
%configure
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%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 /etc/fish
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_bindir}/*
%{_datadir}/doc/%{name}
%{_datadir}/%{name}
%{_datadir}/pkgconfig/fish.pc
%{_mandir}/man1/*
%changelog