2013-05-26 11:42:42 +02:00
|
|
|
#
|
|
|
|
# spec file for package fish
|
|
|
|
#
|
2019-02-18 09:54:14 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
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
|
2019-02-18 09:54:14 +01:00
|
|
|
Version: 3.0.1
|
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
|
2018-04-02 03:11:51 +02: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
|
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
|
2014-10-09 19:19:42 +02:00
|
|
|
BuildRequires: python
|
2016-09-10 16:17:55 +02:00
|
|
|
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
|
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
|
2016-09-10 16:17:55 +02:00
|
|
|
%configure \
|
|
|
|
--without-included-pcre2
|
2013-05-26 11:42:42 +02:00
|
|
|
make %{?_smp_mflags}
|
2009-03-28 19:33:08 +01:00
|
|
|
|
|
|
|
%install
|
2016-09-10 16:17:55 +02:00
|
|
|
%make_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
|
|
|
|
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
|