]> git.pld-linux.org Git - packages/zsh.git/blob - zsh.spec
2f62046fd9c71575d72c04afdaeb05fd8e4b068d
[packages/zsh.git] / zsh.spec
1 # $Revision: 1.51 $ $Date: 2002-05-11 19:13:46 $
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:        7
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 "setopt no_function_argzero" > $RPM_BUILD_ROOT%{_sysconfdir}/zprofile
142 echo ". %{_sysconfdir}/profile" >> $RPM_BUILD_ROOT%{_sysconfdir}/zprofile
143
144 echo -e "PS1='[%%n@%%m %%~]%%(!.#.%%\\$) '\nbindkey -e >/dev/null 2>&1\nalias which=whence" > \
145                                           $RPM_BUILD_ROOT%{_sysconfdir}/zshrc
146
147 rm -f Etc/Makefile*
148 find Functions Util StartupFiles -name .distfiles -o -name .cvsignore | xargs rm -f
149 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/zsh.1
150
151 gzip -9nf Etc/* README LICENCE ChangeLog META-FAQ
152
153 %post
154 if [ ! -f /etc/shells ]; then
155         echo "%{_bindir}/zsh" >> /etc/shells
156 else
157         grep -q '^%{_bindir}/zsh$' /etc/shells || echo "%{_bindir}/zsh" >> /etc/shells
158 fi
159 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
160
161 %preun
162 if [ "$1" = "0" ]; then
163         grep -v '^%{_bindir}/zsh$' /etc/shells > /etc/shells.new
164         mv -f /etc/shells.new /etc/shells
165 fi
166
167 %postun
168 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
169
170 %post static
171 if [ ! -f /etc/shells ]; then
172        echo "%{_bindir}/zsh.static" >> /etc/shells
173 else
174        grep -q '^%{_bindir}/zsh\.static$' /etc/shells || echo "%{_bindir}/zsh.static" >> /etc/shells
175 fi
176
177 %preun static
178 if [ "$1" = "0" ]; then
179        grep -v '^%{_bindir}/zsh\.static$' /etc/shells > /etc/shells.new
180        mv -f /etc/shells.new /etc/shells
181 fi
182
183
184 %clean
185 rm -rf $RPM_BUILD_ROOT
186
187 %files
188 %defattr(644,root,root,755)
189 %doc *.gz Etc/* Util StartupFiles
190 %attr(755,root,root) %{_bindir}/zsh
191 %config %{_sysconfdir}/*
192 %dir %{_libdir}/zsh
193 %dir %{_libdir}/zsh/%{version}
194 %dir %{_datadir}/zsh/
195 %dir %{_datadir}/zsh/site-functions
196 %dir %{_datadir}/zsh/%{version}
197 %dir %{_datadir}/zsh/%{version}/functions
198 %{_datadir}/zsh/%{version}/functions/[^_c]*
199 %{_datadir}/zsh/%{version}/functions/c[^o]*
200 %{_datadir}/zsh/%{version}/functions/co[^m]*
201 %attr(755,root,root) %{_libdir}/zsh/%{version}/*
202 %{_infodir}/zsh.info*
203 %{_mandir}/man1/zsh*.1*
204 %lang(pl) %{_mandir}/pl/man1/zsh*.1*
205
206 %files completions
207 %defattr(644,root,root,755)
208 %{_datadir}/zsh/%{version}/functions/comp*
209 %{_datadir}/zsh/%{version}/functions/_*
210
211 %if %{!?_without_static:1}%{?_without_static:0}
212 %files static
213 %defattr(644,root,root,755)
214 %attr(755,root,root) %{_bindir}/zsh.static
215 %endif
This page took 0.09111 seconds and 3 git commands to generate.