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