1 # $Revision: 1.21 $ $Date: 2000-12-04 07:19:01 $
2 Summary: Enhanced bourne shell
3 Summary(de): Enhanced Bourne Shell
4 Summary(fr): Bourne shell amélioré
5 Summary(tr): Geliþmiþ bir BASH sürümü
6 Summary(pl): Ulepszona pow³oka Bourne'a
11 Group: Applications/Shells
12 Group(de): Applikationen/Shells
13 Group(pl): Aplikacje/Pow³oki
14 Source0: ftp://ftp.zsh.org/pub/zsh/%{name}-%{version}.tar.gz
15 Patch0: %{name}-info.patch
16 Patch1: %{name}-DESTDIR.patch
17 Patch2: %{name}-sys_capability.patch
18 Patch3: %{name}-cap_get_proc.patch
19 Patch4: %{name}-tinfo.patch
20 Patch5: %{name}-addons.patch
21 BuildRequires: ncurses-devel >= 5.1
22 BuildRequires: glibc-static
23 BuildRequires: ncurses-static
24 BuildRequires: texinfo
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Obsoletes: zsh-doc-html, zsh-doc-ps, zsh-doc-dvi
31 zsh is an enhanced version of the Bourne shell with csh additions and
32 most features of ksh, bash, and tcsh.
35 zsh jest ulepszon± pow³ok± Bourne'a z elementami pow³oki csh. Posiada
36 wiêkszo¶æ cech ksh, bash i tcsh.
39 Summary: Statically linked Enhanced bourne shell
40 Summary(pl): Zaawansowany bourne SHell - linkowany statycznie
41 Group: Applications/Shells
42 Group(de): Applikationen/Shells
43 Group(pl): Aplikacje/Pow³oki
44 Requires: %{name} = %{version}
47 zsh is an enhanced version of the Bourne shell with csh additions and
48 most features of ksh, bash, and tcsh.
50 %description -l pl static
51 zsh jest ulepszon± pow³ok± Bourne'a z elementami pow³oki csh. Posiada
52 wiêkszo¶æ cech ksh, bash i tcsh. W tym pakiecie jest statycznie
69 mv -f Src/zsh Src/zsh.static
72 --enable-maildir-support
75 (cd Doc; makeinfo zsh.texi)
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT{%{_infodir},%{_sysconfdir}}
81 %{__make} install DESTDIR=$RPM_BUILD_ROOT
83 install Src/zsh.static $RPM_BUILD_ROOT%{_bindir}
84 install Doc/zsh.info* $RPM_BUILD_ROOT%{_infodir}
86 touch $RPM_BUILD_ROOT%{_sysconfdir}/{zlogout,zprofile,zshrc,zlogin,zshenv}
89 gzip -9nf Etc/* README ChangeLog META-FAQ
92 if [ ! -f /etc/shells ]; then
93 echo "/bin/zsh" >> /etc/shells
96 elif [ "$SHNAME" = "/bin/zsh" ]; then
100 [ -n "$HAS_ZSH" ] || echo "/bin/zsh" >> /etc/shells
102 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
105 if [ "$1" = "0" ]; then
106 while read SHNAME; do
107 [ "$SHNAME" = "/bin/zsh" ] ||\
109 done < /etc/shells > /etc/shells.new
110 mv -f /etc/shells.new /etc/shells
112 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
115 if [ ! -f /etc/shells ]; then
116 echo "/bin/zsh.static" >> /etc/shells
118 while read SHNAME; do
119 elif [ "$SHNAME" = "/bin/zsh.static" ]; then
123 [ -n "$HAS_ZSH_STATIC" ] || echo "/bin/zsh.static" >> /etc/shells
127 if [ "$1" = "0" ]; then
128 while read SHNAME; do
129 [ "$SHNAME" = "/bin/zsh.static" ] ||\
131 done < /etc/shells > /etc/shells.new
132 mv -f /etc/shells.new /etc/shells
136 rm -rf $RPM_BUILD_ROOT
139 %defattr(644,root,root,755)
140 %doc {META-FAQ,README,ChangeLog}.gz Etc/* Util Functions
141 %doc %{_infodir}/zsh.info*
142 %dir %{_libdir}/zsh/%{version}
143 %config %{_sysconfdir}/*
145 %attr(755,root,root) %{_bindir}/zsh
146 %attr(755,root,root) %{_libdir}/zsh/%{version}/*
147 %{_mandir}/man1/zsh*.1.gz
150 %defattr(644,root,root,755)
151 %attr(755,root,root) %{_bindir}/zsh.static