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