Summary: An enhanced version of csh, the C shell Name: tcsh Version: 6.18.01 Release: 2 License: BSD Group: System Environment/Shells URL: http://www.tcsh.org/ Source0: ftp://ftp.astron.com/pub/tcsh/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-aix.patch Patch2: tcsh-6.14.00-tinfo.patch Patch3: tcsh-6.14.00-unprintable.patch Patch4: tcsh-6.15.00-hist-sub.patch Patch8: tcsh-6.14.00-syntax.patch Patch9: tcsh-6.13.00-memoryuse.patch Patch11: tcsh-6.14.00-order.patch Provides: csh = %{version} Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: autoconf, automake, patch, coreutils %description Tcsh is an enhanced but completely compatible version of csh, the C shell. Tcsh is a command language interpreter which can be used both as an interactive login shell and as a shell script command processor. Tcsh includes a command line editor, programmable word completion, spelling correction, a history mechanism, job control and a C language like syntax. %prep %setup -q export PATH=/opt/freeware/bin:$PATH %patch2 -p1 -b .tinfo %patch3 -p1 -b .unprintable %patch4 -p1 -b .hist-sub %patch8 -p1 -b .syntax %patch9 -p1 -b .memoryuse %patch11 -p1 -b .order %patch0 %build # For tcsh-6.14.00-tinfo.patch autoreconf export CC=xlc_r ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --disable-nls \ --disable-nls-catalogs \ --with-libiconv-prefix=%{_prefix} \ --without-hesiod make %{?_smp_mflags} all LIBES=-lcurses %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} export PATH=/opt/freeware/bin:$PATH mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 ${RPM_BUILD_ROOT}%{_bindir} install -p -m 755 tcsh ${RPM_BUILD_ROOT}%{_bindir}/tcsh install -p -m 644 tcsh.man ${RPM_BUILD_ROOT}%{_mandir}/man1/tcsh.1 ( cd ${RPM_BUILD_ROOT} mkdir -p usr/bin mkdir -p usr/linux/bin cd usr/bin ln -sf ../..%{_bindir}/tcsh . cd ../linux/bin ln -sf ../../..%{_bindir}/tcsh csh ) %post if [ ! -f /etc/shells ]; then echo "%{_bindir}/tcsh" >> /etc/shells echo "%{_bindir}/csh" >> /etc/shells else grep -q '^%{_bindir}/tcsh$' /etc/shells || \ echo "%{_bindir}/tcsh" >> /etc/shells grep -q '^%{_bindir}/csh$' /etc/shells || \ echo "%{_bindir}/csh" >> /etc/shells fi %postun if [ ! -x %{_bindir}/tcsh ]; then grep -v '^%{_bindir}/tcsh$' /etc/shells | \ grep -v '^%{_bindir}/csh$' > /etc/shells.rpm && \ mv /etc/shells.rpm /etc/shells fi %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc BUGS FAQ Fixes NewThings WishList complete.tcsh README %{_bindir}/* %{_mandir}/man1/*.1 /usr/bin/tcsh /usr/linux/bin/csh %changelog * Mon Feb 18 2013 Michael Perzl - 6.18.01-2 - dropped the Linux-related 'closem' patch - changed the definition of NOFILE for AIX in order to speed up the startup time by avoiding useless "EBADF" ("bad file descriptor") errors * Wed Jan 30 2013 Michael Perzl - 6.18.01-1 - update to version 6.18.01 * Mon Jan 10 2011 Michael Perzl - 6.17-1 - first version for AIX V5.1 and higher based on the Fedora 15 version 6.17-10