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