|
|
@ -1,64 +1,123 @@
|
|
|
|
Summary: A friendly interactive shell
|
|
|
|
Summary: A friendly interactive shell
|
|
|
|
Name: fish
|
|
|
|
Name: fish
|
|
|
|
|
|
|
|
|
|
|
|
Version: 1.21.2
|
|
|
|
Version: 1.21.10
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 0%{?dist}
|
|
|
|
|
|
|
|
|
|
|
|
License: GPL
|
|
|
|
License: GPL
|
|
|
|
Group: System Environment/Shells
|
|
|
|
Group: System Environment/Shells
|
|
|
|
URL: http://roo.no-ip.org/fish/
|
|
|
|
URL: http://roo.no-ip.org/fish/
|
|
|
|
|
|
|
|
|
|
|
|
Source0: http://roo.no-ip.org/%{name}/files/%{version}/%{name}-%{version}.tar.bz2
|
|
|
|
Source0: http://roo.no-ip.org/%{name}/files/%{version}/%{name}-%{version}.tar.bz2
|
|
|
|
Patch0: fish-1.21.2-fallback.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: doxygen ncurses-devel
|
|
|
|
BuildRequires: ncurses-devel gettext groff
|
|
|
|
BuildRequires: libX11-devel libXt-devel libXext-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Locate correct build time-dependencies for providing X headers
|
|
|
|
|
|
|
|
%if "%fedora" >= "5"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Modern Fedora version, has modular X.org
|
|
|
|
|
|
|
|
BuildRequires: xorg-x11-proto-devel libX11-devel libXt-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if "%fedora" < "5"
|
|
|
|
|
|
|
|
%if "%fedora" >= "3"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Semi-old Fedora version, has non-modular X.org
|
|
|
|
|
|
|
|
BuildRequires: xorg-x11-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Ancient Fedora version, has XFree86
|
|
|
|
|
|
|
|
BuildRequires: XFree86-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# This is not a Fedora system, try guessing BuildRequires by
|
|
|
|
|
|
|
|
# looking at the directory structure
|
|
|
|
|
|
|
|
%define xinclude /usr%(if [ -d /usr/X11R6/include ]; then echo /X11R6; fi)/include
|
|
|
|
|
|
|
|
BuildRequires: %{xinclude}/X11/StringDefs.h, %{xinclude}/X11/Xlib.h
|
|
|
|
|
|
|
|
BuildRequires: %{xinclude}/X11/Intrinsic.h, %{xinclude}/X11/Xatom.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
fish is a shell geared towards interactive use. It's features are
|
|
|
|
|
|
|
|
focused on user friendlieness and discoverability. The language syntax
|
|
|
|
fish is a shell geared towards interactive use. Its features are
|
|
|
|
|
|
|
|
focused on user friendliness and discoverability. The language syntax
|
|
|
|
is simple but incompatible with other shell languages.
|
|
|
|
is simple but incompatible with other shell languages.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1 -b .fallback
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
# The docdir argument is to make the name of the cosumantation
|
|
|
|
|
|
|
|
# directory 'fish-VERSION', instead of the default, which is simply
|
|
|
|
|
|
|
|
# 'fish'.
|
|
|
|
%configure docdir=%_datadir/doc/%{name}-%{version}
|
|
|
|
%configure docdir=%_datadir/doc/%{name}-%{version}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR="$RPM_BUILD_ROOT"
|
|
|
|
make install DESTDIR="$RPM_BUILD_ROOT"
|
|
|
|
|
|
|
|
|
|
|
|
%find_lang %{name}.\*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
|
|
|
|
# Add fish to the list of allowed shells in /etc/shells
|
|
|
|
if ! grep %_bindir/fish %_sysconfdir/shells >/dev/null; then
|
|
|
|
if ! grep %_bindir/fish %_sysconfdir/shells >/dev/null; then
|
|
|
|
echo %_bindir/fish >>%_sysconfdir/shells
|
|
|
|
echo %_bindir/fish >>%_sysconfdir/shells
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%postun
|
|
|
|
|
|
|
|
# Remove fish from the list of allowed shells in /etc/shells
|
|
|
|
if [ "$1" = 0 ]; then
|
|
|
|
if [ "$1" = 0 ]; then
|
|
|
|
grep -v %_bindir/fish %_sysconfdir/shells >%_sysconfdir/fish.tmp
|
|
|
|
grep -v %_bindir/fish %_sysconfdir/shells >%_sysconfdir/fish.tmp
|
|
|
|
mv %_sysconfdir/fish.tmp %_sysconfdir/shells
|
|
|
|
mv %_sysconfdir/fish.tmp %_sysconfdir/shells
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.\*.lang
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# The documentation directory
|
|
|
|
%doc %_datadir/doc/%{name}-%{version}
|
|
|
|
%doc %_datadir/doc/%{name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# man files
|
|
|
|
%_mandir/man1/fish.1*
|
|
|
|
%_mandir/man1/fish.1*
|
|
|
|
%_mandir/man1/xsel.1x*
|
|
|
|
%_mandir/man1/xsel.1x*
|
|
|
|
%_mandir/man1/mimedb.1*
|
|
|
|
%_mandir/man1/mimedb.1*
|
|
|
|
%_mandir/man1/set_color.1*
|
|
|
|
%_mandir/man1/set_color.1*
|
|
|
|
%_mandir/man1/count.1*
|
|
|
|
%_mandir/man1/count.1*
|
|
|
|
%_mandir/man1/fishd.1.*
|
|
|
|
%_mandir/man1/fishd.1*
|
|
|
|
%_mandir/man1/fish_pager.1.*
|
|
|
|
%_mandir/man1/fish_pager.1*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# The program binaries
|
|
|
|
%attr(0755,root,root) %_bindir/fish
|
|
|
|
%attr(0755,root,root) %_bindir/fish
|
|
|
|
%attr(0755,root,root) %_bindir/fishd
|
|
|
|
%attr(0755,root,root) %_bindir/fishd
|
|
|
|
%attr(0755,root,root) %_bindir/fish_pager
|
|
|
|
%attr(0755,root,root) %_bindir/fish_pager
|
|
|
@ -66,24 +125,41 @@ fi
|
|
|
|
%attr(0755,root,root) %_bindir/set_color
|
|
|
|
%attr(0755,root,root) %_bindir/set_color
|
|
|
|
%attr(0755,root,root) %_bindir/mimedb
|
|
|
|
%attr(0755,root,root) %_bindir/mimedb
|
|
|
|
%attr(0755,root,root) %_bindir/count
|
|
|
|
%attr(0755,root,root) %_bindir/count
|
|
|
|
%dir %_datadir/fish/completions
|
|
|
|
|
|
|
|
%config %_datadir/fish/completions/*.fish
|
|
|
|
# Configuration files
|
|
|
|
%dir %_datadir/fish/functions
|
|
|
|
|
|
|
|
%config %_datadir/fish/functions/*.fish
|
|
|
|
|
|
|
|
%_datadir/fish/fish
|
|
|
|
|
|
|
|
%config %_sysconfdir/fish
|
|
|
|
%config %_sysconfdir/fish
|
|
|
|
%config %_sysconfdir/fish_inputrc
|
|
|
|
%config %_sysconfdir/fish_inputrc
|
|
|
|
%dir %_sysconfdir/fish.d
|
|
|
|
%dir %_sysconfdir/fish.d
|
|
|
|
%config %_sysconfdir/fish.d/fish_*.fish
|
|
|
|
%config %_sysconfdir/fish.d/fish_*.fish
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Non-configuration initialization files
|
|
|
|
|
|
|
|
%dir %_datadir/fish
|
|
|
|
|
|
|
|
%_datadir/fish/fish
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Program specific tab-completions
|
|
|
|
|
|
|
|
%dir %_datadir/fish/completions
|
|
|
|
|
|
|
|
%_datadir/fish/completions/*.fish
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Dynamically loaded shellscript functions
|
|
|
|
|
|
|
|
%dir %_datadir/fish/functions
|
|
|
|
|
|
|
|
%_datadir/fish/functions/*.fish
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Translations
|
|
|
|
|
|
|
|
%_datadir/locale/*/LC_MESSAGES/fish.mo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Mar 13 2006 Oliver Falk <oliver@linux-kernel.at> - 1.21.2-1
|
|
|
|
* Tue Aug 1 2006 Axel Liljencrantz<axel@liljencrantz.se> 1.21.10-1
|
|
|
|
- Update
|
|
|
|
- Improved the dependency check for X headers. Thank you to Michael Schwendt for pointers on how to do this
|
|
|
|
- Applied patch provided by Michael Schwendt
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 31 2006 Axel Liljencrantz<axel@liljencrantz.se> 1.21.10-1
|
|
|
|
|
|
|
|
- Fixed spelling and punctuation as a per patch from Paul Howarth
|
|
|
|
|
|
|
|
- Fixed dependencies as per patch from Paul Howarth
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Mar 10 2006 Oliver Falk <oliver@linux-kernel.at> - 1.14.0-2
|
|
|
|
* Tue Nov 29 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.17.0-0
|
|
|
|
- Fix buildreqs
|
|
|
|
- 1.17.0
|
|
|
|
- Fix wutil.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Sep 24 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.14.0-0
|
|
|
|
* Sat Sep 24 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.14.0-0
|
|
|
|
- 1.14.0
|
|
|
|
- 1.14.0
|
|
|
@ -112,10 +188,6 @@ fi
|
|
|
|
* Fri Jul 15 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.12.0-1
|
|
|
|
* Fri Jul 15 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.12.0-1
|
|
|
|
- 1.12.0
|
|
|
|
- 1.12.0
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 01 2005 Oliver Falk <oliver@linux-kernel.at> - 1.11.1-10
|
|
|
|
|
|
|
|
- Added dist macro to the release
|
|
|
|
|
|
|
|
- Small spec beautifying
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 30 2005 Michael Schwendt <mschwendt@users.sf.net> 1.11.1-9
|
|
|
|
* Thu Jun 30 2005 Michael Schwendt <mschwendt@users.sf.net> 1.11.1-9
|
|
|
|
- Set CFLAGS the proper way
|
|
|
|
- Set CFLAGS the proper way
|
|
|
|
|
|
|
|
|
|
|
|