+++ /dev/null
---- fish-1.23.1/configure.ac.orig 2011-06-12 01:33:45.029917874 +0200
-+++ fish-1.23.1/configure.ac 2011-06-12 01:34:13.111213245 +0200
-@@ -504,7 +504,7 @@
- LIBS=""
- AC_SEARCH_LIBS( connect, socket, , [AC_MSG_ERROR([Cannot find the socket library, needed to build this package.] )] )
- AC_SEARCH_LIBS( nanosleep, rt, , [AC_MSG_ERROR([Cannot find the rt library, needed to build this package.] )] )
--AC_SEARCH_LIBS( setupterm, [ncurses curses], , [AC_MSG_ERROR([Could not find a curses implementation, needed to build fish])] )
-+AC_SEARCH_LIBS( setupterm, [tinfo ncurses curses], , [AC_MSG_ERROR([Could not find a curses implementation, needed to build fish])] )
- AC_SEARCH_LIBS( [nan], [m], [AC_DEFINE( [HAVE_NAN], [1], [Define to 1 if you have the nan function])] )
- LIBS_SHARED=$LIBS
- LIBS=$LIBS_COMMON
Summary: fish - A friendly interactive shell
Summary(pl.UTF-8): fish - przyjazna interaktywna powłoka
Name: fish
-Version: 1.23.1
-Release: 3
+Version: 2.1.1
+Release: 1
License: GPL v2
Group: Applications/Shells
-Source0: http://www.fishshell.com/files/%{version}/%{name}-%{version}.tar.bz2
-# Source0-md5: ead6b7c6cdb21f35a3d4aa1d5fa596f1
-Patch0: %{name}-link.patch
-Patch1: %{name}-includes.patch
+Source0: http://fishshell.com/files/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 0251e6e5f25d1f326e071425ea1dee22
URL: http://fishshell.com/
BuildRequires: autoconf >= 2.50
BuildRequires: doxygen
%prep
%setup -q
-%patch0 -p1
-%patch1 -p1
%build
+%{__aclocal}
%{__autoconf}
%{__autoheader}
-CPPFLAGS="-I/usr/include/ncurses"
-
-%configure \
- --docdir=%{_docdir}/%{name}-%{version} \
- --without-xsel
+%configure
%{__make}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
+
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+umask 022
+if [ ! -f /etc/shells ]; then
+ echo "%{_bindir}/fish" >> /etc/shells
+else
+ grep -q '^%{_bindir}/fish$' /etc/shells || echo "%{_bindir}/fish" >> /etc/shells
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+ umask 022
+ grep -v '^%{_bindir}/fish$' /etc/shells > /etc/shells.new
+ mv -f /etc/shells.new /etc/shells
+fi
+
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc ChangeLog README user_doc/html/*.{html,css,png}
+%doc CHANGELOG README.md user_doc/html/*.{html,css,png}
%attr(755,root,root) %{_bindir}/fish*
%attr(755,root,root) %{_bindir}/mimedb
-%attr(755,root,root) %{_bindir}/set_color
%{_datadir}/%{name}
%dir %{_sysconfdir}/fish
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fish/config.fish
%{_mandir}/man1/fish*.1*
%{_mandir}/man1/mimedb.1*
-%{_mandir}/man1/set_color.1*