]> git.pld-linux.org Git - packages/zsh.git/blob - zsh.spec
947b3aa1f74879f4a27febb3255f2fdc86dddf85
[packages/zsh.git] / zsh.spec
1 # $Revision: 1.59 $ $Date: 2002-11-21 00:29:55 $
2 #
3 # Conditional build:
4 # _without_static       - without static version
5 #
6 Summary:        Enhanced bourne shell
7 Summary(de):    Enhanced Bourne Shell
8 Summary(es):    Shell bourne mejorada
9 Summary(fr):    Bourne shell amélioré
10 Summary(pl):    Ulepszona pow³oka Bourne'a
11 Summary(pt_BR): Shell bourne melhorada
12 Summary(ru):    ëÏÍÁÎÄÎÙÊ ÐÒÏÃÅÓÓÏÒ (shell) ÐÏÈÏÖÙÊ ÎÁ ksh, ÎÏ Ó ÕÌÕÞÛÅÎÉÑÍÉ
13 Summary(tr):    Geliþmiþ bir BASH sürümü
14 Summary(uk):    ëÏÍÁÎÄÎÉÊ ÐÒÏÃÅÓÏÒ (shell) ÓÈÏÖÉÊ ÎÁ ksh, ÁÌÅ Ú ÐÏËÒÁÝÅÎÎÑÍÉ
15 Name:           zsh
16 Version:        4.0.6
17 Release:        3
18 License:        BSD-like
19 Group:          Applications/Shells
20 URL:            http://www.zsh.org/
21 Source0:        ftp://ftp.zsh.org/pub/zsh/%{name}-%{version}.tar.gz
22 Source1:        %{name}.1.pl
23 Source2:        http://zsh.sunsite.dk/Guide/zshguide.pdf
24 Patch0:         %{name}-info.patch
25 Patch1:         %{name}-tinfo.patch
26 Patch2:         %{name}-addons.patch
27 Patch3:         %{name}-paths.patch
28 Patch4:         %{name}-no_nis.patch
29 PreReq:         grep
30 PreReq:         fileutils
31 BuildRequires:  autoconf
32 BuildRequires:  ncurses-devel >= 5.1
33 BuildRequires:  texinfo
34 %{!?_without_static:BuildRequires:      glibc-static}
35 %{!?_without_static:BuildRequires:      ncurses-static}
36 Requires(post,preun):   grep
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Obsoletes:      zsh-doc-html, zsh-doc-ps, zsh-doc-dvi
39
40 %define         _bindir         /bin
41
42 %description
43 zsh is an enhanced version of the Bourne shell with csh additions and
44 most features of ksh, bash, and tcsh.
45
46 %description -l es
47 zsh es una versión mejorada del bourne shell con estas
48 características:
49 - muy próximo de la gramática del ksh/sh, con adiciones csh,
50 - varias características del ksh, bash y tcsh,
51 - 75 funciones empotradas, 89 opciones, 154 combinaciones de teclas,
52 - selección,
53 - funciones shell ...y mucho más.
54
55 %description -l ja
56 zsh ¥·¥§¥ë¤ÏÂÐÏÃŪ¤Ê¥í¥°¥¤¥ó¥·¥§¥ë¤È¤·¤ÆÍøÍѲÄǽ¤Ê¥³¥Þ¥ó¥É¥¤¥ó¥¿¥ê¥¿
57 ¤Ç¤¢¤ê¡¢¥·¥§¥ë¥¹¥¯¥ê¥×¥È¥³¥Þ¥ó¥É¤â½èÍý¤Ç¤­¤Þ¤¹. zsh ¤Ï ksh(the Korn
58 shell) ¤Ë»÷¤Æ¤¤¤Þ¤¹¤¬,¤«¤Ê¤ê³ÈÄ¥¤µ¤ì¤Æ¤¤¤Þ¤¹. zsh
59 ¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç¤ÎÊÔ½¸µ¡Ç½, ÁȤ߹þ¤Þ¤ì¤¿¥¹¥Ú¥ë½¤Àµµ¡Ç½, ¥×¥í¥°¥é¥ß¥ó
60 ¥°²Äǽ¤Ê¥³¥Þ¥ó¥ÉÊä´°µ¡Ç½, (ưŪ¥í¡¼¥É¤µ¤ì¤ë)¥·¥§¥ëµ¡Ç½, ¥Ò¥¹¥È¥êµ¡¹½
61 ¤Ê¤É¤ò»ý¤Á¤Þ¤¹.
62
63 %description -l pl
64 zsh jest ulepszon± pow³ok± Bourne'a z elementami pow³oki csh. Posiada
65 wiêkszo¶æ cech ksh, bash i tcsh.
66
67 %description -l pt_BR
68 zsh é uma versão melhorada do bourne shell com essas características:
69 - muito próximo da gramática do ksh/sh, com adições csh,
70 - várias características do ksh, bash e tcsh,
71 - 75 funções embutidas, 89 opções, 154 combinações de teclas,
72 - seleção,
73 - funções shell ...e muito mais.
74
75 %description -l ru
76 zsh - ÜÔÏ ËÏÍÁÎÄÎÙÊ ÐÒÏÃÅÓÓÏÒ ÎÁÐÏÍÉÎÁÀÝÉÊ ksh (Korn shell), ÎÏ
77 ×ËÌÀÞÁÀÝÉÊ ÍÎÏÇÏ ÕÌÕÞÛÅÎÉÊ. zsh ÐÏÄÄÅÒÖÉ×ÁÅÔ ÒÅÄÁËÔÉÒÏ×ÁÎÉÅ ËÏÍÁÎÄÎÏÊ
78 ÓÔÒÏËÉ, ×ÓÔÒÏÅÎÎÕÀ ËÏÒÒÅËÃÉÀ ÎÁÐÉÓÁÎÉÑ, ÐÒÏÇÒÁÍÍÉÒÕÅÍÏÅ ÚÁ×ÅÒÛÅÎÉÅ
79 ËÏÍÁÎÄ, shell-ÆÕÎËÃÉÉ (Ó Á×ÔÏÚÁÇÒÕÚËÏÊ), ÉÓÔÏÒÉÀ ËÏÍÁÎÄ É ÍÎÏÇÏÅ
80 ÄÒÕÇÏÅ.
81
82 %description -l uk
83 zsh - ÃÅ ËÏÍÁÎÄÎÉÊ ÐÒÏÃÅÓÏÒ, ÝÏ ÎÁÇÁÄÕ¤ ksh (Korn shell), ÁÌÅ ×ËÌÀÞÁ¤
84 ÂÁÇÁÔÏ ÐÏËÒÁÝÅÎØ. zsh Ð¦ÄÔÒÉÍÕ¤ ÒÅÄÁÇÕ×ÁÎÎÑ ËÏÍÁÎÄÎÏÇÏ ÒÑÄËÁ,
85 ×ÂÕÄÏ×ÁÎÕ ËÏÒÅËæÀ ÎÁÐÉÓÁÎÎÑ, ÐÒÏÇÒÁÍÏ×ÁÎÅ ÚÁ×ÅÒÛÅÎÎÑ ËÏÍÁÎÄ,
86 shell-ÆÕÎË槠(Ú Á×ÔÏÚÁ×ÁÎÔÁÖÅÎÎÑÍ), ¦ÓÔÏÒ¦À ËÏÍÁÎÄ ÔÁ ÂÁÇÁÔÏ ¦ÎÛÏÇÏ.
87
88 %package completions
89 Summary:        Files needed for advanced TAB-completion
90 Summary(pl):    Pliki potrzebne dla zaawansowanej TAB-completion
91 Group:          Applications/Shells
92 Requires:       %{name} = %{version}
93
94 %description completions
95 This package contains files needed for advanced tab completion in zsh.
96
97 %description completions -l pl
98 Ten pakiet zawiera pliki wymagane przez zsh dla zaawansowanej
99 TAB-completion.
100
101 %package static
102 Summary:        Statically linked Enhanced bourne shell
103 Summary(pl):    Zaawansowany bourne SHell - linkowany statycznie
104 Group:          Applications/Shells
105 Requires:       %{name} = %{version}
106 Requires(post,preun):   grep
107
108 %description static
109 zsh is an enhanced version of the Bourne shell with csh additions and
110 most features of ksh, bash, and tcsh.
111
112 %description static -l pl
113 zsh jest ulepszon± pow³ok± Bourne'a z elementami pow³oki csh. Posiada
114 wiêkszo¶æ cech ksh, bash i tcsh. W tym pakiecie jest statycznie
115 linkowany.
116
117 %package guide
118 Summary:        A User's Guide to the Z-Shell
119 Summary(pl):    Podrêcznik U¿ytkownika Z-Shella
120 Group:          Applications/Shells
121 URL:            http://zsh.sunsite.dk/Guide/
122
123 %description guide
124 A User's Guide to the Z-Shell.
125
126 %description guide -l pl
127 Podrêcznik U¿ytkownika Z-Shella.
128
129 %prep
130 %setup -q
131 %patch0 -p1
132 %patch1 -p1
133 %patch2 -p1
134 %patch3 -p1
135 %patch4 -p1
136
137 install %{SOURCE2} .
138
139 %build
140 %{__autoconf}
141
142 %if %{!?_without_static:1}%{?_without_static:0}
143 LDFLAGS="%{rpmldflags} -static"
144 %configure
145 %{__make}
146 mv -f Src/zsh Src/zsh.static
147 LDFLAGS="%{rpmldflags}"
148 %endif
149
150 %configure \
151         --enable-maildir-support
152 %{__make}
153
154 (cd Doc; makeinfo zsh.texi)
155
156 %install
157 rm -rf $RPM_BUILD_ROOT
158 install -d $RPM_BUILD_ROOT{%{_infodir},%{_sysconfdir},%{_bindir},%{_mandir}/pl/man1}
159
160 %{__make} install DESTDIR=$RPM_BUILD_ROOT
161
162 %{!?_without_static:install Src/zsh.static $RPM_BUILD_ROOT%{_bindir}}
163 install Doc/zsh.info*   $RPM_BUILD_ROOT%{_infodir}
164
165 touch $RPM_BUILD_ROOT%{_sysconfdir}/{zlogout,zlogin,zshenv}
166 echo "setopt no_function_argzero" > $RPM_BUILD_ROOT%{_sysconfdir}/zprofile
167 echo ". %{_sysconfdir}/profile" >> $RPM_BUILD_ROOT%{_sysconfdir}/zprofile
168
169 cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/zshrc
170 PS1='[%%n@%%m %%~]%%(!.#.%%\\$) '
171 bindkey -e >/dev/null 2>&1
172 alias which=whence
173
174 # xterm
175 bindkey \`tput khome\` beginning-of-line >/dev/null 2>&1
176 bindkey \`tput kend\` end-of-line >/dev/null 2>&1
177 bindkey \`tput kdch1\` delete-char >/dev/null 2>&1
178 bindkey \`tput kpp\` up-history >/dev/null 2>&1
179 bindkey \`tput knp\` end-of-history >/dev/null 2>&1
180 bindkey \`tput kcuu1\` history-beginning-search-backward >/dev/null 2>&1
181 bindkey \`tput kcud1\` history-beginning-search-forward >/dev/null 2>&1
182 EOF
183
184 rm -f Etc/Makefile*
185 find Functions Util StartupFiles -name .distfiles -o -name .cvsignore | xargs rm -f
186 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/zsh.1
187
188 %post
189 if [ ! -f /etc/shells ]; then
190         echo "%{_bindir}/zsh" >> /etc/shells
191 else
192         grep -q '^%{_bindir}/zsh$' /etc/shells || echo "%{_bindir}/zsh" >> /etc/shells
193 fi
194 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
195
196 ln -sf %{_datadir}/zsh/%{version} %{_datadir}/zsh/latest
197
198 %preun
199 if [ "$1" = "0" ]; then
200         grep -v '^%{_bindir}/zsh$' /etc/shells > /etc/shells.new
201         mv -f /etc/shells.new /etc/shells
202 fi
203 rm -rf %{_datadir}/zsh/latest
204
205 %postun
206 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
207
208 %post static
209 if [ ! -f /etc/shells ]; then
210         echo "%{_bindir}/zsh.static" >> /etc/shells
211 else
212         grep -q '^%{_bindir}/zsh\.static$' /etc/shells || echo "%{_bindir}/zsh.static" >> /etc/shells
213 fi
214
215 %preun static
216 if [ "$1" = "0" ]; then
217         grep -v '^%{_bindir}/zsh\.static$' /etc/shells > /etc/shells.new
218         mv -f /etc/shells.new /etc/shells
219 fi
220
221 %clean
222 rm -rf $RPM_BUILD_ROOT
223
224 %files
225 %defattr(644,root,root,755)
226 %doc Etc/* README LICENCE ChangeLog META-FAQ Util StartupFiles
227 %attr(755,root,root) %{_bindir}/zsh
228 %config(noreplace,missingok) %verify(not md5 size mtime) %{_sysconfdir}/*
229 %dir %{_libdir}/zsh
230 %dir %{_libdir}/zsh/%{version}
231 %dir %{_datadir}/zsh/
232 %dir %{_datadir}/zsh/site-functions
233 %dir %{_datadir}/zsh/%{version}
234 %dir %{_datadir}/zsh/%{version}/functions
235 %{_datadir}/zsh/%{version}/functions/[^_c]*
236 %{_datadir}/zsh/%{version}/functions/c[^o]*
237 %{_datadir}/zsh/%{version}/functions/co[^m]*
238 %attr(755,root,root) %{_libdir}/zsh/%{version}/*
239 %{_infodir}/zsh.info*
240 %{_mandir}/man1/zsh*.1*
241 %lang(pl) %{_mandir}/pl/man1/zsh*.1*
242
243 %files completions
244 %defattr(644,root,root,755)
245 %{_datadir}/zsh/%{version}/functions/comp*
246 %{_datadir}/zsh/%{version}/functions/_*
247
248 %files guide
249 %defattr(644,root,root,755)
250 %doc zshguide.pdf
251
252 %if %{!?_without_static:1}%{?_without_static:0}
253 %files static
254 %defattr(644,root,root,755)
255 %attr(755,root,root) %{_bindir}/zsh.static
256 %endif
This page took 0.055435 seconds and 3 git commands to generate.