Summary(tr): Geliþmiþ bir BASH sürümü
Summary(uk): ëÏÍÁÎÄÎÉÊ ÐÒÏÃÅÓÏÒ (shell) ÓÈÏÖÉÊ ÎÁ ksh, ÁÌÅ Ú ÐÏËÒÁÝÅÎÎÑÍÉ
Name: zsh
-Version: 4.0.6
-Release: 4
+Version: 4.1.1
+Release: 5
License: BSD-like
Group: Applications/Shells
URL: http://www.zsh.org/
Source0: ftp://ftp.zsh.org/pub/zsh/%{name}-%{version}.tar.bz2
-# Source0-md5: ec841e1c92a44879c503ffb32a3e5326
+# Source0-md5: 48958b1a3fc86261a26eea40a4f7d4af
Source1: %{name}.1.pl
Source2: http://zsh.sunsite.dk/Guide/zshguide.pdf
# Source2-md5: 0d80ba1ef39052c512cfabf368f3bf20
Patch3: %{name}-paths.patch
Patch4: %{name}-no_nis.patch
Patch5: %{name}-completions.patch
-PreReq: grep
-PreReq: fileutils
+Patch6: %{name}-zle_misc.patch
BuildRequires: autoconf
%{!?_without_static:BuildRequires: glibc-static}
+BuildRequires: libcap-devel
BuildRequires: ncurses-devel >= 5.1
%{!?_without_static:BuildRequires: ncurses-static}
+BuildRequires: pcre-devel
BuildRequires: texinfo
Requires(post,preun): grep
Requires(preun): fileutils
Obsoletes: zsh-doc-html, zsh-doc-ps, zsh-doc-dvi
%define _bindir /bin
+%define specflags_ia32 "-fomit-frame-pointer"
%description
zsh is an enhanced version of the Bourne shell with csh additions and
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p0
install %{SOURCE2} .
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_infodir},%{_sysconfdir},%{_bindir},%{_mandir}/pl/man1}
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%{!?_without_static:install Src/zsh.static $RPM_BUILD_ROOT%{_bindir}}
install Doc/zsh.info* $RPM_BUILD_ROOT%{_infodir}
echo ". %{_sysconfdir}/profile" >> $RPM_BUILD_ROOT%{_sysconfdir}/zprofile
cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/zshrc
-PS1='[%%n@%%m %%~]%%(!.#.%%\\$) '
-bindkey -e >/dev/null 2>&1
+# System wide functions and aliases
+# Environment stuff goes in /etc/profile
+
+# Aliases:
alias which=whence
-# xterm
+# Setup key bindings:
+bindkey -e >/dev/null 2>&1
+bindkey "^[[1~" beginning-of-line >/dev/null 2>&1
+bindkey "^[[H" beginning-of-line >/dev/null 2>&1
+bindkey "^[[4~" end-of-line >/dev/null 2>&1
+bindkey "^[[F" end-of-line >/dev/null 2>&1
+bindkey "^[[3~" delete-char >/dev/null 2>&1
+bindkey "^[[5~" history-search-backward >/dev/null 2>&1
+bindkey "^[[6~" history-search-forward >/dev/null 2>&1
+
+# xterm:
bindkey \`tput khome\` beginning-of-line >/dev/null 2>&1
bindkey \`tput kend\` end-of-line >/dev/null 2>&1
bindkey \`tput kdch1\` delete-char >/dev/null 2>&1
bindkey \`tput knp\` end-of-history >/dev/null 2>&1
bindkey \`tput kcuu1\` history-beginning-search-backward >/dev/null 2>&1
bindkey \`tput kcud1\` history-beginning-search-forward >/dev/null 2>&1
+
+case "$TERM" in
+ aterm)
+ bindkey '^[[A' up-line-or-history >/dev/null 2>&1
+ bindkey '^[[B' down-line-or-history >/dev/null 2>&1
+ bindkey '^[[D' backward-char >/dev/null 2>&1
+ bindkey '^[[C' forward-char >/dev/null 2>&1
+ ;;
+ xterm*)
+ precmd () { print -Pn "\e]0;%n@%m: %~\a"i; }
+ ;;
+esac
EOF
rm -f Etc/Makefile*