Sophie

Sophie

distrib > Mandriva > mes5 > i586 > by-pkgid > 2ed954c15cd71a85d2b668ecb248d0a2 > files > 11

tcsh-6.15-3mdv2009.0.src.rpm

%define rversion %{version}.00

Summary:	An enhanced version of csh, the C shell
Name:		tcsh
Version:	6.15
Release:	%mkrel 3
License:	BSD
Group:		Shells
URL:		http://www.tcsh.org/
Source:		ftp://ftp.funet.fi/pub/unix/shells/tcsh/tcsh-%{version}.00.tar.gz
Source1:	alias.csh
# patches from fedora
Patch1: tcsh-6.15.00-closem.patch
Patch12: tcsh-6.14.00-tinfo.patch
Patch13: tcsh-6.14.00-unprintable.patch
Patch14: tcsh-6.15.00-hist-sub.patch
Patch15: tcsh-6.15.00-var-sub.patch

# our patches
Patch101: tcsh-6.09.00-termios.patch
Patch106: tcsh-6.10.00-glibc_compat.patch
# #40532
Patch107: tcsh-6.15.00-ls-colors-rs-var.patch

BuildRequires:	libtermcap-devel groff-for-man
Requires(post):	rpm-helper >= 0.7
Requires(postun):	rpm-helper >= 0.7
Provides:	csh = %{version}
# explicit file provides
Provides:	/bin/csh
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot

%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}
%patch1 -p1 -b .closem
%patch12 -p1 -b .tinfo
%patch13 -p1 -b .unprintable
%patch14 -p1 -b .hist-sub
%patch15 -p1 -b .var-sub

%patch101 -p1 -b .termios
%patch106 -p1 -b .glibc_compat
%patch107 -p1 -b .ls-colors

%build
%configure2_5x --bindir=/bin --without-hesiod
%make
nroff -me eight-bit.me > eight-bit.txt

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

mkdir -p %{buildroot}%{_mandir}/man1 %{buildroot}/bin
install -s tcsh %{buildroot}/bin/tcsh
install tcsh.man %{buildroot}%{_mandir}/man1/tcsh.1
ln -s tcsh.1 %{buildroot}%{_mandir}/man1/csh.1
ln -sf tcsh %{buildroot}/bin/csh

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

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%post
/usr/share/rpm-helper/add-shell %{name} $1 /bin/csh
/usr/share/rpm-helper/add-shell %{name} $1 /bin/tcsh

%postun
/usr/share/rpm-helper/del-shell %{name} $1 /bin/csh
/usr/share/rpm-helper/del-shell %{name} $1 /bin/tcsh

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




%changelog
* Mon Sep 15 2008 Pixel <pixel@mandriva.com> 6.15-3mdv2009.0
+ Revision: 284950
- handle dircolors's rs=xxx (#40532)

* Wed Jul 09 2008 Pixel <pixel@mandriva.com> 6.15-2mdv2009.0
+ Revision: 232986
- explictly provide /bin/csh

* Sat May 03 2008 Funda Wang <fundawang@mandriva.org> 6.15-1mdv2009.0
+ Revision: 200575
- add more patches from fedora
- drop authuid patch, it is not needed any more
- New version 6.15
- drop unneeded patch

* Wed Mar 05 2008 Oden Eriksson <oeriksson@mandriva.com> 6.14-5mdv2008.1
+ Revision: 179641
- rebuild

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Wed Aug 01 2007 Pixel <pixel@mandriva.com> 6.14-4mdv2008.0
+ Revision: 57653
- sync patches with fedora's (including a fix for "Unknown colorls variable `su'" #32013)


* Mon Feb 12 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 6.14-3mdv2007.0
+ Revision: 119976
- Import tcsh

* Sun Jan 01 2006 Mandriva Linux Team <http://www.mandrivaexpert.com/> 6.14-2mdk
- Rebuild

* Thu Aug 25 2005 Pixel <pixel@mandriva.com> 6.14-1mdk
- new release
- drop patch0 (utmp) and patch7 (dspmbyte)
- take patch3, patch4, patch5 from fedora
- fix & enhance prereq
- build eight-bit.txt in build stage (cleaner that way)

* Tue Nov 09 2004 Pixel <pixel@mandrakesoft.com> 6.13-2mdk
- add dspmbyte patch from redhat (bugzilla #10116)

* Fri Jun 18 2004 Pixel <pixel@mandrakesoft.com> 6.13-1mdk
- drop patch 7 (which was replacing "eq" with "strncasecmp" whereas there is now "t_pmatch"
  doing shell like globbing, and is useful for STRSTARKUTF8)
- drop patch 5 (done by default)
- update patch 0
- new release