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