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