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