SHA256
1
0
forked from pool/tcsh
2010-12-14 17:25:40 +00:00
committed by Git OBS Bridge
parent c066575cda
commit cad20f7be4
13 changed files with 370 additions and 79 deletions

View File

@@ -25,15 +25,15 @@ License: BSD3c(or similar)
Group: System/Shells
Requires: gawk textutils
AutoReqProv: on
Version: 6.17.00
Release: 3
Version: 6.17.02
Release: 4
Summary: The C SHell
Source: ftp.astron.com:/pub/tcsh/tcsh-6.17.00.tar.bz2
Source: ftp.astron.com:/pub/tcsh/tcsh-6.17.02.tar.bz2
Source1: nls-iconv
Source2: bindkey.tcsh
Source3: complete.tcsh
Patch: tcsh-6.17.00.dif
Patch1: tcsh-6.15.00-spelling.dif
Patch: tcsh-6.17.02.dif
Patch1: tcsh-6.17.02-spelling.dif
Patch2: tcsh-6.15.00-utf8.dif
Patch3: tcsh-6.15.00-pipe.dif
Patch4: tcsh-6.17.00-longjmp.dif
@@ -41,8 +41,11 @@ Patch5: tcsh-6.16.00-norm-cmd.dif
Patch6: tcsh-6.16.00-history.dif
Patch7: tcsh-6.15.00-blanks.dif
Patch8: tcsh-6.15.00-fullpath.dif
Patch10: tcsh-6.17.00-colorls.dif
Patch9: tcsh-6.17.02-multibyte.patch
Patch10: tcsh-6.17.02-colorls.dif
Patch11: tcsh-6.16.00-mailbox.dif
Patch12: tcsh-6.17.02-catalogs.patch
Patch13: tcsh-6.17.02-kanji.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -70,8 +73,11 @@ Authors:
### disabled for know, should work on os11.1 without
### %patch7 -p0 -b .blanks
%patch8 -p0 -b .fullpath
%patch9 -p1 -b .mb
%patch10 -p0 -b .colorls
%patch11 -p0 -b .mailbox
%patch12 -p1 -b .catalog
%patch13 -p0 -b .kanji
%patch
sh $RPM_SOURCE_DIR/nls-iconv
@@ -99,25 +105,29 @@ Authors:
#
# requires a working terminal on stdin
# make check
rm -vf nls/*/set[0-9]*.*
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
for nls in nls/*.cat ; do
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 ;;
nls=${nls##*/}
nls=${nls%%.*}
case "${nls}" in
fi*) nls=fi ;;
fr*) nls=fr ;;
ge*) nls=de ;;
gr*) nls=el ;;
it*) nls=it ;;
ru*) nls=ru ;;
sp*) nls=es ;;
uk*) nls=uk_UA ;;
C) continue ;;
esac
install -m 0444 tcsh.${msg}.cat ${dir}/tcsh
dir=$RPM_BUILD_ROOT/usr/share/locale/${nls}/LC_MESSAGES
mkdir -p -m 0755 $dir
install -m 0444 ${msg} ${dir}/tcsh
done
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT install.man