Name: fish Version: 2.1.0 Release: 5%{?dist} Summary: A friendly interactive shell Group: System Environment/Shells License: GPLv2 URL: http://fishshell.com/ Source0: http://fishshell.com/files/%{version}/fish-%{version}.tar.gz Patch0: fish-remove-usr-local.patch Patch1: fish-add-link-cxxflags.patch Patch2: fish-use-python3.patch BuildRequires: ncurses-devel gettext groff doxygen python3 # brp-python-bytecompile doesn't parse script #! lines... %global __python %{__python3} %description fish is a fully-equipped command line shell (like bash or zsh) that is smart and user-friendly. fish supports powerful features like syntax highlighting, autosuggestions, and tab completions that just work, with nothing to learn or configure. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 # This requires Python2, but nothing uses it. rm create_wajig_completions.py %build %configure --docdir=%{_pkgdocdir} make %{?_smp_mflags} all fish_tests %install %make_install # Fish has magical manpages (visible from inside fish) that live in # /usr/share/fish/man/man1. Compress them (rpm won't do it automatically). gzip %{buildroot}%{_datadir}/fish/man/man1/*.1 %find_lang %{name} %check ./fish_tests |grep -q 'Encountered 0 errors' %post # Add fish to the list of allowed shells in /etc/shells if [ "$1" = 1 ]; then if ! [ -f "%{_sysconfdir}/shells" ] || ! grep -q '^%{_bindir}/fish$' "%{_sysconfdir}/shells"; then echo '%{_bindir}/fish' >>"%{_sysconfdir}/shells" fi fi %postun # Remove fish from the list of allowed shells in /etc/shells if [ "$1" = 0 ]; then sed -i -e '\#^%{_bindir}/fish$#d' "%{_sysconfdir}/shells" fi %files -f %{name}.lang %doc README.md %doc CHANGELOG %doc CONTRIBUTING.md %{_mandir}/man1/*.1* %{_bindir}/* %config(noreplace) %{_sysconfdir}/fish %{_datadir}/fish/ %changelog * Fri Dec 20 2013 Andy Lutomirski - 2.1.0-5 - Add BR: python3 (for __pycache__) - Remove --without-xsel: fish dropped it in favor of a runtime check * Fri Dec 13 2013 Andy Lutomirski - 2.1.0-4 - Stop looking in /usr/local (#1185 upstream) - Link with CXXFLAGS (#1062 upstream) - Use /usr/bin/python3 in scripts intead of /usr/bin/env - Add fish_tests to the build process - Split up the %%doc lines * Wed Dec 11 2013 Andy Lutomirski - 2.1.0-3 - Use %%make_install instead of make install DESTDIR=... - Removed rm -rf %%{buildroot} - Added Requires: python * Tue Dec 10 2013 Andy Lutomirski - 2.1.0-2 - Drop 'help' patch - Misc cleanups * Mon Dec 9 2013 Andy Lutomirski - 2.1.0-1 - Update to 2.1.0 and update a lot of the specfile - Fix bogus changelog dates - Add a patch to make 'help' work on F19 (upstream #1065) * Fri Jul 24 2009 Fedora Release Engineering - 1.23.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri Jul 03 2009 Lorenzo Villani - 1.23.1-3 - Pass --without-xsel to configure, if you want xsel install its package instead - Fix file list - Drop unneeded BuildRequires * Fri Jul 03 2009 Lorenzo Villani - 1.23.1-2 - rebuilt * Fri Jul 03 2009 Lorenzo Villani - 1.23.1-1 - 1.23.1 - Fix bz #472613 * Tue Feb 24 2009 Fedora Release Engineering - 1.23.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Sep 15 2008 Tom "spot" Callaway - 1.23.0-6 - cleanups - define ARG_MAX properly so it compiles * Mon Jul 07 2008 Tom "spot" Callaway - 1.23.0-5 - fix conditional comparison * Sun Jul 06 2008 Oliver Falk - 1.23.0-4 - Rebuild * Wed May 21 2008 Tom "spot" Callaway - 1.23.0-3 - fix license tag * Mon Feb 18 2008 Fedora Release Engineering - 1.23.0-2 - Autorebuild for GCC 4.3 * Mon Jan 14 2008 Oliver Falk - 1.23.0-1 - Update to fix #208780 - Remove openfix patch, included upstream now * Wed Oct 31 2007 Oliver Falk - 1.22.3-5 - Fix glibc's open check, by providing mode, instead of working around... * Wed Oct 31 2007 Oliver Falk - 1.22.3-4 - Update URL; Fixes bz#359451 * Thu Aug 16 2007 Oliver Falk - 1.22.3-3 - Workaround glibc's open check - Problem reported upstream; Should be fixed there * Tue Aug 07 2007 Oliver Falk - 1.22.3-2 - Fix BR autoconf * Tue Aug 07 2007 Oliver Falk - 1.22.3-1 - Update; Bug #236868 - Add missing doxygen BR * Fri Aug 4 2006 Axel Liljencrantz 1.21.10-4 - Add better translation finding code from fedora spec to main spec. Thank you to Michael Schwendt. - Add missing dependency libXext-devel. - Remove one nesting level from dependency checking code. * Tue Aug 1 2006 Axel Liljencrantz 1.21.10-1 - Improved the dependency check for X headers. Thank you to Michael Schwendt for pointers on how to do this * Mon Jul 31 2006 Axel Liljencrantz 1.21.10-1 - Fixed spelling and punctuation as a per patch from Paul Howarth - Fixed dependencies as per patch from Paul Howarth * Tue Nov 29 2005 Axel Liljencrantz 1.17.0-0 - 1.17.0 * Sat Sep 24 2005 Axel Liljencrantz 1.14.0-0 - 1.14.0 * Mon Sep 12 2005 Axel Liljencrantz 1.13.4-0 - 1.13.4 * Wed Sep 07 2005 Axel Liljencrantz 1.13.3-0 - 1.13.3 * Tue Sep 06 2005 Axel Liljencrantz 1.13.2-0 - 1.13.2 * Tue Aug 30 2005 Axel Liljencrantz 1.13.1-0 - 1.13.1 * Sun Aug 28 2005 Axel Liljencrantz 1.13.0-0 - 1.13.0 * Sat Aug 13 2005 Axel Liljencrantz 1.13.0-0 - Add completions subdirectory * Thu Jul 28 2005 Axel Liljencrantz 1.12.1-0 - 1.12.1 * Fri Jul 15 2005 Axel Liljencrantz 1.12.0-1 - 1.12.0 * Thu Jun 30 2005 Michael Schwendt 1.11.1-9 - Set CFLAGS the proper way * Thu Jun 30 2005 Axel Liljencrantz 1.11.1-8 - Fix revision number in changelog * Wed Jun 29 2005 Axel Liljencrantz 1.11.1-7 - Send post-script output to /dev/null * Wed Jun 29 2005 Axel Liljencrantz 1.11.1-6 - Add changelog section to spec file - Add macros to source tags - Add smp_mflags to 'make all' - Fix typo in post install scriptlet test - Set CFLAGS from spec file