]> git.pld-linux.org Git - packages/zsh.git/commitdiff
- fixed %install,
authorTomasz Pala <gotar@pld-linux.org>
Wed, 31 Mar 2004 00:26:40 +0000 (00:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added compilation of configuration files to %post,
- release 2.

Changed files:
    zsh.spec -> 1.98

zsh.spec

index 4021b5f74de5f4914bf9f4a8f6fffa679e5bde39..9c0c0cc7e2842216f374ccc89a51452e8c13336e 100644 (file)
--- a/zsh.spec
+++ b/zsh.spec
@@ -13,7 +13,7 @@ Summary(tr):  Geli
 Summary(uk):   ëÏÍÁÎÄÎÉÊ ÐÒÏÃÅÓÏÒ (shell) ÓÈÏÖÉÊ ÎÁ ksh, ÁÌÅ Ú ÐÏËÒÁÝÅÎÎÑÍÉ
 Name:          zsh
 Version:       4.2.0
-Release:       1
+Release:       2
 License:       BSD-like
 Group:         Applications/Shells
 URL:           http://www.zsh.org/
@@ -172,7 +172,7 @@ install -d $RPM_BUILD_ROOT{%{_infodir},%{_sysconfdir},%{_bindir},%{_mandir}/pl/m
 %{?with_static:install Src/zsh.static $RPM_BUILD_ROOT%{_bindir}}
 install Doc/zsh.info* $RPM_BUILD_ROOT%{_infodir}
 
-:> $RPM_BUILD_ROOT%{_sysconfdir}/{zlogin,zlogout,zshenv}
+touch $RPM_BUILD_ROOT%{_sysconfdir}/{zlogin,zlogout,zshenv}
 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}
 
@@ -194,6 +194,9 @@ else
        grep -q '^%{_bindir}/zsh$' /etc/shells || echo "%{_bindir}/zsh" >> /etc/shells
 fi
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
+for i in zlogin zlogout zprofile zshenv zshrc; do
+       [ -f /etc/$i ] && zsh -c "zcompile /etc/$i"
+done
 
 %preun
 if [ "$1" = "0" ]; then
This page took 0.083988 seconds and 4 git commands to generate.