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