cvsdist 77bdf3a
%define	_bindir	/bin
cvsdist 77bdf3a
cvsdist 77bdf3a
Summary: An enhanced version of csh, the C shell.
cvsdist d6fc228
Name: tcsh
5dd9b97
Version: 6.14
034b1a9
Release: 5.1
cvsdist d6fc228
License: distributable
cvsdist d6fc228
Group: System Environment/Shells
cvsdist d6fc228
Source: ftp://ftp.astron.com/pub/tcsh/tcsh-%{version}.00.tar.gz
5dd9b97
Patch0: tcsh-6.14.00-config.patch
5dd9b97
Patch1: tcsh-6.14.00-closem.patch
5dd9b97
Patch2: tcsh-6.14.00-iconv.patch
e22ce2b
Patch3: tcsh-6.14.00-lsF.patch
edfb6db
Patch4: tcsh-6.14.00-dashn.patch
faf2c83
Patch5: tcsh-6.14.00-read.patch
cvsdist d6fc228
Provides: csh = %{version}
cvsdist d6fc228
Prereq: fileutils, grep
cvsdist d6fc228
URL: http://www.tcsh.org/
cvsdist d6fc228
Buildroot: %{_tmppath}/%{name}-%{version}-root
cvsdist d6fc228
BuildPrereq: groff, libtermcap-devel
cvsdist 77bdf3a
cvsdist 77bdf3a
%description
cvsdist 77bdf3a
Tcsh is an enhanced but completely compatible version of csh, the C
cvsdist 77bdf3a
shell.  Tcsh is a command language interpreter which can be used both
cvsdist 77bdf3a
as an interactive login shell and as a shell script command processor.
cvsdist 77bdf3a
Tcsh includes a command line editor, programmable word completion,
cvsdist 77bdf3a
spelling correction, a history mechanism, job control and a C language
cvsdist 77bdf3a
like syntax.
cvsdist 77bdf3a
cvsdist 77bdf3a
%prep
cvsdist 77bdf3a
%setup -q -n %{name}-%{version}.00
5dd9b97
%patch0 -p1 -b .config
5dd9b97
%patch1 -p1 -b .closem
5dd9b97
%patch2 -p1 -b .iconv
e22ce2b
%patch3 -p1 -b .lsF
edfb6db
%patch4 -p1 -b .dashn
faf2c83
%patch5 -p1 -b .read
cvsdist 12db0dc
cvsdist 602121e
nroff -me eight-bit.me > eight-bit.txt
cvsdist 77bdf3a
cvsdist 602121e
%build
cvsdist a0c3df2
%configure --without-hesiod
cvsdist 602121e
make all
cvsdist 602121e
make -C nls catalogs
cvsdist 77bdf3a
cvsdist 77bdf3a
%install
cvsdist 1a54c1d
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf ${RPM_BUILD_ROOT}
cvsdist 77bdf3a
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 ${RPM_BUILD_ROOT}%{_bindir}
cvsdist 602121e
install -m 755 tcsh ${RPM_BUILD_ROOT}%{_bindir}/tcsh
cvsdist 77bdf3a
install -m 644 tcsh.man ${RPM_BUILD_ROOT}%{_mandir}/man1/tcsh.1
cvsdist 77bdf3a
ln -sf tcsh ${RPM_BUILD_ROOT}%{_bindir}/csh
cvsdist e592de3
ln -sf tcsh.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/csh.1
cvsdist 236b23f
cvsdist 236b23f
while read lang language ; do
cvsdist 602121e
	dest=${RPM_BUILD_ROOT}%{_datadir}/locale/$lang/LC_MESSAGES
cvsdist 602121e
	if test -f tcsh.$language.cat ; then
cvsdist 602121e
		mkdir -p $dest
cvsdist 602121e
		install -m644 tcsh.$language.cat $dest/tcsh
cvsdist 236b23f
		echo "%lang($lang) %{_datadir}/locale/$lang/LC_MESSAGES/tcsh"
cvsdist 602121e
	fi
cvsdist 236b23f
done > tcsh.lang << _EOF
cvsdist 236b23f
de german
cvsdist 236b23f
el greek
cvsdist 236b23f
en C
cvsdist 236b23f
es spanish
cvsdist 236b23f
et et
cvsdist 236b23f
fi finnish
cvsdist 236b23f
fr french
cvsdist 236b23f
it italian
cvsdist 236b23f
ja ja
cvsdist 236b23f
pl pl
cvsdist 236b23f
ru russian
cvsdist 236b23f
uk ukrainian
cvsdist 236b23f
_EOF
cvsdist 77bdf3a
cvsdist 77bdf3a
%clean
cvsdist 1a54c1d
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf ${RPM_BUILD_ROOT}
cvsdist 77bdf3a
cvsdist 77bdf3a
%post
cvsdist 77bdf3a
if [ ! -f /etc/shells ]; then
cvsdist 602121e
	echo "%{_bindir}/tcsh" >> /etc/shells
cvsdist 602121e
	echo "%{_bindir}/csh"  >> /etc/shells
cvsdist 77bdf3a
else
cvsdist 602121e
	grep -q '^%{_bindir}/tcsh$' /etc/shells || \
cvsdist 602121e
	echo "%{_bindir}/tcsh" >> /etc/shells
cvsdist 602121e
	grep -q '^%{_bindir}/csh$'  /etc/shells || \
cvsdist 602121e
	echo "%{_bindir}/csh"  >> /etc/shells
cvsdist 77bdf3a
fi
cvsdist 77bdf3a
cvsdist 77bdf3a
%postun
cvsdist 77bdf3a
if [ ! -x %{_bindir}/tcsh ]; then
cvsdist 602121e
	grep -v '^%{_bindir}/tcsh$'  /etc/shells | \
cvsdist 602121e
	grep -v '^%{_bindir}/csh$' > /etc/shells.rpm
cvsdist 602121e
	cat /etc/shells.rpm > /etc/shells && rm /etc/shells.rpm
cvsdist 77bdf3a
fi
cvsdist 77bdf3a
cvsdist 236b23f
%files -f tcsh.lang
cvsdist 77bdf3a
%defattr(-,root,root)
d7abf47
%doc FAQ Fixes NewThings complete.tcsh eight-bit.txt
cvsdist 77bdf3a
%{_bindir}/tcsh
cvsdist 77bdf3a
%{_bindir}/csh
cvsdist 4583bf4
%{_mandir}/*/*
cvsdist 77bdf3a
cvsdist 77bdf3a
%changelog
034b1a9
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
034b1a9
- rebuilt
034b1a9
e58d747
* Fri Aug  5 2005 Miloslav Trmac <mitr@redhat.com> - 6.14-5
a0c7687
- Fix EOF handling in $< (#165095, patch by s_h_o_@hotmail.co.jp)
faf2c83
edfb6db
* Thu Jul  7 2005 Miloslav Trmac <mitr@redhat.com> - 6.14-3
edfb6db
- Fix -n (#162187)
edfb6db
e22ce2b
* Mon Jun 20 2005 Miloslav Trmac <mitr@redhat.com> - 6.14-2
e22ce2b
- Backport a column width calculation bugfix (#160760)
e22ce2b
5dd9b97
* Fri Mar 25 2005 Miloslav Trmac <mitr@redhat.com> - 6.14-1
5dd9b97
- Update to tcsh-6.14.00
5dd9b97
482603a
* Sat Mar  5 2005 Miloslav Trmac <mitr@redhat.com> - 6.13-13
482603a
- Rebuild with gcc 4
482603a
d7abf47
* Fri Feb 25 2005 Miloslav Trmac <mitr@redhat.com> - 6.13-12
d7abf47
- Don't ship the HTML documentation (generated from the man page, contains
d7abf47
  also a copy of the man page)
d7abf47
59df7f9
* Sun Jan 30 2005 Miloslav Trmac <mitr@redhat.com> - 6.13-11
59df7f9
- Fix the previous patch, handle a missed case (#146330)
59df7f9
28142d0
* Sat Jan 15 2005 Miloslav Trmac <mitr@redhat.com> - 6.13-10
28142d0
- Avoid reusing iconv_catgets' static buffer (#145177, #145195)
28142d0
0a5e852
* Tue Sep 21 2004 Miloslav Trmac <mitr@redhat.com> - 6.13-9
13ebb2e
- Fix invalid argument to xprintf () (#133129)
13ebb2e
a7440c4
* Wed Sep 15 2004 Miloslav Trmac <mitr@redhat.com> - 6.13-8
a7440c4
- Fix $HOSTTYPE and $MACHTYPE for ppc64 and s390x, this time for sure
a7440c4
9bb19f5
* Wed Sep 15 2004 Miloslav Trmac <mitr@redhat.com> - 6.13-7
9bb19f5
- Define $HOSTTYPE and $MACHTYPE for ppc64 and s390 (#115531),
9bb19f5
  I hope that finally covers all architectures.
9bb19f5
28e299e
* Wed Sep 15 2004 Miloslav Trmac <mitr@redhat.com> - 6.13-6
28e299e
- Define $HOSTTYPE and $MACHTYPE also on IA-64 and s390x (#115531)
28e299e
- Don't close sockets to avoid file descriptor conflits with nss_ldap (#112453)
28e299e
ba2aeba
* Tue Sep 14 2004 Miloslav Trmac <mitr@redhat.com> - 6.13-5
ba2aeba
- Fix HTML documentation generation, second attempt (#60664)
ba2aeba
- Set dspmbyte using nl_langinfo(CODESET) if possible, should cover all
ba2aeba
  cases where lang.csh was correctly setting dspmbyte (#89549)
ba2aeba
cvsdist 5095f3e
* Wed Sep  8 2004 Miloslav Trmac <mitr@redhat.com> - 6.13-4
cvsdist 5095f3e
- Remove unneeded patches
cvsdist 5095f3e
cvsdist 3a8b1c0
* Thu Aug 26 2004 Miloslav Trmac <mitr@redhat.com> - 6.13-3
cvsdist 3a8b1c0
- Check for SIGWINCH more often (from tcsh-6.13.01, #130941)
cvsdist 3a8b1c0
cvsdist 12db0dc
* Wed Aug 18 2004 Miloslav Trmac <mitr@redhat.com> - 6.13-2
cvsdist 12db0dc
- Make comparisons for ranges in bracket expressions symmetric (#59493)
cvsdist 12db0dc
- Run perl2html with LC_ALL=C to workaround what seems to be a perl bug
cvsdist 12db0dc
  (#60664)
cvsdist 12db0dc
- Define $HOSTTYPE and $MACHTYPE on x86_64 (#115531)
cvsdist 12db0dc
- Fix setting of O_LARGEFILE (#122558)
cvsdist 12db0dc
cvsdist 236b23f
* Tue Aug 17 2004 Miloslav Trmac <mitr@redhat.com> - 6.13-1
cvsdist 236b23f
- Update to tcsh-6.13.00
cvsdist 236b23f
- Fix charset headers in some of the translations
cvsdist 236b23f
- Convert translated messages to LC_CTYPE locale
cvsdist 236b23f
- Fix automatic dspmbyte setting
cvsdist 236b23f
cvsdist c49bf8d
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist c49bf8d
- rebuilt
cvsdist c49bf8d
cvsdist a0c3df2
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist a0c3df2
- rebuilt
cvsdist a0c3df2
cvsdist a0c3df2
* Tue Feb 10 2004 Nalin Dahyabhai <nalin@redhat.com> 6.12-7
cvsdist a0c3df2
- remove declaration of setpgrp() which conflicts with libc's (#115185)
cvsdist a0c3df2
cvsdist d6fc228
* Fri Nov 21 2003 Nalin Dahyabhai <nalin@redhat.com> 6.12-6
cvsdist d6fc228
- add missing buildprereqs on groff, libtermcap-devel (#110599)
cvsdist d6fc228
cvsdist d6fc228
* Tue Jul  8 2003 Nalin Dahyabhai <nalin@redhat.com>
cvsdist d6fc228
- update URL
cvsdist d6fc228
cvsdist e637c25
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist e637c25
- rebuilt
cvsdist e637c25
cvsdist fdf4155
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist fdf4155
- rebuilt
cvsdist fdf4155
cvsdist fdf4155
* Thu Dec 05 2002 Elliot Lee <sopwith@redhat.com> 6.12-3
cvsdist fdf4155
- Merge changes from 8.0-hammer
cvsdist fdf4155
cvsdist fdf4155
* Tue Nov 19 2002 Nalin Dahyabhai <nalin@redhat.com> 6.12-3
cvsdist fdf4155
- rebuild
cvsdist fdf4155
cvsdist e592de3
* Thu Aug 08 2002 Phil Knirsch <pknirsch@redhat.com> 6.12-2
cvsdist e592de3
- Added csh.1 symlink to manpages.
cvsdist e592de3
cvsdist 602121e
* Tue Jun  4 2002 Nalin Dahyabhai <nalin@redhat.com> 6.11-1
cvsdist 602121e
- update to 6.11
cvsdist 602121e
cvsdist 602121e
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist 602121e
- automated rebuild
cvsdist 602121e
cvsdist 602121e
* Thu Jan 31 2002 Bill Nottingham <notting@redhat.com>
cvsdist 602121e
- rebuild in new env
cvsdist 602121e
cvsdist cc33acb
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
cvsdist cc33acb
- Bump release + rebuild.
cvsdist cc33acb
cvsdist 1a54c1d
* Wed Mar 28 2001 Akira TAGOH <tagoh@redhat.com> 6.10-5
cvsdist 1a54c1d
- Fixed check locale.
cvsdist 1a54c1d
cvsdist 1a54c1d
* Tue Feb  6 2001 Adrian Havill <havill@redhat.com>
cvsdist 1a54c1d
- use <time.h> instead of <sys/time.h> for pickier lib (#25935)
cvsdist 1a54c1d
- allow arguments for login shells (#19926)
cvsdist 1a54c1d
cvsdist 4583bf4
* Thu Nov 30 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 4583bf4
- update to 6.10.00 to fix here-script vulnerability
cvsdist 4583bf4
cvsdist 7dee801
* Wed Sep 18 2000 Adrian Havill <havill@redhat.com>
cvsdist 7dee801
- fix catalog locale dirname for Japanese
cvsdist 77bdf3a
cvsdist 77bdf3a
* Thu Jun 15 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 77bdf3a
- FHS packaging.
cvsdist 77bdf3a
- add locale support (#10345).
cvsdist 77bdf3a
cvsdist 77bdf3a
* Tue Mar  7 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 77bdf3a
- rebuild for sparc baud rates > 38400.
cvsdist 77bdf3a
cvsdist 77bdf3a
* Mon Jan 31 2000 Cristian Gafton <gafton@redhat.com>
cvsdist 77bdf3a
- rebuild to fix dependencies
cvsdist 77bdf3a
cvsdist 77bdf3a
* Thu Jan 27 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 77bdf3a
- append entries to spanking new /etc/shells.
cvsdist 77bdf3a
cvsdist 77bdf3a
* Mon Jan 10 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 77bdf3a
- update to 6.09.
cvsdist 77bdf3a
- fix strcoll oddness (#6000, #6244, #6398).
cvsdist 77bdf3a
cvsdist 77bdf3a
* Sat Sep 25 1999 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 77bdf3a
- fix $shell by using --bindir
cvsdist 77bdf3a
cvsdist 77bdf3a
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist 77bdf3a
- auto rebuild in the new build environment (release 5)
cvsdist 77bdf3a
cvsdist 77bdf3a
* Wed Feb 24 1999 Cristian Gafton <gafton@redhat.com>
cvsdist 77bdf3a
- patch for using PATH_MAX instead of some silly internal #defines for
cvsdist 77bdf3a
  variables that handle filenames.
cvsdist 77bdf3a
cvsdist 77bdf3a
* Fri Nov  6 1998 Jeff Johnson <jbj@redhat.com>
cvsdist 77bdf3a
- update to 6.08.00.
cvsdist 77bdf3a
cvsdist 77bdf3a
* Fri Oct 02 1998 Cristian Gafton <gafton@redhat.com>
cvsdist 77bdf3a
- upgraded to 6.07.09 from the freebsd
cvsdist 77bdf3a
- security fix
cvsdist 77bdf3a
cvsdist 77bdf3a
* Wed Aug  5 1998 Jeff Johnson <jbj@redhat.com>
cvsdist 77bdf3a
- use -ltermcap so that /bin/tcsh can be used in single user mode w/o /usr.
cvsdist 77bdf3a
- update url's
cvsdist 77bdf3a
cvsdist 77bdf3a
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
cvsdist 77bdf3a
- translations modified for de, fr, tr
cvsdist 77bdf3a
cvsdist 77bdf3a
* Thu Oct 21 1997 Cristian Gafton <gafton@redhat.com>
cvsdist 77bdf3a
- updated to 6.07; added BuildRoot
cvsdist 77bdf3a
- cleaned up the spec file; fixed source url
cvsdist 77bdf3a
cvsdist 77bdf3a
* Wed Sep 03 1997 Erik Troan <ewt@redhat.com>
cvsdist 77bdf3a
- added termios hacks for new glibc
cvsdist 77bdf3a
- added /bin/csh to file list
cvsdist 77bdf3a
cvsdist 77bdf3a
* Fri Jun 13 1997 Erik Troan <ewt@redhat.com>
cvsdist 77bdf3a
- built against glibc
cvsdist 77bdf3a
cvsdist 77bdf3a
* Fri Feb 07 1997 Erik Troan <ewt@redhat.com>
cvsdist 77bdf3a
 - Provides csh, adds and removes /bin/csh from /etc/shells if csh package
cvsdist 77bdf3a
isn't installed.