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