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