c67d05e
Summary:                A friendly interactive shell
c67d05e
Name:                   fish
79cd42b
7ba3ebf
Version:                1.23.0
51b9878
Release:                2%{?dist}
79cd42b
c67d05e
License:                GPL
c67d05e
Group:                  System Environment/Shells
9c2e0ba
URL:                    http://fishshell.org/
79cd42b
c67d05e
Source0:                http://roo.no-ip.org/%{name}/files/%{version}/%{name}-%{version}.tar.bz2
79cd42b
c67d05e
BuildRoot:              %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
812aec5
BuildRequires:          ncurses-devel gettext groff doxygen
57a07f5
BuildRequires:          autoconf
Axel Liljencrantz d900383
Axel Liljencrantz d900383
Axel Liljencrantz d900383
# Locate correct build time-dependencies for providing X headers
51b9878
%if 0%{?fedora} >= 5
Axel Liljencrantz d900383
Axel Liljencrantz 9d3819c
# Modern Fedora version, has modular X.org
Axel Liljencrantz 71dad78
BuildRequires:          xorg-x11-proto-devel libX11-devel libXt-devel libXext-devel
Axel Liljencrantz d900383
Axel Liljencrantz d900383
%endif
Axel Liljencrantz d900383
51b9878
%if 0%{?fedora} < 5
51b9878
%if 0%{?fedora} >= 3
Axel Liljencrantz d900383
Axel Liljencrantz d900383
# Semi-old Fedora version, has non-modular X.org
Axel Liljencrantz d900383
BuildRequires:          xorg-x11-devel
Axel Liljencrantz d900383
Axel Liljencrantz d900383
%endif
Axel Liljencrantz d900383
%endif
Axel Liljencrantz d900383
Axel Liljencrantz 71dad78
%if 0%{?fedora}
51b9878
%if 0%{?fedora} < 3
Axel Liljencrantz d900383
Axel Liljencrantz d900383
# Ancient Fedora version, has XFree86
Axel Liljencrantz d900383
BuildRequires:          XFree86-devel
Axel Liljencrantz d900383
Axel Liljencrantz 20b9672
%endif
Axel Liljencrantz d900383
%else
Axel Liljencrantz d900383
Axel Liljencrantz 71dad78
# The %fedora variable has not been correctly defined, or this is is
Axel Liljencrantz 71dad78
# not a Fedora system, try guessing BuildRequires by looking at the
Axel Liljencrantz 71dad78
# directory structure
Axel Liljencrantz d900383
%define xinclude /usr%(if [ -d /usr/X11R6/include ]; then echo /X11R6; fi)/include
Axel Liljencrantz d900383
BuildRequires:          %{xinclude}/X11/StringDefs.h, %{xinclude}/X11/Xlib.h
Axel Liljencrantz d900383
BuildRequires:          %{xinclude}/X11/Intrinsic.h,  %{xinclude}/X11/Xatom.h
Axel Liljencrantz d900383
Axel Liljencrantz d900383
%endif
Axel Liljencrantz d900383
06634b2
06634b2
%description 
Axel Liljencrantz d900383
Axel Liljencrantz d900383
fish is a shell geared towards interactive use. Its features are 
Axel Liljencrantz d900383
focused on user friendliness and discoverability. The language syntax 
06634b2
is simple but incompatible with other shell languages.
06634b2
Axel Liljencrantz d900383
06634b2
%prep
06634b2
%setup -q
Axel Liljencrantz d900383
Axel Liljencrantz d900383
Axel Liljencrantz d900383
%build
Axel Liljencrantz d900383
# The docdir argument is to make the name of the cosumantation
Axel Liljencrantz d900383
# directory 'fish-VERSION', instead of the default, which is simply
Axel Liljencrantz d900383
# 'fish'.
06634b2
%configure docdir=%_datadir/doc/%{name}-%{version}
06634b2
make %{?_smp_mflags}
06634b2
Axel Liljencrantz d900383
Axel Liljencrantz d900383
Axel Liljencrantz d900383
06634b2
%install
06634b2
rm -rf $RPM_BUILD_ROOT
06634b2
make install DESTDIR="$RPM_BUILD_ROOT" 
06634b2
Axel Liljencrantz 71dad78
# Find translation files
Axel Liljencrantz 71dad78
%find_lang %{name}.\*
Axel Liljencrantz d900383
812aec5
# In case...
812aec5
mv $RPM_BUILD_ROOT%_datadir/fish/man/*.1 $RPM_BUILD_ROOT%_mandir/man1/
Axel Liljencrantz d900383
1cf29eb
06634b2
%clean
06634b2
rm -rf $RPM_BUILD_ROOT
06634b2
Axel Liljencrantz d900383
Axel Liljencrantz d900383
Axel Liljencrantz d900383
06634b2
%post
Axel Liljencrantz d900383
# Add fish to the list of allowed shells in /etc/shells
06634b2
if ! grep %_bindir/fish %_sysconfdir/shells >/dev/null; then
06634b2
	echo %_bindir/fish >>%_sysconfdir/shells
06634b2
fi
06634b2
Axel Liljencrantz d900383
Axel Liljencrantz d900383
Axel Liljencrantz d900383
06634b2
%postun
Axel Liljencrantz d900383
# Remove fish from the list of allowed shells in /etc/shells
06634b2
if [ "$1" = 0 ]; then
06634b2
	grep -v %_bindir/fish %_sysconfdir/shells >%_sysconfdir/fish.tmp
06634b2
	mv %_sysconfdir/fish.tmp %_sysconfdir/shells
06634b2
fi
06634b2
Axel Liljencrantz d900383
Axel Liljencrantz d900383
Axel Liljencrantz d900383
Axel Liljencrantz 71dad78
%files -f %{name}.\*.lang
Axel Liljencrantz 71dad78
06634b2
%defattr(-,root,root,-)
Axel Liljencrantz d900383
Axel Liljencrantz d900383
# The documentation directory
06634b2
%doc %_datadir/doc/%{name}-%{version}
Axel Liljencrantz d900383
Axel Liljencrantz d900383
# man files
812aec5
%_mandir/man1/*.1*
7ba3ebf
%exclude %_mandir/man1/count*
7ba3ebf
%exclude %_mandir/man1/alias*
7ba3ebf
%exclude %_mandir/man1/bg*
7ba3ebf
%exclude %_mandir/man1/bind*
7ba3ebf
%exclude %_mandir/man1/break*
7ba3ebf
%exclude %_mandir/man1/builtin*
7ba3ebf
%exclude %_mandir/man1/cd*
7ba3ebf
%exclude %_mandir/man1/command*
7ba3ebf
%exclude %_mandir/man1/complete*
7ba3ebf
%exclude %_mandir/man1/continue*
7ba3ebf
%exclude %_mandir/man1/dirs*
7ba3ebf
%exclude %_mandir/man1/eval*
7ba3ebf
%exclude %_mandir/man1/exec*
7ba3ebf
%exclude %_mandir/man1/exit*
7ba3ebf
%exclude %_mandir/man1/fg*
7ba3ebf
%exclude %_mandir/man1/help*
7ba3ebf
%exclude %_mandir/man1/jobs*
7ba3ebf
%exclude %_mandir/man1/popd*
7ba3ebf
%exclude %_mandir/man1/pushd*
7ba3ebf
%exclude %_mandir/man1/read*
7ba3ebf
%exclude %_mandir/man1/return*
7ba3ebf
%exclude %_mandir/man1/set*
7ba3ebf
%exclude %_mandir/man1/source*
7ba3ebf
%exclude %_mandir/man1/trap*
7ba3ebf
%exclude %_mandir/man1/type*
7ba3ebf
%exclude %_mandir/man1/ulimit*
7ba3ebf
%exclude %_mandir/man1/umask*
Axel Liljencrantz d900383
Axel Liljencrantz d900383
# The program binaries
06634b2
%attr(0755,root,root) %_bindir/fish
fda8b78
%attr(0755,root,root) %_bindir/fishd
fda8b78
%attr(0755,root,root) %_bindir/fish_pager
7ba3ebf
%attr(0755,root,root) %_bindir/fish_indent
06634b2
%attr(0755,root,root) %_bindir/xsel
06634b2
%attr(0755,root,root) %_bindir/set_color
06634b2
%attr(0755,root,root) %_bindir/mimedb
Axel Liljencrantz d900383
Axel Liljencrantz d900383
# Configuration files
06634b2
%config %_sysconfdir/fish
812aec5
#%config %_sysconfdir/fish_inputrc
812aec5
#%dir %_sysconfdir/fish.d
812aec5
#%config %_sysconfdir/fish.d/fish_*.fish
06634b2
Axel Liljencrantz d900383
# Non-configuration initialization files
Axel Liljencrantz d900383
%dir %_datadir/fish
812aec5
%_datadir/fish/config*.fish
Axel Liljencrantz d900383
Axel Liljencrantz d900383
# Program specific tab-completions
Axel Liljencrantz d900383
%dir %_datadir/fish/completions
Axel Liljencrantz d900383
%_datadir/fish/completions/*.fish
Axel Liljencrantz d900383
Axel Liljencrantz d900383
# Dynamically loaded shellscript functions
Axel Liljencrantz d900383
%dir %_datadir/fish/functions
Axel Liljencrantz d900383
%_datadir/fish/functions/*.fish
Axel Liljencrantz d900383
Axel Liljencrantz d900383
06634b2
%changelog
51b9878
* Mon Jul 07 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.23.0-2
51b9878
- fix conditional comparison
51b9878
a6cbcab
* Fri Jun 06 2008 Oliver Falk <oliver@linux-kernel.at>	- 1.23.0-1.1
a6cbcab
- Rebuild
a6cbcab
7ba3ebf
* Mon Jan 14 2008 Oliver Falk <oliver@linux-kernel.at>	- 1.23.0-1
7ba3ebf
- Update to fix #208780
7ba3ebf
- Remove openfix patch, included upstream now
7ba3ebf
159b979
* Wed Oct 31 2007 Oliver Falk <oliver@linux-kernel.at>	- 1.22.3-5
159b979
- Fix glibc's open check, by providing mode, instead of working
159b979
  around...
159b979
9c2e0ba
* Wed Oct 31 2007 Oliver Falk <oliver@linux-kernel.at>	- 1.22.3-4
9c2e0ba
- Update URL; Fixes bz#359451
9c2e0ba
7a061af
* Thu Aug 16 2007 Oliver Falk <oliver@linux-kernel.at>	- 1.22.3-3
7a061af
- Workaround glibc's open check
7a061af
- Problem reported upstream; Should be fixed there
7a061af
57a07f5
* Tue Aug 07 2007 Oliver Falk <oliver@linux-kernel.at>	- 1.22.3-2
57a07f5
- Fix BR autoconf
57a07f5
812aec5
* Tue Aug 07 2007 Oliver Falk <oliver@linux-kernel.at>	- 1.22.3-1
812aec5
- Update; Bug #236868
812aec5
- Add missing doxygen BR
812aec5
Axel Liljencrantz c51739c
* Fri Aug 4 2006 Axel Liljencrantz<axel@liljencrantz.se> 1.21.10-4
Axel Liljencrantz c51739c
- Add better translation finding code from fedora spec to main spec. Thank you to Michael Schwendt.
Axel Liljencrantz c51739c
- Add missing dependency libXext-devel.
Axel Liljencrantz c51739c
- Remove one nesting level from dependency checking code.
Axel Liljencrantz c51739c
Axel Liljencrantz d900383
* Tue Aug 1 2006 Axel Liljencrantz<axel@liljencrantz.se> 1.21.10-1
Axel Liljencrantz d900383
- Improved the dependency check for X headers. Thank you to Michael Schwendt for pointers on how to do this
Axel Liljencrantz d900383
Axel Liljencrantz d900383
* Mon Jul 31 2006 Axel Liljencrantz<axel@liljencrantz.se> 1.21.10-1
Axel Liljencrantz d900383
- Fixed spelling and punctuation as a per patch from Paul Howarth
Axel Liljencrantz d900383
- Fixed dependencies as per patch from Paul Howarth
1cf29eb
Axel Liljencrantz d900383
* Tue Nov 29 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.17.0-0
Axel Liljencrantz d900383
- 1.17.0
f975ad9
fda8b78
* Sat Sep 24 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.14.0-0
fda8b78
- 1.14.0
fda8b78
fda8b78
* Mon Sep 12 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.4-0
fda8b78
- 1.13.4
fda8b78
fda8b78
* Wed Sep 07 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.3-0
fda8b78
- 1.13.3
fda8b78
fda8b78
* Tue Sep 06 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.2-0
fda8b78
- 1.13.2
fda8b78
fda8b78
* Fri Aug 30 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.1-0
fda8b78
- 1.13.1
fda8b78
fda8b78
* Sun Aug 28 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.0-0
fda8b78
- 1.13.0
fda8b78
fda8b78
* Sat Aug 13 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.0-0
fda8b78
- Add completions subdirectory
fda8b78
fda8b78
* Thu Jul 28 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.12.1-0
fda8b78
- 1.12.1
fda8b78
c67d05e
* Fri Jul 15 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.12.0-1
c67d05e
- 1.12.0
c67d05e
c67d05e
* Thu Jun 30 2005 Michael Schwendt <mschwendt@users.sf.net> 1.11.1-9
06634b2
- Set CFLAGS the proper way
06634b2
c67d05e
* Thu Jun 30 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.11.1-8
06634b2
- Fix revision number in changelog
06634b2
c67d05e
* Wed Jun 29 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.11.1-7
06634b2
- Send post-script output to /dev/null
06634b2
c67d05e
* Wed Jun 29 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.11.1-6
06634b2
- Add changelog section to spec file
06634b2
- Add macros to source tags
06634b2
- Add smp_mflags to 'make all'
06634b2
- Fix typo in post install scriptlet test
06634b2
- Set CFLAGS from spec file