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