File fish3.spec of Package fish3.11025

# spec file for package fish
# Copyright (c) 2018 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

Name:           fish3
Version:        3.0.0
Release:        0
Summary:        The "friendly interactive shell"
License:        GPL-2.0-only
Group:          System/Shells
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
Recommends:     terminfo
Conflicts:      fish

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++
Conflicts:      fish-devel

%description devel
This package contains development files for the fish shell.

%setup -q  -n fish-%{version}

# fix E: env-script-interpreter
find share/tools -type f -name *.py -exec sed -i -r '1s|^#!%{_bindir}/env |#!%{_bindir}/|' {} +

%configure \
make %{?_smp_mflags}


%find_lang fish

# Add fish to the list of allowed shells in /etc/shells
if ! grep -q '^%{_bindir}/fish$' %{_sysconfdir}/shells; then
	echo %{_bindir}/fish >>%{_sysconfdir}/shells

# Remove fish from the list of allowed shells in /etc/shells
if [ "$1" = 0 ]; then
	grep -v '^%{_bindir}/fish$' %{_sysconfdir}/shells >%{_sysconfdir}/%{name}.tmp
	mv %{_sysconfdir}/%{name}.tmp %{_sysconfdir}/shells

%files -f fish.lang
%dir %{_sysconfdir}/fish
%config(noreplace) %{_sysconfdir}/fish/*

%files devel

openSUSE Build Service is sponsored by