1 # $Revision: 1.16 $ $Date: 2000-06-09 07:24:26 $
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
13 Source0: ftp://ftp.zsh.org/pub/zsh/%{name}-%{version}.tar.gz
14 Source1: ftp://ftp.zsh.org/pub/zsh/%{name}-%{version}-doc.tar.gz
15 Patch0: zsh-info.patch
16 Patch1: zsh-DESTDIR.patch
17 Patch2: zsh-sys_capability.patch
18 Patch3: zsh-cap_get_proc.patch
19 Patch4: zsh-tinfo.patch
20 Patch5: zsh-addons.patch
24 BuildRequires: ncurses-devel
25 BuildRequires: glibc-static
26 BuildRequires: ncurses-static
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define _exec_prefix /
32 zsh is an enhanced version of the Bourne shell with csh additions and
33 most features of ksh, bash, and tcsh.
36 zsh jest ulepszon± pow³ok± Bourne'a z elementami pow³oki csh. Posiada
37 wiêkszo¶æ cech ksh, bash i tcsh.
40 Summary: Statically linked Enhanced bourne shell
41 Summary(pl): Zaawansowany bourne SHell - linkowany statycznie
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
56 Summary: HTML documentation for zsh
60 HTML documentation for zsh.
63 Summary: Postscript version of zsh documentation
67 Postscript version of zsh documentation.
70 Summary: DVI version of zsh documentation
74 DVI version of zsh documentation.
89 LDFLAGS="-static -s"; export LDFLAGS
92 mv Src/zsh Src/zsh.static
94 LDFLAGS="-s"; export LDFLAGS
95 %configure --enable-maildir-support
99 rm -rf $RPM_BUILD_ROOT
100 %{__make} install DESTDIR=$RPM_BUILD_ROOT
102 install Src/zsh.static $RPM_BUILD_ROOT%{_bindir}
104 install -d $RPM_BUILD_ROOT%{_infodir}
105 install Doc/zsh.info* $RPM_BUILD_ROOT%{_infodir}
107 install -d $RPM_BUILD_ROOT%{_sysconfdir}
108 touch $RPM_BUILD_ROOT%{_sysconfdir}/{zlogout,zprofile,zshrc,zlogin,zshenv}
111 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
112 Etc/* README ChangeLog META-FAQ \
113 $RPM_BUILD_ROOT/%{_infodir}/zsh.info*
116 if [ ! -f /etc/shells ]; then
117 echo "/bin/zsh" > /etc/shells
119 if ! grep '^/bin/zsh$' /etc/shells > /dev/null; then
120 echo "/bin/zsh" >> /etc/shells
124 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
127 if [ "$1" = "0" ]; then
128 grep -v /bin/zsh /etc/shells > /etc/shells.new
129 mv /etc/shells.new /etc/shells
132 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
135 if [ ! -f /etc/shells ]; then
136 echo "/bin/zsh.static" > /etc/shells
138 grep '^/bin/zsh.static$' /etc/shells > /dev/null || echo "/bin/zsh.static" >> /etc/shells
142 if [ ! -x /bin/zsh.static ]; then
143 grep -v '^/bin/zsh.static$' /etc/shells > /etc/shells.rpm
144 mv /etc/shells.rpm /etc/shells
148 rm -rf $RPM_BUILD_ROOT
151 %defattr(644,root,root,755)
152 %doc {META-FAQ,README,ChangeLog}.gz Etc/* Util Functions
153 %doc %{_infodir}/zsh.info*
154 %dir %{_libdir}/zsh/%{version}
155 %config %{_sysconfdir}/*
157 %attr(755,root,root) %{_bindir}/zsh
158 %attr(755,root,root) %{_libdir}/zsh/%{version}/*
159 %{_mandir}/man1/zsh*.1.gz
162 %defattr(644,root,root,755)
163 %attr(755,root,root) %{_bindir}/zsh.static
166 %defattr(644,root,root,755)
170 %defattr(644,root,root,755)
174 %defattr(644,root,root,755)