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