1 # $Revision: 1.33 $ $Date: 2001-07-11 20:07:53 $
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 URL: http://www.zsh.org/
15 Source0: ftp://ftp.zsh.org/pub/zsh/%{name}-%{version}.tar.gz
16 Patch0: %{name}-info.patch
17 Patch1: %{name}-tinfo.patch
18 Patch2: %{name}-addons.patch
19 Patch3: %{name}-paths.patch
20 Patch4: %{name}-no_nis.patch
23 BuildRequires: autoconf
24 BuildRequires: ncurses-devel >= 5.1
25 BuildRequires: glibc-static
26 BuildRequires: ncurses-static
27 BuildRequires: texinfo
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Obsoletes: zsh-doc-html, zsh-doc-ps, zsh-doc-dvi
34 zsh is an enhanced version of the Bourne shell with csh additions and
35 most features of ksh, bash, and tcsh.
38 zsh jest ulepszon± pow³ok± Bourne'a z elementami pow³oki csh. Posiada
39 wiêkszo¶æ cech ksh, bash i tcsh.
42 Summary: Statically linked Enhanced bourne shell
43 Summary(pl): Zaawansowany bourne SHell - linkowany statycznie
44 Group: Applications/Shells
45 Group(de): Applikationen/Shells
46 Group(pl): Aplikacje/Pow³oki
47 Requires: %{name} = %{version}
50 zsh is an enhanced version of the Bourne shell with csh additions and
51 most features of ksh, bash, and tcsh.
53 %description -l pl static
54 zsh jest ulepszon± pow³ok± Bourne'a z elementami pow³oki csh. Posiada
55 wiêkszo¶æ cech ksh, bash i tcsh. W tym pakiecie jest statycznie
71 mv -f Src/zsh Src/zsh.static
74 --enable-maildir-support
77 (cd Doc; makeinfo zsh.texi)
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT{%{_infodir},%{_sysconfdir},%{_bindir}}
83 %{__make} install DESTDIR=$RPM_BUILD_ROOT
85 install Src/zsh.static $RPM_BUILD_ROOT%{_bindir}
86 install Doc/zsh.info* $RPM_BUILD_ROOT%{_infodir}
88 touch $RPM_BUILD_ROOT%{_sysconfdir}/{zlogout,zlogin,zshenv}
89 echo ". /etc/profile" > $RPM_BUILD_ROOT%{_sysconfdir}/zprofile
90 echo -e "PS1='[%n@%m %~]%(!.#.%\$) '\nbindkey -e >/dev/null 2>&1" > \
91 $RPM_BUILD_ROOT%{_sysconfdir}/zshrc
94 gzip -9nf Etc/* README LICENCE ChangeLog META-FAQ
97 if [ ! -f /etc/shells ]; then
98 echo "%{_bindir}/zsh" >> /etc/shells
100 grep -q '^%{_bindir}/zsh$' /etc/shells || echo "%{_bindir}/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 grep -v '^%{_bindir}/zsh$' /etc/shells > /etc/shells.new
107 mv -f /etc/shells.new /etc/shells
111 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
114 if [ ! -f /etc/shells ]; then
115 echo "%{_bindir}/zsh.static" >> /etc/shells
117 grep -q '^%{_bindir}/zsh\.static$' /etc/shells || echo "%{_bindir}/zsh.static" >> /etc/shells
121 if [ "$1" = "0" ]; then
122 grep -v '^%{_bindir}/zsh\.static$' /etc/shells > /etc/shells.new
123 mv -f /etc/shells.new /etc/shells
127 rm -rf $RPM_BUILD_ROOT
130 %defattr(644,root,root,755)
131 %doc *.gz Etc/* Util Functions
132 %attr(755,root,root) %{_bindir}/zsh
133 %config %{_sysconfdir}/*
135 %dir %{_libdir}/zsh/%{version}
136 %attr(755,root,root) %{_libdir}/zsh/%{version}/*
137 %{_infodir}/zsh.info*
138 %{_mandir}/man1/zsh*.1*
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_bindir}/zsh.static