|
Oliver Falk |
c67d05 |
Summary: A friendly interactive shell
|
|
Oliver Falk |
c67d05 |
Name: fish
|
|
Oliver Falk |
79cd42 |
|
|
Axel Liljencrantz |
d90038 |
Version: 1.21.10
|
|
Axel Liljencrantz |
d90038 |
Release: 0%{?dist}
|
|
Oliver Falk |
79cd42 |
|
|
Oliver Falk |
c67d05 |
License: GPL
|
|
Oliver Falk |
c67d05 |
Group: System Environment/Shells
|
|
Oliver Falk |
c67d05 |
URL: http://roo.no-ip.org/fish/
|
|
Oliver Falk |
79cd42 |
|
|
Oliver Falk |
c67d05 |
Source0: http://roo.no-ip.org/%{name}/files/%{version}/%{name}-%{version}.tar.bz2
|
|
Oliver Falk |
79cd42 |
|
|
Oliver Falk |
c67d05 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Axel Liljencrantz |
d90038 |
BuildRequires: ncurses-devel gettext groff
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
# Locate correct build time-dependencies for providing X headers
|
|
Axel Liljencrantz |
d90038 |
%if "%fedora" >= "5"
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
# Modern Fedora version, has modular X.org
|
|
Axel Liljencrantz |
d90038 |
BuildRequires: xorg-x11-proto-devel libX11-devel libXt-devel
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
%endif
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
%if "%fedora" < "5"
|
|
Axel Liljencrantz |
d90038 |
%if "%fedora" >= "3"
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
# Semi-old Fedora version, has non-modular X.org
|
|
Axel Liljencrantz |
d90038 |
BuildRequires: xorg-x11-devel
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
%endif
|
|
Axel Liljencrantz |
d90038 |
%endif
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
%if 0%{?fedora}
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
# Ancient Fedora version, has XFree86
|
|
Axel Liljencrantz |
d90038 |
BuildRequires: XFree86-devel
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
%else
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
# This is not a Fedora system, try guessing BuildRequires by
|
|
Axel Liljencrantz |
d90038 |
# looking at the directory structure
|
|
Axel Liljencrantz |
d90038 |
%define xinclude /usr%(if [ -d /usr/X11R6/include ]; then echo /X11R6; fi)/include
|
|
Axel Liljencrantz |
d90038 |
BuildRequires: %{xinclude}/X11/StringDefs.h, %{xinclude}/X11/Xlib.h
|
|
Axel Liljencrantz |
d90038 |
BuildRequires: %{xinclude}/X11/Intrinsic.h, %{xinclude}/X11/Xatom.h
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
%endif
|
|
Axel Liljencrantz |
d90038 |
|
|
Oliver Falk |
06634b |
|
|
Oliver Falk |
06634b |
%description
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
fish is a shell geared towards interactive use. Its features are
|
|
Axel Liljencrantz |
d90038 |
focused on user friendliness and discoverability. The language syntax
|
|
Oliver Falk |
06634b |
is simple but incompatible with other shell languages.
|
|
Oliver Falk |
06634b |
|
|
Axel Liljencrantz |
d90038 |
|
|
Oliver Falk |
06634b |
%prep
|
|
Oliver Falk |
06634b |
%setup -q
|
|
Oliver Falk |
06634b |
|
|
Oliver Falk |
06634b |
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
%build
|
|
Axel Liljencrantz |
d90038 |
# The docdir argument is to make the name of the cosumantation
|
|
Axel Liljencrantz |
d90038 |
# directory 'fish-VERSION', instead of the default, which is simply
|
|
Axel Liljencrantz |
d90038 |
# 'fish'.
|
|
Oliver Falk |
06634b |
%configure docdir=%_datadir/doc/%{name}-%{version}
|
|
Oliver Falk |
06634b |
make %{?_smp_mflags}
|
|
Oliver Falk |
06634b |
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
|
|
Oliver Falk |
06634b |
%install
|
|
Oliver Falk |
06634b |
rm -rf $RPM_BUILD_ROOT
|
|
Oliver Falk |
06634b |
make install DESTDIR="$RPM_BUILD_ROOT"
|
|
Oliver Falk |
06634b |
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
|
|
Oliver Falk |
1cf29e |
|
|
Oliver Falk |
06634b |
%clean
|
|
Oliver Falk |
06634b |
rm -rf $RPM_BUILD_ROOT
|
|
Oliver Falk |
06634b |
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
|
|
Oliver Falk |
06634b |
%post
|
|
Axel Liljencrantz |
d90038 |
# Add fish to the list of allowed shells in /etc/shells
|
|
Oliver Falk |
06634b |
if ! grep %_bindir/fish %_sysconfdir/shells >/dev/null; then
|
|
Oliver Falk |
06634b |
echo %_bindir/fish >>%_sysconfdir/shells
|
|
Oliver Falk |
06634b |
fi
|
|
Oliver Falk |
06634b |
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
|
|
Oliver Falk |
06634b |
%postun
|
|
Axel Liljencrantz |
d90038 |
# Remove fish from the list of allowed shells in /etc/shells
|
|
Oliver Falk |
06634b |
if [ "$1" = 0 ]; then
|
|
Oliver Falk |
06634b |
grep -v %_bindir/fish %_sysconfdir/shells >%_sysconfdir/fish.tmp
|
|
Oliver Falk |
06634b |
mv %_sysconfdir/fish.tmp %_sysconfdir/shells
|
|
Oliver Falk |
06634b |
fi
|
|
Oliver Falk |
06634b |
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
%files
|
|
Oliver Falk |
06634b |
%defattr(-,root,root,-)
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
# The documentation directory
|
|
Oliver Falk |
06634b |
%doc %_datadir/doc/%{name}-%{version}
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
# man files
|
|
Oliver Falk |
06634b |
%_mandir/man1/fish.1*
|
|
Oliver Falk |
06634b |
%_mandir/man1/xsel.1x*
|
|
Oliver Falk |
06634b |
%_mandir/man1/mimedb.1*
|
|
Oliver Falk |
06634b |
%_mandir/man1/set_color.1*
|
|
Oliver Falk |
06634b |
%_mandir/man1/count.1*
|
|
Axel Liljencrantz |
d90038 |
%_mandir/man1/fishd.1*
|
|
Axel Liljencrantz |
d90038 |
%_mandir/man1/fish_pager.1*
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
# The program binaries
|
|
Oliver Falk |
06634b |
%attr(0755,root,root) %_bindir/fish
|
|
Oliver Falk |
fda8b7 |
%attr(0755,root,root) %_bindir/fishd
|
|
Oliver Falk |
fda8b7 |
%attr(0755,root,root) %_bindir/fish_pager
|
|
Oliver Falk |
06634b |
%attr(0755,root,root) %_bindir/xsel
|
|
Oliver Falk |
06634b |
%attr(0755,root,root) %_bindir/set_color
|
|
Oliver Falk |
06634b |
%attr(0755,root,root) %_bindir/mimedb
|
|
Oliver Falk |
06634b |
%attr(0755,root,root) %_bindir/count
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
# Configuration files
|
|
Oliver Falk |
06634b |
%config %_sysconfdir/fish
|
|
Oliver Falk |
06634b |
%config %_sysconfdir/fish_inputrc
|
|
Oliver Falk |
06634b |
%dir %_sysconfdir/fish.d
|
|
Oliver Falk |
06634b |
%config %_sysconfdir/fish.d/fish_*.fish
|
|
Oliver Falk |
06634b |
|
|
Axel Liljencrantz |
d90038 |
# Non-configuration initialization files
|
|
Axel Liljencrantz |
d90038 |
%dir %_datadir/fish
|
|
Axel Liljencrantz |
d90038 |
%_datadir/fish/fish
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
# Program specific tab-completions
|
|
Axel Liljencrantz |
d90038 |
%dir %_datadir/fish/completions
|
|
Axel Liljencrantz |
d90038 |
%_datadir/fish/completions/*.fish
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
# Dynamically loaded shellscript functions
|
|
Axel Liljencrantz |
d90038 |
%dir %_datadir/fish/functions
|
|
Axel Liljencrantz |
d90038 |
%_datadir/fish/functions/*.fish
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
# Translations
|
|
Axel Liljencrantz |
d90038 |
%_datadir/locale/*/LC_MESSAGES/fish.mo
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
|
|
Oliver Falk |
06634b |
%changelog
|
|
Axel Liljencrantz |
d90038 |
* Tue Aug 1 2006 Axel Liljencrantz<axel@liljencrantz.se> 1.21.10-1
|
|
Axel Liljencrantz |
d90038 |
- Improved the dependency check for X headers. Thank you to Michael Schwendt for pointers on how to do this
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
* Mon Jul 31 2006 Axel Liljencrantz<axel@liljencrantz.se> 1.21.10-1
|
|
Axel Liljencrantz |
d90038 |
- Fixed spelling and punctuation as a per patch from Paul Howarth
|
|
Axel Liljencrantz |
d90038 |
- Fixed dependencies as per patch from Paul Howarth
|
|
Oliver Falk |
1cf29e |
|
|
Axel Liljencrantz |
d90038 |
* Tue Nov 29 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.17.0-0
|
|
Axel Liljencrantz |
d90038 |
- 1.17.0
|
|
Oliver Falk |
f975ad |
|
|
Oliver Falk |
fda8b7 |
* Sat Sep 24 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.14.0-0
|
|
Oliver Falk |
fda8b7 |
- 1.14.0
|
|
Oliver Falk |
fda8b7 |
|
|
Oliver Falk |
fda8b7 |
* Mon Sep 12 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.4-0
|
|
Oliver Falk |
fda8b7 |
- 1.13.4
|
|
Oliver Falk |
fda8b7 |
|
|
Oliver Falk |
fda8b7 |
* Wed Sep 07 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.3-0
|
|
Oliver Falk |
fda8b7 |
- 1.13.3
|
|
Oliver Falk |
fda8b7 |
|
|
Oliver Falk |
fda8b7 |
* Tue Sep 06 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.2-0
|
|
Oliver Falk |
fda8b7 |
- 1.13.2
|
|
Oliver Falk |
fda8b7 |
|
|
Oliver Falk |
fda8b7 |
* Fri Aug 30 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.1-0
|
|
Oliver Falk |
fda8b7 |
- 1.13.1
|
|
Oliver Falk |
fda8b7 |
|
|
Oliver Falk |
fda8b7 |
* Sun Aug 28 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.0-0
|
|
Oliver Falk |
fda8b7 |
- 1.13.0
|
|
Oliver Falk |
fda8b7 |
|
|
Oliver Falk |
fda8b7 |
* Sat Aug 13 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.0-0
|
|
Oliver Falk |
fda8b7 |
- Add completions subdirectory
|
|
Oliver Falk |
fda8b7 |
|
|
Oliver Falk |
fda8b7 |
* Thu Jul 28 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.12.1-0
|
|
Oliver Falk |
fda8b7 |
- 1.12.1
|
|
Oliver Falk |
fda8b7 |
|
|
Oliver Falk |
c67d05 |
* Fri Jul 15 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.12.0-1
|
|
Oliver Falk |
c67d05 |
- 1.12.0
|
|
Oliver Falk |
c67d05 |
|
|
Oliver Falk |
c67d05 |
* Thu Jun 30 2005 Michael Schwendt <mschwendt@users.sf.net> 1.11.1-9
|
|
Oliver Falk |
06634b |
- Set CFLAGS the proper way
|
|
Oliver Falk |
06634b |
|
|
Oliver Falk |
c67d05 |
* Thu Jun 30 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.11.1-8
|
|
Oliver Falk |
06634b |
- Fix revision number in changelog
|
|
Oliver Falk |
06634b |
|
|
Oliver Falk |
c67d05 |
* Wed Jun 29 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.11.1-7
|
|
Oliver Falk |
06634b |
- Send post-script output to /dev/null
|
|
Oliver Falk |
06634b |
|
|
Oliver Falk |
c67d05 |
* Wed Jun 29 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.11.1-6
|
|
Oliver Falk |
06634b |
- Add changelog section to spec file
|
|
Oliver Falk |
06634b |
- Add macros to source tags
|
|
Oliver Falk |
06634b |
- Add smp_mflags to 'make all'
|
|
Oliver Falk |
06634b |
- Fix typo in post install scriptlet test
|
|
Oliver Falk |
06634b |
- Set CFLAGS from spec file
|