]> git.pld-linux.org Git - packages/zsh.git/blob - zsh.spec
- merge translations from KSI.
[packages/zsh.git] / zsh.spec
1 # $Revision: 1.49 $ $Date: 2002-04-13 06:13:08 $
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:        6
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 ru
66 zsh - ÜÔÏ ËÏÍÁÎÄÎÙÊ ÐÒÏÃÅÓÓÏÒ ÎÁÐÏÍÉÎÁÀÝÉÊ ksh (Korn shell), ÎÏ
67 ×ËÌÀÞÁÀÝÉÊ ÍÎÏÇÏ ÕÌÕÞÛÅÎÉÊ. zsh ÐÏÄÄÅÒÖÉ×ÁÅÔ ÒÅÄÁËÔÉÒÏ×ÁÎÉÅ ËÏÍÁÎÄÎÏÊ
68 ÓÔÒÏËÉ, ×ÓÔÒÏÅÎÎÕÀ ËÏÒÒÅËÃÉÀ ÎÁÐÉÓÁÎÉÑ, ÐÒÏÇÒÁÍÍÉÒÕÅÍÏÅ ÚÁ×ÅÒÛÅÎÉÅ
69 ËÏÍÁÎÄ, shell-ÆÕÎËÃÉÉ (Ó Á×ÔÏÚÁÇÒÕÚËÏÊ), ÉÓÔÏÒÉÀ ËÏÍÁÎÄ É ÍÎÏÇÏÅ
70 ÄÒÕÇÏÅ.
71
72 %description -l uk
73 zsh - ÃÅ ËÏÍÁÎÄÎÉÊ ÐÒÏÃÅÓÏÒ, ÝÏ ÎÁÇÁÄÕ¤ ksh (Korn shell), ÁÌÅ ×ËÌÀÞÁ¤
74 ÂÁÇÁÔÏ ÐÏËÒÁÝÅÎØ. zsh Ð¦ÄÔÒÉÍÕ¤ ÒÅÄÁÇÕ×ÁÎÎÑ ËÏÍÁÎÄÎÏÇÏ ÒÑÄËÁ,
75 ×ÂÕÄÏ×ÁÎÕ ËÏÒÅËæÀ ÎÁÐÉÓÁÎÎÑ, ÐÒÏÇÒÁÍÏ×ÁÎÅ ÚÁ×ÅÒÛÅÎÎÑ ËÏÍÁÎÄ,
76 shell-ÆÕÎË槠(Ú Á×ÔÏÚÁ×ÁÎÔÁÖÅÎÎÑÍ), ¦ÓÔÏÒ¦À ËÏÍÁÎÄ ÔÁ ÂÁÇÁÔÏ ¦ÎÛÏÇÏ.
77
78 %package completions
79 Summary:        Files needed for advanced TAB-completion
80 Summary(pl):    Pliki potrzebne dla zaawansowanej TAB-completion
81 Group:          Applications/Shells
82 Requires:       %{name} = %{version}
83
84 %description completions
85 This package contains files needed for advanced tab completion in zsh.
86
87 %description completions -l pl
88 Ten pakiet zawiera pliki wymagane przez zsh dla zaawansowanej
89 TAB-completion.
90
91 %package static
92 Summary:        Statically linked Enhanced bourne shell
93 Summary(pl):    Zaawansowany bourne SHell - linkowany statycznie
94 Group:          Applications/Shells
95 Requires:       %{name} = %{version}
96
97 %description static
98 zsh is an enhanced version of the Bourne shell with csh additions and
99 most features of ksh, bash, and tcsh.
100
101 %description static -l pl
102 zsh jest ulepszon± pow³ok± Bourne'a z elementami pow³oki csh. Posiada
103 wiêkszo¶æ cech ksh, bash i tcsh. W tym pakiecie jest statycznie
104 linkowany.
105
106 %prep
107 %setup -q
108 %patch0 -p1
109 %patch1 -p1
110 %patch2 -p1
111 %patch3 -p1
112 %patch4 -p1
113
114 %build
115 autoconf
116
117 %if %{!?_without_static:1}%{?_without_static:0}
118 LDFLAGS="%{rpmldflags} -static"
119 %configure
120 %{__make}
121 mv -f Src/zsh Src/zsh.static
122 LDFLAGS="%{rpmldflags}"
123 %endif
124
125 %configure \
126         --enable-maildir-support
127 %{__make}
128
129 (cd Doc; makeinfo zsh.texi)
130
131 %install
132 rm -rf $RPM_BUILD_ROOT
133 install -d $RPM_BUILD_ROOT{%{_infodir},%{_sysconfdir},%{_bindir},%{_mandir}/pl/man1}
134
135 %{__make} install DESTDIR=$RPM_BUILD_ROOT
136
137 %{!?_without_static:install Src/zsh.static $RPM_BUILD_ROOT%{_bindir}}
138 install Doc/zsh.info*   $RPM_BUILD_ROOT%{_infodir}
139
140 touch $RPM_BUILD_ROOT%{_sysconfdir}/{zlogout,zlogin,zshenv}
141 echo ". %{_sysconfdir}/profile" > $RPM_BUILD_ROOT%{_sysconfdir}/zprofile
142 echo -e "PS1='[%%n@%%m %%~]%%(!.#.%%\\$) '\nbindkey -e >/dev/null 2>&1\nalias which=whence" > \
143                                           $RPM_BUILD_ROOT%{_sysconfdir}/zshrc
144
145 rm -f Etc/Makefile*
146 find Functions Util StartupFiles -name .distfiles -o -name .cvsignore | xargs rm -f
147 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/zsh.1
148
149 gzip -9nf Etc/* README LICENCE ChangeLog META-FAQ
150
151 %post
152 if [ ! -f /etc/shells ]; then
153         echo "%{_bindir}/zsh" >> /etc/shells
154 else
155         grep -q '^%{_bindir}/zsh$' /etc/shells || echo "%{_bindir}/zsh" >> /etc/shells
156 fi
157 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
158
159 %preun
160 if [ "$1" = "0" ]; then
161         grep -v '^%{_bindir}/zsh$' /etc/shells > /etc/shells.new
162         mv -f /etc/shells.new /etc/shells
163 fi
164
165 %postun
166 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
167
168 %post static
169 if [ ! -f /etc/shells ]; then
170        echo "%{_bindir}/zsh.static" >> /etc/shells
171 else
172        grep -q '^%{_bindir}/zsh\.static$' /etc/shells || echo "%{_bindir}/zsh.static" >> /etc/shells
173 fi
174
175 %preun static
176 if [ "$1" = "0" ]; then
177        grep -v '^%{_bindir}/zsh\.static$' /etc/shells > /etc/shells.new
178        mv -f /etc/shells.new /etc/shells
179 fi
180
181
182 %clean
183 rm -rf $RPM_BUILD_ROOT
184
185 %files
186 %defattr(644,root,root,755)
187 %doc *.gz Etc/* Util StartupFiles
188 %attr(755,root,root) %{_bindir}/zsh
189 %config %{_sysconfdir}/*
190 %dir %{_libdir}/zsh
191 %dir %{_libdir}/zsh/%{version}
192 %dir %{_datadir}/zsh/
193 %dir %{_datadir}/zsh/site-functions
194 %dir %{_datadir}/zsh/%{version}
195 %dir %{_datadir}/zsh/%{version}/functions
196 %{_datadir}/zsh/%{version}/functions/[^_c]*
197 %{_datadir}/zsh/%{version}/functions/c[^o]*
198 %{_datadir}/zsh/%{version}/functions/co[^m]*
199 %attr(755,root,root) %{_libdir}/zsh/%{version}/*
200 %{_infodir}/zsh.info*
201 %{_mandir}/man1/zsh*.1*
202 %lang(pl) %{_mandir}/pl/man1/zsh*.1*
203
204 %files completions
205 %defattr(644,root,root,755)
206 %{_datadir}/zsh/%{version}/functions/comp*
207 %{_datadir}/zsh/%{version}/functions/_*
208
209 %if %{!?_without_static:1}%{?_without_static:0}
210 %files static
211 %defattr(644,root,root,755)
212 %attr(755,root,root) %{_bindir}/zsh.static
213 %endif
This page took 0.563728 seconds and 4 git commands to generate.