2013-05-26 11:42:42 +02:00
|
|
|
#
|
|
|
|
# spec file for package fish
|
|
|
|
#
|
2015-02-05 19:13:55 +01:00
|
|
|
# Copyright (c) 2015 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
|
|
|
|
2013-05-26 11:42:42 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
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
|
2015-07-27 21:50:01 +02:00
|
|
|
Version: 2.2.0
|
2013-05-26 11:42:42 +02:00
|
|
|
Release: 0
|
2014-10-09 19:19:42 +02:00
|
|
|
Summary: A user friendly interactive shell
|
2013-05-26 11:42:42 +02:00
|
|
|
License: GPL-2.0
|
|
|
|
Group: System/Shells
|
|
|
|
Url: http://fishshell.com/
|
2013-11-05 12:22:22 +01:00
|
|
|
Source: http://fishshell.com/files/%{version}/fish-%{version}.tar.gz
|
2015-02-05 19:13:55 +01:00
|
|
|
# PATCH-FIX-UPSTREAM no-return-in-nonvoid-function.patch Fix no-return-in-nonvoid-function error
|
2015-07-27 21:50:01 +02:00
|
|
|
Patch0: no-return-in-nonvoid-function.patch
|
2013-05-26 11:42:42 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: groff
|
|
|
|
BuildRequires: ncurses-devel
|
2014-10-09 19:19:42 +02:00
|
|
|
BuildRequires: python
|
2015-11-21 07:55:49 +01:00
|
|
|
Requires: man
|
2015-03-21 10:28:45 +01:00
|
|
|
Requires: python-curses
|
2015-11-21 07:55:49 +01:00
|
|
|
Recommends: terminfo
|
2014-10-09 19:19:42 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-03-28 19:33:08 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
fish is a user friendly command line shell for UNIX-like operating systems such as Linux.
|
|
|
|
|
2013-05-26 11:42:42 +02:00
|
|
|
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.
|
2009-03-28 19:33:08 +01:00
|
|
|
|
|
|
|
%prep
|
2013-11-05 12:22:22 +01:00
|
|
|
%setup -q
|
2015-01-28 18:31:12 +01:00
|
|
|
%patch0 -p1
|
2009-03-28 19:33:08 +01:00
|
|
|
|
|
|
|
%build
|
2013-05-26 11:42:42 +02:00
|
|
|
autoconf
|
2009-03-28 19:33:08 +01:00
|
|
|
%configure
|
2013-05-26 11:42:42 +02:00
|
|
|
make %{?_smp_mflags}
|
2009-03-28 19:33:08 +01:00
|
|
|
|
|
|
|
%install
|
2014-10-09 19:19:42 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
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
|
|
|
|
if ! grep %{_bindir}/%{name} %{_sysconfdir}/shells >/dev/null; then
|
|
|
|
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
|
|
|
|
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
|
|
|
|
%defattr(-,root,root)
|
2014-12-01 18:56:18 +01:00
|
|
|
%dir /etc/fish
|
|
|
|
%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}
|
2015-07-27 21:50:01 +02:00
|
|
|
%{_datadir}/pkgconfig/fish.pc
|
2009-03-28 19:33:08 +01:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
2014-10-09 19:19:42 +02:00
|
|
|
%changelog
|