]> git.pld-linux.org Git - packages/zsh.git/blob - zsh.spec
49d1c5c4cf0d9795f85b509ee6ef66bdf60bf9e7
[packages/zsh.git] / zsh.spec
1 # $Revision: 1.54 $ $Date: 2002-08-18 22:55:00 $
2 #
3 # Conditional build:
4 # _without_static       - without static version
5 #
6 Summary:        Enhanced bourne shell
7 Summary(de):    Enhanced Bourne Shell
8 Summary(es):    Shell bourne mejorada
9 Summary(fr):    Bourne shell amélioré
10 Summary(pl):    Ulepszona pow³oka Bourne'a
11 Summary(pt_BR): Shell bourne melhorada
12 Summary(ru):    ëÏÍÁÎÄÎÙÊ ÐÒÏÃÅÓÓÏÒ (shell) ÐÏÈÏÖÙÊ ÎÁ ksh, ÎÏ Ó ÕÌÕÞÛÅÎÉÑÍÉ
13 Summary(tr):    Geliþmiþ bir BASH sürümü
14 Summary(uk):    ëÏÍÁÎÄÎÉÊ ÐÒÏÃÅÓÏÒ (shell) ÓÈÏÖÉÊ ÎÁ ksh, ÁÌÅ Ú ÐÏËÒÁÝÅÎÎÑÍÉ
15 Name:           zsh
16 Version:        4.0.4
17 Release:        10
18 License:        BSD-like
19 Group:          Applications/Shells
20 URL:            http://www.zsh.org/
21 Source0:        ftp://ftp.zsh.org/pub/zsh/%{name}-%{version}.tar.gz
22 Source1:        %{name}.1.pl
23 Patch0:         %{name}-info.patch
24 Patch1:         %{name}-tinfo.patch
25 Patch2:         %{name}-addons.patch
26 Patch3:         %{name}-paths.patch
27 Patch4:         %{name}-no_nis.patch
28 PreReq:         grep
29 PreReq:         fileutils
30 BuildRequires:  autoconf
31 BuildRequires:  ncurses-devel >= 5.1
32 BuildRequires:  texinfo
33 %{!?_without_static:BuildRequires:      glibc-static}
34 %{!?_without_static:BuildRequires:      ncurses-static}
35 Requires(post,preun):   grep
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 Obsoletes:      zsh-doc-html, zsh-doc-ps, zsh-doc-dvi
38
39 %define         _bindir         /bin
40
41 %description
42 zsh is an enhanced version of the Bourne shell with csh additions and
43 most features of ksh, bash, and tcsh.
44
45 %description -l es
46 zsh es una versión mejorada del bourne shell con estas
47 características:
48 - muy próximo de la gramática del ksh/sh, con adiciones csh,
49 - varias características del ksh, bash y tcsh,
50 - 75 funciones empotradas, 89 opciones, 154 combinaciones de teclas,
51 - selección,
52 - funciones shell ...y mucho más.
53
54 %description -l ja
55 zsh ¥·¥§¥ë¤ÏÂÐÏÃŪ¤Ê¥í¥°¥¤¥ó¥·¥§¥ë¤È¤·¤ÆÍøÍѲÄǽ¤Ê¥³¥Þ¥ó¥É¥¤¥ó¥¿¥ê¥¿
56 ¤Ç¤¢¤ê¡¢¥·¥§¥ë¥¹¥¯¥ê¥×¥È¥³¥Þ¥ó¥É¤â½èÍý¤Ç¤­¤Þ¤¹. zsh ¤Ï ksh(the Korn
57 shell) ¤Ë»÷¤Æ¤¤¤Þ¤¹¤¬,¤«¤Ê¤ê³ÈÄ¥¤µ¤ì¤Æ¤¤¤Þ¤¹. zsh
58 ¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç¤ÎÊÔ½¸µ¡Ç½, ÁȤ߹þ¤Þ¤ì¤¿¥¹¥Ú¥ë½¤Àµµ¡Ç½, ¥×¥í¥°¥é¥ß¥ó
59 ¥°²Äǽ¤Ê¥³¥Þ¥ó¥ÉÊä´°µ¡Ç½, (ưŪ¥í¡¼¥É¤µ¤ì¤ë)¥·¥§¥ëµ¡Ç½, ¥Ò¥¹¥È¥êµ¡¹½
60 ¤Ê¤É¤ò»ý¤Á¤Þ¤¹.
61
62 %description -l pl
63 zsh jest ulepszon± pow³ok± Bourne'a z elementami pow³oki csh. Posiada
64 wiêkszo¶æ cech ksh, bash i tcsh.
65
66 %description -l pt_BR
67 zsh é uma versão melhorada do bourne shell com essas características:
68 - muito próximo da gramática do ksh/sh, com adições csh,
69 - várias características do ksh, bash e tcsh,
70 - 75 funções embutidas, 89 opções, 154 combinações de teclas,
71 - seleção,
72 - funções shell ...e muito mais.
73
74 %description -l ru
75 zsh - ÜÔÏ ËÏÍÁÎÄÎÙÊ ÐÒÏÃÅÓÓÏÒ ÎÁÐÏÍÉÎÁÀÝÉÊ ksh (Korn shell), ÎÏ
76 ×ËÌÀÞÁÀÝÉÊ ÍÎÏÇÏ ÕÌÕÞÛÅÎÉÊ. zsh ÐÏÄÄÅÒÖÉ×ÁÅÔ ÒÅÄÁËÔÉÒÏ×ÁÎÉÅ ËÏÍÁÎÄÎÏÊ
77 ÓÔÒÏËÉ, ×ÓÔÒÏÅÎÎÕÀ ËÏÒÒÅËÃÉÀ ÎÁÐÉÓÁÎÉÑ, ÐÒÏÇÒÁÍÍÉÒÕÅÍÏÅ ÚÁ×ÅÒÛÅÎÉÅ
78 ËÏÍÁÎÄ, shell-ÆÕÎËÃÉÉ (Ó Á×ÔÏÚÁÇÒÕÚËÏÊ), ÉÓÔÏÒÉÀ ËÏÍÁÎÄ É ÍÎÏÇÏÅ
79 ÄÒÕÇÏÅ.
80
81 %description -l uk
82 zsh - ÃÅ ËÏÍÁÎÄÎÉÊ ÐÒÏÃÅÓÏÒ, ÝÏ ÎÁÇÁÄÕ¤ ksh (Korn shell), ÁÌÅ ×ËÌÀÞÁ¤
83 ÂÁÇÁÔÏ ÐÏËÒÁÝÅÎØ. zsh Ð¦ÄÔÒÉÍÕ¤ ÒÅÄÁÇÕ×ÁÎÎÑ ËÏÍÁÎÄÎÏÇÏ ÒÑÄËÁ,
84 ×ÂÕÄÏ×ÁÎÕ ËÏÒÅËæÀ ÎÁÐÉÓÁÎÎÑ, ÐÒÏÇÒÁÍÏ×ÁÎÅ ÚÁ×ÅÒÛÅÎÎÑ ËÏÍÁÎÄ,
85 shell-ÆÕÎË槠(Ú Á×ÔÏÚÁ×ÁÎÔÁÖÅÎÎÑÍ), ¦ÓÔÏÒ¦À ËÏÍÁÎÄ ÔÁ ÂÁÇÁÔÏ ¦ÎÛÏÇÏ.
86
87 %package completions
88 Summary:        Files needed for advanced TAB-completion
89 Summary(pl):    Pliki potrzebne dla zaawansowanej TAB-completion
90 Group:          Applications/Shells
91 Requires:       %{name} = %{version}
92
93 %description completions
94 This package contains files needed for advanced tab completion in zsh.
95
96 %description completions -l pl
97 Ten pakiet zawiera pliki wymagane przez zsh dla zaawansowanej
98 TAB-completion.
99
100 %package static
101 Summary:        Statically linked Enhanced bourne shell
102 Summary(pl):    Zaawansowany bourne SHell - linkowany statycznie
103 Group:          Applications/Shells
104 Requires:       %{name} = %{version}
105 Requires(post,preun):   grep
106
107 %description static
108 zsh is an enhanced version of the Bourne shell with csh additions and
109 most features of ksh, bash, and tcsh.
110
111 %description static -l pl
112 zsh jest ulepszon± pow³ok± Bourne'a z elementami pow³oki csh. Posiada
113 wiêkszo¶æ cech ksh, bash i tcsh. W tym pakiecie jest statycznie
114 linkowany.
115
116 %prep
117 %setup -q
118 %patch0 -p1
119 %patch1 -p1
120 %patch2 -p1
121 %patch3 -p1
122 %patch4 -p1
123
124 %build
125 %{__autoconf}
126
127 %if %{!?_without_static:1}%{?_without_static:0}
128 LDFLAGS="%{rpmldflags} -static"
129 %configure
130 %{__make}
131 mv -f Src/zsh Src/zsh.static
132 LDFLAGS="%{rpmldflags}"
133 %endif
134
135 %configure \
136         --enable-maildir-support
137 %{__make}
138
139 (cd Doc; makeinfo zsh.texi)
140
141 %install
142 rm -rf $RPM_BUILD_ROOT
143 install -d $RPM_BUILD_ROOT{%{_infodir},%{_sysconfdir},%{_bindir},%{_mandir}/pl/man1}
144
145 %{__make} install DESTDIR=$RPM_BUILD_ROOT
146
147 %{!?_without_static:install Src/zsh.static $RPM_BUILD_ROOT%{_bindir}}
148 install Doc/zsh.info*   $RPM_BUILD_ROOT%{_infodir}
149
150 touch $RPM_BUILD_ROOT%{_sysconfdir}/{zlogout,zlogin,zshenv}
151 echo "setopt no_function_argzero" > $RPM_BUILD_ROOT%{_sysconfdir}/zprofile
152 echo ". %{_sysconfdir}/profile" >> $RPM_BUILD_ROOT%{_sysconfdir}/zprofile
153
154 echo -e "PS1='[%%n@%%m %%~]%%(!.#.%%\\$) '\nbindkey -e >/dev/null 2>&1\nalias which=whence" > \
155                                                 $RPM_BUILD_ROOT%{_sysconfdir}/zshrc
156
157 rm -f Etc/Makefile*
158 find Functions Util StartupFiles -name .distfiles -o -name .cvsignore | xargs rm -f
159 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/zsh.1
160
161 %post
162 if [ ! -f /etc/shells ]; then
163         echo "%{_bindir}/zsh" >> /etc/shells
164 else
165         grep -q '^%{_bindir}/zsh$' /etc/shells || echo "%{_bindir}/zsh" >> /etc/shells
166 fi
167 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
168
169 %preun
170 if [ "$1" = "0" ]; then
171         grep -v '^%{_bindir}/zsh$' /etc/shells > /etc/shells.new
172         mv -f /etc/shells.new /etc/shells
173 fi
174
175 %postun
176 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
177
178 %post static
179 if [ ! -f /etc/shells ]; then
180         echo "%{_bindir}/zsh.static" >> /etc/shells
181 else
182         grep -q '^%{_bindir}/zsh\.static$' /etc/shells || echo "%{_bindir}/zsh.static" >> /etc/shells
183 fi
184
185 %preun static
186 if [ "$1" = "0" ]; then
187         grep -v '^%{_bindir}/zsh\.static$' /etc/shells > /etc/shells.new
188         mv -f /etc/shells.new /etc/shells
189 fi
190
191 %clean
192 rm -rf $RPM_BUILD_ROOT
193
194 %files
195 %defattr(644,root,root,755)
196 %doc Etc/* README LICENCE ChangeLog META-FAQ Util StartupFiles
197 %attr(755,root,root) %{_bindir}/zsh
198 %config(noreplace,missingok) %verify(not md5 size mtime) %{_sysconfdir}/*
199 %dir %{_libdir}/zsh
200 %dir %{_libdir}/zsh/%{version}
201 %dir %{_datadir}/zsh/
202 %dir %{_datadir}/zsh/site-functions
203 %dir %{_datadir}/zsh/%{version}
204 %dir %{_datadir}/zsh/%{version}/functions
205 %{_datadir}/zsh/%{version}/functions/[^_c]*
206 %{_datadir}/zsh/%{version}/functions/c[^o]*
207 %{_datadir}/zsh/%{version}/functions/co[^m]*
208 %attr(755,root,root) %{_libdir}/zsh/%{version}/*
209 %{_infodir}/zsh.info*
210 %{_mandir}/man1/zsh*.1*
211 %lang(pl) %{_mandir}/pl/man1/zsh*.1*
212
213 %files completions
214 %defattr(644,root,root,755)
215 %{_datadir}/zsh/%{version}/functions/comp*
216 %{_datadir}/zsh/%{version}/functions/_*
217
218 %if %{!?_without_static:1}%{?_without_static:0}
219 %files static
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_bindir}/zsh.static
222 %endif
This page took 0.080345 seconds and 3 git commands to generate.