2013-05-26 11:42:42 +02:00
|
|
|
#
|
|
|
|
# spec file for package fish
|
|
|
|
#
|
2020-03-17 04:56:57 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2013-05-26 11:42:42 +02:00
|
|
|
#
|
|
|
|
# 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.
|
2009-03-28 19:33:08 +01:00
|
|
|
|
2019-01-06 21:44:27 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-05-26 11:42:42 +02:00
|
|
|
#
|
2009-03-28 19:33:08 +01:00
|
|
|
|
2014-10-09 19:19:42 +02:00
|
|
|
|
2013-05-26 11:42:42 +02:00
|
|
|
Name: fish
|
Accepting request 799148 from home:jubalh:branches:shells
- Update to 3.1.2:
* Commands such as fzf and enhancd, when used with eval, would
hang. eval buffered output too aggressively, which has been
fixed (#6955).
- Changes in 3.1.2:
* Commands which involve . ( ... | psub) now work correctly, as
a bug in the function --on-job-exit option has been fixed (#6613).
* Conflicts between upstream packages for ripgrep and bat, and the
fish packages, have been resolved (#5822).
* Starting fish in a directory without read access, such as via
su, no longer crashes (#6597).
* Glob ordering changes which were introduced in 3.1.0 have been
reverted, returning the order of globs to the previous state (#6593).
* Redirections using the deprecated caret syntax to a file
descriptor (eg ^&2) work correctly (#6591).
* Redirections that append to a file descriptor (eg 2>>&1)
work correctly (#6614).
* Building fish on macOS (#6602) or with new versions of GCC
(#6604, #6609) is now successful.
* time is now correctly listed in the output of builtin -n,
and time --help works correctly (#6598).
* Exported universal variables now update properly (#6612).
* status current-command gives the expected output when used
with an environment override - that is, F=B status current-command
returns status instead of F=B (#6635).
* test no longer crashes when used with "nan" or "inf" arguments,
erroring out instead (#6655).
* Copying from the end of the command line no longer crashes
fish (#6680).
* read no longer removes multiple separators when splitting a
OBS-URL: https://build.opensuse.org/request/show/799148
OBS-URL: https://build.opensuse.org/package/show/shells/fish?expand=0&rev=52
2020-05-01 06:21:23 +02:00
|
|
|
Version: 3.1.2
|
2013-05-26 11:42:42 +02:00
|
|
|
Release: 0
|
2018-04-15 17:41:42 +02:00
|
|
|
Summary: The "friendly interactive shell"
|
2018-04-02 03:11:51 +02:00
|
|
|
License: GPL-2.0-only
|
2013-05-26 11:42:42 +02:00
|
|
|
Group: System/Shells
|
2020-03-17 04:56:57 +01:00
|
|
|
URL: https://fishshell.com/
|
2016-09-10 16:17:55 +02:00
|
|
|
Source: https://github.com/fish-shell/fish-shell/releases/download/%{version}/fish-%{version}.tar.gz
|
2020-03-17 04:56:57 +01:00
|
|
|
BuildRequires: cmake
|
2013-05-26 11:42:42 +02:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: groff
|
|
|
|
BuildRequires: ncurses-devel
|
2016-09-10 16:18:19 +02:00
|
|
|
BuildRequires: pcre2-devel >= 10.21
|
2016-09-10 16:17:55 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
Requires: bc
|
2015-11-21 07:55:49 +01:00
|
|
|
Requires: man
|
|
|
|
Recommends: terminfo
|
2009-03-28 19:33:08 +01:00
|
|
|
|
|
|
|
%description
|
2018-04-15 17:41:42 +02:00
|
|
|
fish is a command line shell.
|
|
|
|
It is geared towards interactive use and its features are focused on user
|
2016-09-10 16:17:55 +02:00
|
|
|
friendlieness and discoverability. The language syntax is simple but
|
|
|
|
incompatible with other shell languages.
|
2009-03-28 19:33:08 +01:00
|
|
|
|
2018-04-02 03:11:51 +02:00
|
|
|
%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.
|
|
|
|
|
2009-03-28 19:33:08 +01:00
|
|
|
%prep
|
2013-11-05 12:22:22 +01:00
|
|
|
%setup -q
|
2020-03-31 11:41:37 +02:00
|
|
|
%autopatch -p1
|
2009-03-28 19:33:08 +01:00
|
|
|
|
2018-04-02 03:11:51 +02:00
|
|
|
# fix E: env-script-interpreter
|
2018-04-15 17:41:42 +02:00
|
|
|
find share/tools -type f -name *.py -exec sed -i -r '1s|^#!%{_bindir}/env |#!%{_bindir}/|' {} +
|
2018-04-02 03:11:51 +02:00
|
|
|
|
2009-03-28 19:33:08 +01:00
|
|
|
%build
|
2020-03-17 04:56:57 +01:00
|
|
|
%cmake \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
-DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir}
|
2009-03-28 19:33:08 +01:00
|
|
|
|
|
|
|
%install
|
2020-03-17 04:56:57 +01:00
|
|
|
%cmake_install
|
2018-04-02 03:11:51 +02:00
|
|
|
|
2009-03-28 19:33:08 +01:00
|
|
|
%find_lang %{name}
|
2013-05-26 11:42:42 +02:00
|
|
|
|
2019-04-11 03:59:09 +02:00
|
|
|
# Drop the curl completions, the curl packages provide a better version
|
|
|
|
rm %{buildroot}/%{_datadir}/fish/completions/curl.fish
|
|
|
|
|
2020-03-17 04:56:57 +01:00
|
|
|
rm %{buildroot}/%{_datadir}/doc/fish/.buildinfo
|
|
|
|
rm -r %{buildroot}/%{_datadir}/%{name}/man
|
|
|
|
|
2009-03-28 19:33:08 +01:00
|
|
|
%post
|
2013-05-26 11:42:42 +02:00
|
|
|
# Add fish to the list of allowed shells in /etc/shells
|
2018-04-15 17:41:42 +02:00
|
|
|
if ! grep -q '^%{_bindir}/%{name}$' %{_sysconfdir}/shells; then
|
2013-05-26 11:42:42 +02:00
|
|
|
echo %{_bindir}/%{name} >>%{_sysconfdir}/shells
|
2009-03-28 19:33:08 +01:00
|
|
|
fi
|
|
|
|
|
2013-05-26 11:42:42 +02:00
|
|
|
%postun
|
|
|
|
# Remove fish from the list of allowed shells in /etc/shells
|
|
|
|
if [ "$1" = 0 ]; then
|
2018-04-15 17:41:42 +02:00
|
|
|
grep -v '^%{_bindir}/%{name}$' %{_sysconfdir}/shells >%{_sysconfdir}/%{name}.tmp
|
2014-10-09 19:19:42 +02:00
|
|
|
mv %{_sysconfdir}/%{name}.tmp %{_sysconfdir}/shells
|
2013-05-26 11:42:42 +02:00
|
|
|
fi
|
2009-03-28 19:33:08 +01:00
|
|
|
|
|
|
|
%files -f %{name}.lang
|
2016-09-10 16:17:55 +02:00
|
|
|
%dir %{_sysconfdir}/fish
|
2014-12-01 18:56:18 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/*
|
2009-03-28 19:33:08 +01:00
|
|
|
%{_bindir}/*
|
2013-05-26 11:42:42 +02:00
|
|
|
%{_datadir}/doc/%{name}
|
|
|
|
%{_datadir}/%{name}
|
2018-04-02 03:11:51 +02:00
|
|
|
%{_mandir}/man1/*.1%{?ext_man}
|
|
|
|
|
|
|
|
%files devel
|
2015-07-27 21:50:01 +02:00
|
|
|
%{_datadir}/pkgconfig/fish.pc
|
2009-03-28 19:33:08 +01:00
|
|
|
|
2014-10-09 19:19:42 +02:00
|
|
|
%changelog
|