%define _bindir /bin Summary: An enhanced version of csh, the C shell Summary(ja): csh, Cシェルの進化バージョン Name: tcsh Version: 6.16 Release: 2%{?_dist_release} License: BSD URL: http://www.tcsh.org/ Group: System Environment/Shells Source: ftp://ftp.astron.com/pub/tcsh/%{name}-%{version}.00.tar.gz Patch1: tcsh-6.15.00-closem.patch Patch2: tcsh-6.14.00-tinfo.patch Patch3: tcsh-6.14.00-unprintable.patch Patch4: tcsh-6.15.00-hist-sub.patch Patch6: tcsh-6.15.00-ca-color.patch Patch7: tcsh-6.14.00-set.patch Patch8: tcsh-6.14.00-syntax.patch Patch9: tcsh-6.13.00-memoryuse.patch Patch11: tcsh-6.14.00-order.patch Patch12: tcsh-6.15.00-wide-str.patch Patch13: tcsh-6.15.00-rs-color.patch Provides: csh = %{version} Requires(post): grep Requires(postun): coreutils, grep Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: autoconf, automake, ncurses-devel, gettext-devel %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. %description -l ja tcsh は、バークレイ版 UNIX の C シェル csh と完全に互換性があり、 さらに機能強化したシェルです。対話的なログインシェル、またシェルス クリプトのコマンドプロセッサの両方の用途で使われるコマンドインタプ リタです。 tcsh には、コマンド行編集機能や、プログラム可能な単語の補完機能、 スペル訂正、履歴、ジョブ制御、C 言語風の文法等が含まれます。 %prep %setup -q -n %{name}-%{version}.00 %patch1 -p1 -b .closem %patch2 -p1 -b .tinfo %patch3 -p1 -b .unprintable %patch4 -p1 -b .hist-sub %patch6 -p1 -b .ca-color %patch7 -p1 -b .set %patch8 -p1 -b .syntax %patch9 -p1 -b .memoryuse %patch11 -p1 -b .order %patch12 -p1 -b .wide-str %patch13 -p1 -b .rs-color for i in Fixes WishList; do iconv -f iso-8859-1 -t utf-8 "$i" > "${i}_" && \ touch -r "$i" "${i}_" && \ mv "${i}_" "$i" done %build # For tcsh-6.14.00-tinfo.patch autoreconf %configure --without-hesiod make %{?_smp_mflags} all make %{?_smp_mflags} -C nls catalogs %install rm -rf $RPM_BUILD_ROOT 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 ln -sf tcsh ${RPM_BUILD_ROOT}%{_bindir}/csh ln -sf tcsh.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/csh.1 while read lang language ; do dest=${RPM_BUILD_ROOT}%{_datadir}/locale/$lang/LC_MESSAGES if test -f tcsh.$language.cat ; then mkdir -p $dest install -p -m 644 tcsh.$language.cat $dest/tcsh echo "%lang($lang) %{_datadir}/locale/$lang/LC_MESSAGES/tcsh" fi done > tcsh.lang << _EOF de german el greek en C es spanish et et fi finnish fr french it italian ja ja pl pl ru russian uk ukrainian _EOF %clean rm -rf $RPM_BUILD_ROOT %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 %files -f tcsh.lang %defattr(-,root,root,-) %doc BUGS FAQ Fixes NewThings WishList complete.tcsh %{_bindir}/tcsh %{_bindir}/csh %{_mandir}/man1/*.1* %changelog * Sat Apr 16 2011 Ryoichi INAGAKI 6.16-2 - rebuilt with current VineSeed * Wed Jul 15 2009 Daisuke SUZUKI 6.16-1 - new upstream release - resync with 6.16-1(fc12) - drop vine patch * Fri Aug 15 2008 Shu KONNO 6.12-1vl5 - applied new versioning policy, spec in utf-8 * Wed Oct 18 2006 Kazutaka HARADA 6.12-0vl6 - added patch11 from fedora * Thu Mar 23 2006 Miloslav Trmac - 6.14-8 - Backport a patch to ignore LS_COLOR codes introduced in newer coreutils (#186037) - added japanese description * Thu Apr 02 2004 KOBAYASHI R. Taizo 6.12-0vl5 - added patch from fedora * Tue Feb 10 2004 Nalin Dahyabhai 6.12-7 - remove declaration of setpgrp() which conflicts with libc's (#115185) * Fri Nov 21 2003 Nalin Dahyabhai 6.12-6 - add missing buildprereqs on groff, libtermcap-devel (#110599) * Mon Oct 20 2003 Ryoichi INAGAKI 6.12-0vl4 - rebuild with new toolchains - s/Copyright/License/ - fix spec file to build correctly (based on Rawhide spec file) * Tue Aug 06 2002 KOBAYASHI R. Taizo 6.12-0vl3 - "Re"-changed the way of fixing check locale from Patch8 to Patch9 on ppc strlen() can not deal with 'short' variables * Sat Aug 03 2002 Satoshi MACHINO 6.12-0vl2 - fixed changelog * Thu Jul 25 2002 K. Nagasaka 6.12-0vl1 - update * Sun Apr 28 2002 NISHIMURA Daisuke 6.11-0vl4 - change limit.patch * Fri Apr 26 2002 Kosaku Nagasaka 6.11-0vl3 - fixed limit by Patch10 * Sun Jan 27 2002 KOBAYASHI R. Taizo 6.11-0vl2 - changed the way of fixing check locale from Patch8 to Patch9 on ppc strlen() can not deal with 'short' variables * Mon Jan 21 2002 KOBAYASHI R. Taizo 6.11-0vl1 - update * Thu Dec 28 2001 Satoshi MACHINO 6.10.02-0vl2 - fixed check locale - merged some patches from RHL-7.2 * Thu Aug 09 2001 - 6.10.02-0vl1 * Sun Jan 7 2001 Jun Nishii - 6.10-1vl2 - build with gcc * Mon Dec 11 2000 Yasuhide OOMORI - syncronized release tcsh based on a securty fix for RH6.2. * Thu Nov 30 2000 Nalin Dahyabhai - update to 6.10.00 to fix here-script vulnerability * Wed Sep 18 2000 Adrian Havill - fix catalog locale dirname for Japanese * Thu Jun 15 2000 Jeff Johnson - FHS packaging. - add locale support (#10345). * Tue Mar 7 2000 Jeff Johnson - rebuild for sparc baud rates > 38400. * Mon Jan 31 2000 Cristian Gafton - rebuild to fix dependencies * Thu Jan 27 2000 Jeff Johnson - append entries to spanking new /etc/shells. * Mon Jan 10 2000 Jeff Johnson - update to 6.09. - fix strcoll oddness (#6000, #6244, #6398). * Sat Sep 25 1999 Michael K. Johnson - fix $shell by using --bindir * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 5) * Wed Feb 24 1999 Cristian Gafton - patch for using PATH_MAX instead of some silly internal #defines for variables that handle filenames. * Fri Nov 6 1998 Jeff Johnson - update to 6.08.00. * Fri Oct 02 1998 Cristian Gafton - upgraded to 6.07.09 from the freebsd - security fix * Wed Aug 5 1998 Jeff Johnson - use -ltermcap so that /bin/tcsh can be used in single user mode w/o /usr. - update url's * Mon Apr 27 1998 Prospector System - translations modified for de, fr, tr * Thu Oct 21 1997 Cristian Gafton - updated to 6.07; added BuildRoot - cleaned up the spec file; fixed source url * Wed Sep 03 1997 Erik Troan - added termios hacks for new glibc - added /bin/csh to file list * Fri Jun 13 1997 Erik Troan - built against glibc * Fri Feb 07 1997 Erik Troan - Provides csh, adds and removes /bin/csh from /etc/shells if csh package isn't installed.