Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > f86cb38185a8945f42f82f579fd4ae22 > files > 5

tcsh-6.11-3mdk.src.rpm

Summary: An enhanced version of csh, the C shell
Name: tcsh
Version: 6.11
%define rversion %{version}.00
Release: 3mdk
License: BSD
Group: Shells
BuildRequires: libtermcap-devel
Source: ftp://ftp.funet.fi/pub/unix/shells/tcsh/tcsh-%{version}.tar.bz2
Source1: alias.csh
Patch0: tcsh-6.09.02-utmp.patch.bz2
Patch1: tcsh-6.09.00-termios.patch.bz2
Provides: csh = %{version}
Prereq: fileutils grep
URL: http://www.primate.wisc.edu/software/csh-tcsh-book/
Buildroot: %_tmppath/%name-%version-%release-root

%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 -n %{name}-%{rversion}
%patch0 -p1
%patch1 -p1

%build
%configure --bindir=/bin
make LIBES="-lnsl -ltermcap -lcrypt"

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 $RPM_BUILD_ROOT/bin
install -s tcsh $RPM_BUILD_ROOT/bin/tcsh
install -m 644 tcsh.man $RPM_BUILD_ROOT%{_mandir}/man1/tcsh.1
ln -s tcsh.1 $RPM_BUILD_ROOT%{_mandir}/man1/csh.1
ln -sf tcsh $RPM_BUILD_ROOT/bin/csh
nroff -me eight-bit.me > eight-bit.txt

mkdir -p %buildroot/etc/profile.d/
install %{SOURCE1} %buildroot/etc/profile.d/$(basename %{SOURCE1})

%clean
rm -rf $RPM_BUILD_ROOT

%post
if [ ! -f /etc/shells ]; then
	echo "/bin/tcsh" >> /etc/shells
	echo "/bin/csh" >> /etc/shells
else
	grep -q /bin/tcsh /etc/shells || echo "/bin/tcsh" >> /etc/shells
	grep -q /bin/csh /etc/shells || echo "/bin/csh" >> /etc/shells
fi

%postun
if [ ! -x /bin/tcsh ]; then
    perl -ni -e 'm|/bin/t?csh| or print' /etc/shells
fi

%files
%defattr(-,root,root)
%doc NewThings FAQ Fixes eight-bit.txt complete.tcsh
%doc Ported README* WishList Y2K
%config(noreplace) /etc/profile.d/*
/bin/*
%{_mandir}/*/*

%changelog
* Thu Oct 11 2001 Pixel <pixel@mandrakesoft.com> 6.11-3mdk
- fix rights on alias.csh

* Wed Oct 10 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 6.11-2mdk
- Add alias.csh which is the color_ls.csh from fileutils.

* Fri Oct  5 2001 Pixel <pixel@mandrakesoft.com> 6.11-1mdk
- new version

* Thu Sep  6 2001 Pixel <pixel@mandrakesoft.com> 6.10-4mdk
- rebuild

* Tue May 01 2001 David BAUDENS <baudens@mandrakesoft.com> 6.10-3mdk
- Use %%_tmppath for BuildRoot

* Mon Mar 12 2001 Jeff Garzik <jgarzik@mandrakesoft.com> 6.10-2mdk
- fix build on glibc22 due to more strict glibc 2.2.2 headers
- more docs

* Tue Nov 21 2000 Pixel <pixel@mandrakesoft.com> 6.10-1mdk
- new version

* Mon Nov 13 2000 Pixel <pixel@mandrakesoft.com> 6.09.04-1mdk
- new version

* Wed Nov  8 2000 Pixel <pixel@mandrakesoft.com> 6.09.03-5mdk
- add man page for csh.1 (link to tcsh.1)

* Tue Nov  7 2000 Pixel <pixel@mandrakesoft.com> 6.09.03-4mdk
- nicer %%post scripts

* Tue Nov  7 2000 Pixel <pixel@mandrakesoft.com> 6.09.03-3mdk
- change the suffix of /etc/shells temporary file to remove rpmlint error

* Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 6.09.03-2mdk
- automatically added BuildRequires

* Thu Jul 27 2000 Pixel <pixel@mandrakesoft.com> 6.09.03-1mdk
- new version

* Wed Jul 19 2000 Pixel <pixel@mandrakesoft.com> 6.09.02-2mdk
- _mandir ization
- BM

* Thu Jul  6 2000 Pixel <pixel@mandrakesoft.com> 6.09.02-1mdk
- new version (cleanup of patches)

* Fri Jun 16 2000 Pixel <pixel@mandrakesoft.com> 6.09-4mdk
- new version
- merge with redhat

* Sat Mar 25 2000 Pixel <pixel@mandrakesoft.com> 6.08.00-9mdk
- new group + cleanup

* Tue Mar  7 2000 Jeff Johnson <jbj@redhat.com>
- rebuild for sparc baud rates > 38400.

* Mon Jan 31 2000 Cristian Gafton <gafton@redhat.com>
- rebuild to fix dependencies

* Thu Jan 27 2000 Jeff Johnson <jbj@redhat.com>
- append entries to spanking new /etc/shells.

* Mon Jan 10 2000 Jeff Johnson <jbj@redhat.com>
- update to 6.09.
- fix strcoll oddness (#6000, #6244, #6398).

* Tue Oct 26 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Merge with rh.
- Fix $shell to use --bindir(r)

* Sat Sep 25 1999 Michael K. Johnson <johnsonm@redhat.com>
- fix $shell by using --bindir

* Sat Apr 10 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com>
- Mandrake adaptions
- bzip2 man/info pages
- add de locale
- fix handling of RPM_OPT_FLAGS

* Wed Feb 24 1999 Cristian Gafton <gafton@redhat.com>
- patch for using PATH_MAX instead of some silly internal #defines for
  variables that handle filenames.

* Fri Nov  6 1998 Jeff Johnson <jbj@redhat.com>
- update to 6.08.00.

* Fri Oct 02 1998 Cristian Gafton <gafton@redhat.com>
- upgraded to 6.07.09 from the freebsd
- security fix

* Wed Aug  5 1998 Jeff Johnson <jbj@redhat.com>
- 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 <bugs@redhat.com>
- translations modified for de, fr, tr

* Thu Oct 21 1997 Cristian Gafton <gafton@redhat.com>
- updated to 6.07; added BuildRoot
- cleaned up the spec file; fixed source url

* Wed Sep 03 1997 Erik Troan <ewt@redhat.com>
- added termios hacks for new glibc
- added /bin/csh to file list

* Fri Jun 13 1997 Erik Troan <ewt@redhat.com>
- built against glibc

* Fri Feb 07 1997 Erik Troan <ewt@redhat.com>
 - Provides csh, adds and removes /bin/csh from /etc/shells if csh package
isn't installed.