2005-09-20 23:26:39 +10:00
Summary : A friendly interactive shell
Name : @PACKAGE_NAME@
Version : @PACKAGE_VERSION@
Release : 0%{?dist}
License : GPL
Group : System Environment/Shells
2006-10-10 01:20:07 +10:00
URL : http://www.fishshell.org
2005-09-20 23:26:39 +10:00
2006-10-10 01:20:07 +10:00
Source0 : http://www.fishshell.org/files/%{version} /%{name} -%{version} .tar.bz2
2005-09-20 23:26:39 +10:00
BuildRoot : %{_tmppath} /%{name} -%{version} -%{release} -root-%(%{__id_u} -n)
2006-08-01 07:29:54 +10:00
BuildRequires : ncurses-devel gettext groff
2006-08-01 23:57:09 +10:00
2006-08-09 21:36:14 +10:00
# Locate correct build time-dependencies for providing X headers
2006-08-01 23:57:09 +10:00
%if "%fedora" >= "5"
2006-08-09 21:36:14 +10:00
# Modern Fedora version, has modular X.org
BuildRequires : xorg-x11-proto-devel libX11-devel libXt-devel libXext-devel
2006-08-01 23:57:09 +10:00
2006-08-09 21:36:14 +10:00
%endif
%if "%fedora" < "5"
%if "%fedora" >= "3"
2006-08-01 23:57:09 +10:00
2006-08-09 21:36:14 +10:00
# Semi-old Fedora version, has non-modular X.org
2006-08-01 23:57:09 +10:00
BuildRequires : xorg-x11-devel
2006-08-09 21:36:14 +10:00
%endif
%endif
%if 0%{?fedora}
%if "%fedora" < "3"
2006-08-01 23:57:09 +10:00
2006-08-09 21:36:14 +10:00
# Ancient Fedora version, has XFree86
2006-08-01 23:57:09 +10:00
BuildRequires : XFree86-devel
2006-08-09 21:36:14 +10:00
%endif
%else
2006-08-01 23:57:09 +10:00
2006-08-09 21:36:14 +10:00
# The %fedora variable has not been correctly defined, or this is 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
2006-03-30 07:33:30 +10:00
BuildRequires : %{xinclude} /X11/StringDefs.h, %{xinclude} /X11/Xlib.h
2006-08-01 23:57:09 +10:00
BuildRequires : %{xinclude} /X11/Intrinsic.h, %{xinclude} /X11/Xatom.h
2006-02-17 20:13:39 +10:00
2006-08-01 23:57:09 +10:00
%endif
2006-02-17 20:13:39 +10:00
2005-09-20 23:26:39 +10:00
%description
2006-02-17 20:13:39 +10:00
2006-08-01 07:29:54 +10:00
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.
2006-02-17 20:13:39 +10:00
2005-09-20 23:26:39 +10:00
%prep
%setup -q
2006-02-17 20:13:39 +10:00
%build
2006-08-09 21:36:14 +10:00
# The docdir argument is to make the name of the cosumantation
# directory 'fish-VERSION', instead of the default, which is simply
# 'fish'.
2005-09-20 23:26:39 +10:00
%configure docdir=%_datadir /doc/%{name} -%{version}
make %{?_smp_mflags}
2006-02-17 20:13:39 +10:00
2005-09-20 23:26:39 +10:00
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=" $RPM_BUILD_ROOT "
2006-08-09 21:36:14 +10:00
# Find translation files
%find_lang %{name} .\*
2006-02-17 20:13:39 +10:00
2005-09-20 23:26:39 +10:00
%clean
rm -rf $RPM_BUILD_ROOT
2006-02-17 20:13:39 +10:00
2005-09-20 23:26:39 +10:00
%post
2006-08-01 23:57:09 +10:00
# Add fish to the list of allowed shells in /etc/shells
2005-09-20 23:26:39 +10:00
if ! grep %_bindir /fish %_sysconfdir /shells >/dev/null; then
echo %_bindir /fish >>%_sysconfdir /shells
fi
2006-02-17 20:13:39 +10:00
2005-09-20 23:26:39 +10:00
%postun
2006-08-01 23:57:09 +10:00
# Remove fish from the list of allowed shells in /etc/shells
2005-09-20 23:26:39 +10:00
if [ " $ 1 " = 0 ]; then
grep -v %_bindir /fish %_sysconfdir /shells >%_sysconfdir /fish.tmp
mv %_sysconfdir /fish.tmp %_sysconfdir /shells
fi
2006-02-17 20:13:39 +10:00
2006-08-09 21:36:14 +10:00
%files -f %{name}.\*.lang
2005-09-20 23:26:39 +10:00
%defattr (-,root,root,-)
2006-02-17 20:13:39 +10:00
2006-08-09 21:36:14 +10:00
# The documentation directory
2005-09-20 23:26:39 +10:00
%doc %_datadir /doc/%{name} -%{version}
2006-02-17 20:13:39 +10:00
2006-08-09 21:36:14 +10:00
# man files
2005-09-20 23:26:39 +10:00
%_mandir /man1/fish.1*
2007-04-22 20:03:12 +10:00
%_mandir /man1/fish_pager.1*
%_mandir /man1/fish_indent.1*
%_mandir /man1/fishd.1*
2005-09-20 23:26:39 +10:00
%_mandir /man1/mimedb.1*
%_mandir /man1/set_color.1*
2007-04-22 20:03:12 +10:00
%_mandir /man1/xsel.1x*
2006-02-17 20:13:39 +10:00
2006-08-09 21:36:14 +10:00
# The program binaries
2005-09-20 23:26:39 +10:00
%attr (0755,root,root) %_bindir /fish
2007-04-22 20:03:12 +10:00
%attr (0755,root,root) %_bindir /fish_indent
2005-09-20 23:26:39 +10:00
%attr (0755,root,root) %_bindir /fish_pager
2007-04-22 20:03:12 +10:00
%attr (0755,root,root) %_bindir /fishd
2005-09-20 23:26:39 +10:00
%attr (0755,root,root) %_bindir /mimedb
2007-04-22 20:03:12 +10:00
%attr (0755,root,root) %_bindir /set_color
%attr (0755,root,root) %_bindir /xsel
2006-02-17 20:13:39 +10:00
2006-08-09 21:36:14 +10:00
# Configuration files
2006-10-19 21:50:23 +10:00
%config %_sysconfdir /fish/config.fish
%dir %_sysconfdir /fish
2006-02-17 20:13:39 +10:00
2006-08-09 21:36:14 +10:00
# Non-configuration initialization files
2006-02-17 20:13:39 +10:00
%dir %_datadir /fish
2006-10-19 21:50:23 +10:00
%_datadir /fish/config.fish
2006-02-17 20:13:39 +10:00
2006-08-09 21:36:14 +10:00
# Program specific tab-completions
2006-02-17 20:13:39 +10:00
%dir %_datadir /fish/completions
%_datadir /fish/completions/*.fish
2006-08-09 21:36:14 +10:00
# Dynamically loaded shellscript functions
2006-02-17 20:13:39 +10:00
%dir %_datadir /fish/functions
%_datadir /fish/functions/*.fish
2006-11-18 02:24:38 +10:00
# Documentation for builtins and shellscript functions
%dir %_datadir /fish/man
%_datadir /fish/man/*.1
2005-09-20 23:26:39 +10:00
2006-02-17 20:13:39 +10:00
2005-09-20 23:26:39 +10:00
%changelog
2007-04-22 20:03:12 +10:00
* Sat Apr 21 2007 Axel Liljencrantz<axel@liljencrantz.se> 1.23.0-0
- Add fish_indent command
2007-02-09 03:00:32 +10:00
* Thu Feb 8 2007 Axel Liljencrantz<axel@liljencrantz.se> 1.22.3-0
- Tell rpm about the help pages in %_datadir /fish/man/
2006-10-19 21:50:23 +10:00
* Sat Oct 14 2006 Axel Liljencrantz<axel@liljencrantz.se> 1.22.0-0
- Update names of various configuration files
2006-08-09 21:36:14 +10:00
* Fri Aug 4 2006 Axel Liljencrantz<axel@liljencrantz.se> 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<axel@liljencrantz.se> 1.21.10-1
- Improved the dependency check for X headers. Thank you to Michael Schwendt for pointers on how to do this
2006-08-01 07:29:54 +10:00
* 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
2005-12-02 01:45:44 +10:00
* Tue Nov 29 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.17.0-0
- 1.17.0
2005-09-25 21:31:34 +10:00
* Sat Sep 24 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.14.0-0
- 1.14.0
2005-09-20 23:26:39 +10:00
* Mon Sep 12 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.4-0
- 1.13.4
* Wed Sep 07 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.3-0
- 1.13.3
* Tue Sep 06 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.2-0
- 1.13.2
* Fri Aug 30 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.1-0
- 1.13.1
* Sun Aug 28 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.0-0
- 1.13.0
* Sat Aug 13 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.0-0
- Add completions subdirectory
* Thu Jul 28 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.12.1-0
- 1.12.1
* Fri Jul 15 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.12.0-1
- 1.12.0
* Thu Jun 30 2005 Michael Schwendt <mschwendt@users.sf.net> 1.11.1-9
- Set CFLAGS the proper way
* Thu Jun 30 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.11.1-8
- Fix revision number in changelog
* Wed Jun 29 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.11.1-7
- Send post-script output to /dev/null
* Wed Jun 29 2005 Axel Liljencrantz <axel@liljencrantz.se> 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