2004-09-09 15:18:48 +00:00
|
|
|
|
Summary: A shell similar to ksh, but with improvements.
|
|
|
|
|
Name: zsh
|
2004-09-09 15:19:18 +00:00
|
|
|
|
Version: 4.0.2
|
|
|
|
|
Release: 1
|
|
|
|
|
License: BSD
|
2004-09-09 15:18:48 +00:00
|
|
|
|
Group: System Environment/Shells
|
2004-09-09 15:19:18 +00:00
|
|
|
|
Source0: ftp://ftp.zsh.org/pub/zsh-%{version}.tar.bz2
|
2004-09-09 15:18:48 +00:00
|
|
|
|
Source1: zlogin.rhs
|
|
|
|
|
Source2: zlogout.rhs
|
|
|
|
|
Source3: zprofile.rhs
|
|
|
|
|
Source4: zshrc.rhs
|
|
|
|
|
Source5: zshenv.rhs
|
|
|
|
|
Prereq: fileutils grep /sbin/install-info
|
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
2004-09-09 15:19:18 +00:00
|
|
|
|
Requires: libcap
|
|
|
|
|
BuildRequires: libtermcap-devel libcap-devel
|
2004-09-09 15:18:48 +00:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The zsh shell is a command interpreter usable as an interactive login
|
|
|
|
|
shell and as a shell script command processor. Zsh resembles the ksh
|
|
|
|
|
shell (the Korn shell), but includes many enhancements. Zsh supports
|
|
|
|
|
command line editing, built-in spelling correction, programmable
|
|
|
|
|
command completion, shell functions (with autoloading), a history
|
|
|
|
|
mechanism and more.
|
|
|
|
|
|
|
|
|
|
Install the zsh package if you'd like to try out a different shell.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
autoconf
|
|
|
|
|
%configure --bindir=/bin --enable-etcdir=/etc
|
|
|
|
|
|
2004-09-09 15:18:52 +00:00
|
|
|
|
# gawk exits 1 on ia64 for no apparent reason
|
|
|
|
|
make || make
|
2004-09-09 15:19:18 +00:00
|
|
|
|
# Run the testsuite
|
|
|
|
|
make test
|
2004-09-09 15:18:48 +00:00
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc
|
2004-09-09 15:19:18 +00:00
|
|
|
|
%makeinstall install.info bindir=$RPM_BUILD_ROOT/bin \
|
|
|
|
|
fndir=$RPM_BUILD_ROOT/%{_datadir}/zsh/%{version}/functions \
|
|
|
|
|
sitefndir=$RPM_BUILD_ROOT/%{_datadir}/zsh/site-functions
|
2004-09-09 15:18:48 +00:00
|
|
|
|
|
|
|
|
|
chmod 755 ${RPM_BUILD_ROOT}/bin/zsh
|
2004-09-09 15:19:18 +00:00
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
2004-09-09 15:18:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for I in zshrc zlogin zlogout zshenv zprofile; do
|
|
|
|
|
cp $RPM_SOURCE_DIR/${I}.rhs ${RPM_BUILD_ROOT}/etc/$I
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
if [ ! -f /etc/shells ] ; then
|
|
|
|
|
echo "/bin/zsh" > /etc/shells
|
|
|
|
|
else
|
2004-09-09 15:19:09 +00:00
|
|
|
|
! grep -q /bin/zsh /etc/shells && echo "/bin/zsh" >> /etc/shells
|
2004-09-09 15:18:48 +00:00
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
/sbin/install-info %{_infodir}/zsh.info.gz %{_infodir}/dir \
|
|
|
|
|
--entry="* zsh: (zsh). An enhanced bourne shell."
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
if [ "$1" = 0 ] ; then
|
|
|
|
|
/sbin/install-info --delete %{_infodir}/zsh.info.gz %{_infodir}/dir \
|
|
|
|
|
--entry="* zsh: (zsh). An enhanced bourne shell."
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
if [ "$1" = 0 ] ; then
|
|
|
|
|
if [ -f /etc/shells ] ; then
|
|
|
|
|
TmpFile=`/bin/mktemp /tmp/.zshrpmXXXXXX`
|
|
|
|
|
grep -v '^/bin/zsh$' /etc/shells > $TmpFile
|
|
|
|
|
cp -f $TmpFile /etc/shells
|
|
|
|
|
rm -f $TmpFile
|
|
|
|
|
chmod 644 /etc/shells
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
2004-09-09 15:19:18 +00:00
|
|
|
|
%doc README LICENCE Etc/BUGS Etc/CONTRIBUTORS Etc/FAQ Etc/FEATURES Etc/MACHINES
|
|
|
|
|
%doc Etc/NEWS Etc/zsh-development-guide Etc/completion-style-guide
|
|
|
|
|
/bin/zsh*
|
2004-09-09 15:18:48 +00:00
|
|
|
|
%{_mandir}/*/*
|
|
|
|
|
%{_infodir}/*
|
2004-09-09 15:19:18 +00:00
|
|
|
|
%{_datadir}/zsh
|
|
|
|
|
/usr/lib/zsh
|
2004-09-09 15:19:09 +00:00
|
|
|
|
%config(noreplace) /etc/*
|
2004-09-09 15:18:48 +00:00
|
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 15:19:18 +00:00
|
|
|
|
* Tue Jun 26 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- 4.0.2
|
|
|
|
|
- Run the testsuite during build
|
|
|
|
|
|
|
|
|
|
* Wed Jun 20 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- Add libtermcap-devel and libcap-devel to buildrequires
|
|
|
|
|
|
|
|
|
|
* Fri Jun 1 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- 4.0.1
|
|
|
|
|
|
|
|
|
|
* Thu May 17 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- 4.0.1pre4
|
|
|
|
|
- zsh is now available in bz2 - use it
|
|
|
|
|
|
|
|
|
|
* Mon Apr 9 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- 4.0.1pre3
|
|
|
|
|
- remove the dir file from the info directory
|
|
|
|
|
|
|
|
|
|
* Wed Mar 21 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- Remove contents from /etc/zshenv file - no reason to duplicate things
|
|
|
|
|
from /etc/profile, which is sourced from /etc/zprofile (#32478)
|
|
|
|
|
|
|
|
|
|
* Thu Mar 15 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- 4.0.1pre2
|
|
|
|
|
- remove some obsolete code in /etc/zprofile
|
|
|
|
|
|
2004-09-09 15:19:09 +00:00
|
|
|
|
* Tue Feb 27 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- noreplace config files.
|
|
|
|
|
|
|
|
|
|
* Thu Feb 15 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- Handle RLIMIT_LOCKS in 2.4 (#27834 - patch from H.J. Lu)
|
|
|
|
|
|
|
|
|
|
* Mon Jan 08 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- rebuild to fix #23568 (empty signal list)
|
|
|
|
|
|
|
|
|
|
* Tue Nov 28 2000 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- fix the post script, so we only have only line for zsh
|
|
|
|
|
and can remove the trigger
|
|
|
|
|
- get rid of some instances of "/usr/local/bin/zsh"
|
|
|
|
|
|
2004-09-09 15:18:52 +00:00
|
|
|
|
* Mon Nov 20 2000 Bill Nottingham <notting@redhat.com>
|
|
|
|
|
- fix ia64 build
|
|
|
|
|
|
2004-09-09 15:18:48 +00:00
|
|
|
|
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jul 02 2000 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 06 2000 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- 3.0.8
|
|
|
|
|
- use %%configure and %%makeinstall
|
|
|
|
|
- updated URL
|
|
|
|
|
- disable old patches
|
|
|
|
|
- add better patch for texi source
|
|
|
|
|
- use %%{_mandir} and %%{_infodir}
|
|
|
|
|
- use %%{_tmppath}
|
|
|
|
|
|
|
|
|
|
* Tue May 02 2000 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- patched to recognize export in .zshrc (bug #11169)
|
|
|
|
|
|
|
|
|
|
* Tue Mar 7 2000 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- rebuild for sparc baud rates > 38400.
|
|
|
|
|
|
|
|
|
|
* Fri Mar 03 2000 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- fix postun script so that we don't remove ourselves on every update
|
|
|
|
|
doh...
|
|
|
|
|
- add a trigger to fix old versions of the package
|
|
|
|
|
|
|
|
|
|
* Mon Jan 31 2000 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- rebuild to fix dependencies
|
|
|
|
|
|
|
|
|
|
* Thu Jan 13 2000 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- update to 3.0.7.
|
|
|
|
|
- source /etc/profile so that USER gets set correctly (#5655).
|
|
|
|
|
|
|
|
|
|
* Fri Sep 24 1999 Michael K. Johnson <johnsonm@redhat.com>
|
|
|
|
|
- source /etc/profile.d/*.sh in zprofile
|
|
|
|
|
|
|
|
|
|
* Tue Sep 07 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- fix zshenv and zprofile scripts - foxed versions from HJLu.
|
|
|
|
|
|
|
|
|
|
* Thu Jul 29 1999 Bill Nottingham <notting@redhat.com>
|
|
|
|
|
- clean up init files some. (#4055)
|
|
|
|
|
|
|
|
|
|
* Tue May 18 1999 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- Make sure that env variable TmpFile is evaluated. (#2898)
|
|
|
|
|
|
|
|
|
|
* Sun May 9 1999 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- fix select timeval initialization (#2688).
|
|
|
|
|
|
|
|
|
|
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- auto rebuild in the new build environment (release 10)
|
|
|
|
|
- fix the texi source
|
|
|
|
|
- patch to detect & link against nsl
|
|
|
|
|
|
|
|
|
|
* Wed Mar 10 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- use mktemp to handle temporary files.
|
|
|
|
|
|
|
|
|
|
* Thu Feb 11 1999 Michael Maher <mike@redhat.com>
|
|
|
|
|
- fixed bug #365
|
|
|
|
|
|
|
|
|
|
* Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- build for glibc 2.1
|
|
|
|
|
|
|
|
|
|
* Thu Sep 10 1998 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- compile for 5.2
|
|
|
|
|
|
|
|
|
|
* Sat Jun 06 1998 Prospector System <bugs@redhat.com>
|
|
|
|
|
- translations modified for de
|
|
|
|
|
|
|
|
|
|
* Sat Jun 6 1998 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- Eliminate incorrect info page removal.
|
|
|
|
|
|
|
|
|
|
* Fri May 08 1998 Prospector System <bugs@redhat.com>
|
|
|
|
|
- translations modified for de, fr, tr
|
|
|
|
|
|
|
|
|
|
* Sat Apr 11 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- manhattan build
|
|
|
|
|
- moved profile.d handling from zshrc to zprofile
|
|
|
|
|
|
|
|
|
|
* Wed Oct 21 1997 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- Upgraded to 3.0.5
|
|
|
|
|
- Install-info handling
|
|
|
|
|
|
|
|
|
|
* Thu Jul 31 1997 Erik Troan <ewt@redhat.com>
|
|
|
|
|
- built against glibc
|
|
|
|
|
|
|
|
|
|
* Thu Apr 10 1997 Michael Fulbright <msf@redhat.com>
|
|
|
|
|
- Upgraded to 3.0.2
|
|
|
|
|
- Added 'reasonable' default startup files in /etc
|