-install Doc/zsh.info* $RPM_BUILD_ROOT%{_infodir}
-
-touch $RPM_BUILD_ROOT%{_sysconfdir}/{zlogout,zlogin,zshenv}
-echo "setopt no_function_argzero" > $RPM_BUILD_ROOT%{_sysconfdir}/zprofile
-echo ". %{_sysconfdir}/profile" >> $RPM_BUILD_ROOT%{_sysconfdir}/zprofile
-
-cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/zshrc
-# System wide functions and aliases
-# Environment stuff goes in /etc/profile
-
-# Aliases:
-alias which=whence
-alias cd='builtin cd'
-alias precmd=' precmd'
-
-setopt histignorespace
-
-# Setup key bindings:
-bindkey -e >/dev/null 2>&1
-
-bindkey \`tput khome\` beginning-of-line >/dev/null 2>&1
-bindkey \`tput kend\` end-of-line >/dev/null 2>&1
-bindkey \`tput kich1\` quoted-insert >/dev/null 2>&1
-bindkey \`tput kdch1\` delete-char >/dev/null 2>&1
-bindkey \`tput kpp\` up-history >/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
- xterm*)
- precmd () { print -Pn "\e]0;%n@%m: %~\a"i; }
- ;;
-esac
-EOF
+install Doc/zsh.info* $RPM_BUILD_ROOT%{_infodir}
+
+touch $RPM_BUILD_ROOT%{_sysconfdir}/{zlogin,zlogout,zshenv}
+touch $RPM_BUILD_ROOT%{_sysconfdir}/{zlogin,zlogout,zprofile,zshenv,zshrc}.zwc
+install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
+install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}