|
Oliver Falk |
c67d05 |
Summary: A friendly interactive shell
|
|
Oliver Falk |
c67d05 |
Name: fish
|
|
Oliver Falk |
79cd42 |
|
|
Oliver Falk |
812aec |
Version: 1.22.3
|
|
Oliver Falk |
adeb64 |
Release: 4%{?dist}
|
|
Oliver Falk |
79cd42 |
|
|
Oliver Falk |
c67d05 |
License: GPL
|
|
Oliver Falk |
c67d05 |
Group: System Environment/Shells
|
|
Oliver Falk |
adeb64 |
URL: http://fishshell.org/
|
|
Oliver Falk |
79cd42 |
|
|
Oliver Falk |
c67d05 |
Source0: http://roo.no-ip.org/%{name}/files/%{version}/%{name}-%{version}.tar.bz2
|
|
Oliver Falk |
7a061a |
Patch0: fish-1.22.3-openfix.patch
|
|
Oliver Falk |
79cd42 |
|
|
Oliver Falk |
c67d05 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Oliver Falk |
812aec |
BuildRequires: ncurses-devel gettext groff doxygen
|
|
Oliver Falk |
57a07f |
BuildRequires: autoconf
|
|
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 |
9d3819 |
# Modern Fedora version, has modular X.org
|
|
Axel Liljencrantz |
71dad7 |
BuildRequires: xorg-x11-proto-devel libX11-devel libXt-devel libXext-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 |
71dad7 |
%if 0%{?fedora}
|
|
Axel Liljencrantz |
20b967 |
%if "%fedora" < "3"
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
d90038 |
# Ancient Fedora version, has XFree86
|
|
Axel Liljencrantz |
d90038 |
BuildRequires: XFree86-devel
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
20b967 |
%endif
|
|
Axel Liljencrantz |
d90038 |
%else
|
|
Axel Liljencrantz |
d90038 |
|
|
Axel Liljencrantz |
71dad7 |
# The %fedora variable has not been correctly defined, or this is is
|
|
Axel Liljencrantz |
71dad7 |
# not a Fedora system, try guessing BuildRequires by looking at the
|
|
Axel Liljencrantz |
71dad7 |
# 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 |
7a061a |
%patch0 -p1 -b .openfix
|
|
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 |
71dad7 |
# Find translation files
|
|
Axel Liljencrantz |
71dad7 |
%find_lang %{name}.\*
|
|
Axel Liljencrantz |
d90038 |
|
|
Oliver Falk |
812aec |
# In case...
|
|
Oliver Falk |
812aec |
mv $RPM_BUILD_ROOT%_datadir/fish/man/*.1 $RPM_BUILD_ROOT%_mandir/man1/
|
|
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 |
71dad7 |
%files -f %{name}.\*.lang
|
|
Axel Liljencrantz |
71dad7 |
|
|
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 |
812aec |
%_mandir/man1/*.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 |
812aec |
#%config %_sysconfdir/fish_inputrc
|
|
Oliver Falk |
812aec |
#%dir %_sysconfdir/fish.d
|
|
Oliver Falk |
812aec |
#%config %_sysconfdir/fish.d/fish_*.fish
|
|
Oliver Falk |
06634b |
|
|
Axel Liljencrantz |
d90038 |
# Non-configuration initialization files
|
|
Axel Liljencrantz |
d90038 |
%dir %_datadir/fish
|
|
Oliver Falk |
812aec |
%_datadir/fish/config*.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 |
|
|
Oliver Falk |
06634b |
%changelog
|
|
Oliver Falk |
adeb64 |
* Wed Oct 31 2007 Oliver Falk <oliver@linux-kernel.at> - 1.22.3-4
|
|
Oliver Falk |
adeb64 |
- Update URL; Fixes bz#359451
|
|
Oliver Falk |
adeb64 |
|
|
Oliver Falk |
7a061a |
* Thu Aug 16 2007 Oliver Falk <oliver@linux-kernel.at> - 1.22.3-3
|
|
Oliver Falk |
7a061a |
- Workaround glibc's open check
|
|
Oliver Falk |
7a061a |
- Problem reported upstream; Should be fixed there
|
|
Oliver Falk |
7a061a |
|
|
Oliver Falk |
57a07f |
* Tue Aug 07 2007 Oliver Falk <oliver@linux-kernel.at> - 1.22.3-2
|
|
Oliver Falk |
57a07f |
- Fix BR autoconf
|
|
Oliver Falk |
57a07f |
|
|
Oliver Falk |
812aec |
* Tue Aug 07 2007 Oliver Falk <oliver@linux-kernel.at> - 1.22.3-1
|
|
Oliver Falk |
812aec |
- Update; Bug #236868
|
|
Oliver Falk |
812aec |
- Add missing doxygen BR
|
|
Oliver Falk |
812aec |
|
|
Axel Liljencrantz |
c51739 |
* Fri Aug 4 2006 Axel Liljencrantz<axel@liljencrantz.se> 1.21.10-4
|
|
Axel Liljencrantz |
c51739 |
- Add better translation finding code from fedora spec to main spec. Thank you to Michael Schwendt.
|
|
Axel Liljencrantz |
c51739 |
- Add missing dependency libXext-devel.
|
|
Axel Liljencrantz |
c51739 |
- Remove one nesting level from dependency checking code.
|
|
Axel Liljencrantz |
c51739 |
|
|
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
|