2006-12-19 00:18:00 +01:00
|
|
|
#
|
2010-02-18 16:59:51 +01:00
|
|
|
# spec file for package tcsh (Version 6.17.00)
|
2006-12-19 00:18:00 +01:00
|
|
|
#
|
2010-02-18 16:59:51 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:18:00 +01:00
|
|
|
#
|
2008-10-06 19:09:46 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:18:00 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-06-24 01:29:45 +02:00
|
|
|
|
2006-12-19 00:18:00 +01:00
|
|
|
Name: tcsh
|
2007-03-29 12:10:42 +02:00
|
|
|
BuildRequires: ncurses-devel
|
2007-10-13 00:12:53 +02:00
|
|
|
Url: http://www.tcsh.org/
|
2009-12-07 12:24:11 +01:00
|
|
|
License: BSD3c(or similar)
|
2006-12-19 00:18:00 +01:00
|
|
|
Group: System/Shells
|
|
|
|
Requires: gawk textutils
|
2007-10-13 00:12:53 +02:00
|
|
|
AutoReqProv: on
|
2010-02-18 16:59:51 +01:00
|
|
|
Version: 6.17.00
|
2010-03-17 17:20:34 +01:00
|
|
|
Release: 3
|
2006-12-19 00:18:00 +01:00
|
|
|
Summary: The C SHell
|
2010-02-18 16:59:51 +01:00
|
|
|
Source: ftp.astron.com:/pub/tcsh/tcsh-6.17.00.tar.bz2
|
2006-12-19 00:18:00 +01:00
|
|
|
Source1: nls-iconv
|
2007-07-16 17:55:24 +02:00
|
|
|
Source2: bindkey.tcsh
|
|
|
|
Source3: complete.tcsh
|
2010-02-18 16:59:51 +01:00
|
|
|
Patch: tcsh-6.17.00.dif
|
2007-07-16 17:55:24 +02:00
|
|
|
Patch1: tcsh-6.15.00-spelling.dif
|
|
|
|
Patch2: tcsh-6.15.00-utf8.dif
|
|
|
|
Patch3: tcsh-6.15.00-pipe.dif
|
2010-02-18 16:59:51 +01:00
|
|
|
Patch4: tcsh-6.17.00-longjmp.dif
|
2009-03-25 19:00:28 +01:00
|
|
|
Patch5: tcsh-6.16.00-norm-cmd.dif
|
|
|
|
Patch6: tcsh-6.16.00-history.dif
|
2008-10-06 19:09:46 +02:00
|
|
|
Patch7: tcsh-6.15.00-blanks.dif
|
2008-11-28 16:06:15 +01:00
|
|
|
Patch8: tcsh-6.15.00-fullpath.dif
|
2010-02-18 16:59:51 +01:00
|
|
|
Patch10: tcsh-6.17.00-colorls.dif
|
2009-08-14 15:09:50 +02:00
|
|
|
Patch11: tcsh-6.16.00-mailbox.dif
|
2006-12-19 00:18:00 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Tcsh is an enhanced, but completely compatible, version of the Berkeley
|
|
|
|
UNIX C shell, csh(1). It is a command language interpreter usable as an
|
|
|
|
interactive login shell and a shell script command processor. It
|
|
|
|
includes a command-line editor, programmable word completion, spelling
|
|
|
|
correction, a history mechanism, job control, and a C-like syntax.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Christos Zoulas <christos@deshaw.com>
|
|
|
|
Scott Krotz <krotz@mot.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
%patch1 -p0 -b .spell
|
2007-07-16 17:55:24 +02:00
|
|
|
%patch2 -p0 -b .utf8
|
|
|
|
%patch3 -p0 -b .pipe
|
2007-07-23 21:31:32 +02:00
|
|
|
%patch4 -p0 -b .longjmp
|
2007-08-28 19:21:11 +02:00
|
|
|
%patch5 -p0 -b .normcmd
|
2007-12-20 16:45:44 +01:00
|
|
|
%patch6 -p0 -b .history
|
2008-11-07 15:50:46 +01:00
|
|
|
### disabled for know, should work on os11.1 without
|
|
|
|
### %patch7 -p0 -b .blanks
|
2008-11-28 16:06:15 +01:00
|
|
|
%patch8 -p0 -b .fullpath
|
2009-06-29 17:28:15 +02:00
|
|
|
%patch10 -p0 -b .colorls
|
2009-08-14 15:09:50 +02:00
|
|
|
%patch11 -p0 -b .mailbox
|
2006-12-19 00:18:00 +01:00
|
|
|
%patch
|
|
|
|
sh $RPM_SOURCE_DIR/nls-iconv
|
|
|
|
|
|
|
|
%build
|
|
|
|
CC=gcc
|
2010-02-18 16:59:51 +01:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -DBUFSIZE=8192 -pipe"
|
2006-12-19 00:18:00 +01:00
|
|
|
export CC CFLAGS
|
|
|
|
%ifarch %ix86
|
|
|
|
CPU=i586
|
|
|
|
%else
|
|
|
|
CPU=${RPM_ARCH}
|
|
|
|
%endif
|
|
|
|
./configure --build=${CPU}-suse-linux \
|
|
|
|
--prefix=/usr \
|
|
|
|
--bindir=/bin \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
2007-07-16 17:55:24 +02:00
|
|
|
--sharedstatedir=%_datadir \
|
|
|
|
--infodir=%_infodir \
|
|
|
|
--mandir=%_mandir \
|
|
|
|
--libexecdir=/usr/%{_lib}/tcsh \
|
|
|
|
--disable-rpath \
|
|
|
|
--with-gnu-ld
|
2006-12-19 00:18:00 +01:00
|
|
|
make
|
2007-07-23 21:31:32 +02:00
|
|
|
#
|
|
|
|
# requires a working terminal on stdin
|
|
|
|
# make check
|
2006-12-19 00:18:00 +01:00
|
|
|
make catalogs
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
for nls in et fi fr de el it ja pl ru es uk_UA ; do
|
|
|
|
dir=$RPM_BUILD_ROOT/usr/share/locale/${nls}/LC_MESSAGES
|
|
|
|
msg=$nls
|
|
|
|
mkdir -p -m 0755 $dir
|
|
|
|
case "$nls" in
|
|
|
|
fi) msg=finnish ;;
|
|
|
|
fr) msg=french ;;
|
|
|
|
de) msg=german ;;
|
|
|
|
el) msg=greek ;;
|
|
|
|
it) msg=italian ;;
|
|
|
|
ru) msg=russian ;;
|
|
|
|
es) msg=spanish ;;
|
|
|
|
uk_UA) msg=ukrainian ;;
|
|
|
|
esac
|
|
|
|
install -m 0444 tcsh.${msg}.cat ${dir}/tcsh
|
|
|
|
done
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install.man
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_docdir}/tcsh
|
|
|
|
install -m 0444 FAQ $RPM_BUILD_ROOT%{_docdir}/tcsh/FAQ.tcsh
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/profile.d/
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
2007-07-16 17:55:24 +02:00
|
|
|
install -m 644 $RPM_SOURCE_DIR/bindkey.tcsh $RPM_BUILD_ROOT/etc/profile.d/
|
|
|
|
install -m 644 $RPM_SOURCE_DIR/complete.tcsh $RPM_BUILD_ROOT/etc/profile.d/
|
2006-12-19 00:18:00 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/bin/csh
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/csh
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/tcsh
|
2007-07-16 17:55:24 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/csh.*
|
2006-12-19 00:18:00 +01:00
|
|
|
ln -sf tcsh $RPM_BUILD_ROOT/bin/csh
|
2007-07-16 17:55:24 +02:00
|
|
|
ln -sf tcsh.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/csh.1.gz
|
2006-12-19 00:18:00 +01:00
|
|
|
ln -sf ../../bin/tcsh $RPM_BUILD_ROOT/usr/bin/csh
|
|
|
|
ln -sf ../../bin/tcsh $RPM_BUILD_ROOT/usr/bin/tcsh
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_docdir}/tcsh
|
|
|
|
/bin/csh
|
|
|
|
/bin/tcsh
|
|
|
|
%config /etc/profile.d/bindkey.tcsh
|
|
|
|
%config /etc/profile.d/complete.tcsh
|
|
|
|
/usr/bin/csh
|
|
|
|
/usr/bin/tcsh
|
|
|
|
%doc %{_docdir}/tcsh/FAQ.tcsh
|
2007-07-16 17:55:24 +02:00
|
|
|
%doc %{_mandir}/man1/csh.1.gz
|
|
|
|
%doc %{_mandir}/man1/tcsh.1.gz
|
|
|
|
%{_datadir}/locale/*/LC_MESSAGES/tcsh
|
2007-12-20 16:45:44 +01:00
|
|
|
|
2007-02-26 19:05:29 +01:00
|
|
|
%changelog
|