]>
Commit | Line | Data |
---|---|---|
7088e905 | 1 | # Conditional build: |
48b96dd9 | 2 | %bcond_with static # build static version |
7088e905 | 3 | # |
a4d50a64 | 4 | Summary: Enhanced Bourne shell |
bf98a40a ER |
5 | Summary(de.UTF-8): Enhanced Bourne Shell |
6 | Summary(es.UTF-8): Shell bourne mejorada | |
7 | Summary(fr.UTF-8): Bourne shell amélioré | |
b7786c06 | 8 | Summary(hu.UTF-8): Kiterjesztett Bourne Shell |
bf98a40a ER |
9 | Summary(pl.UTF-8): Ulepszona powłoka Bourne'a |
10 | Summary(pt_BR.UTF-8): Shell bourne melhorada | |
11 | Summary(ru.UTF-8): Командный процессор (shell) похожый на ksh, но с улучшениями | |
12 | Summary(tr.UTF-8): Gelişmiş bir BASH sürümü | |
13 | Summary(uk.UTF-8): Командний процесор (shell) схожий на ksh, але з покращеннями | |
83278afd | 14 | Name: zsh |
9d242fd1 AM |
15 | Version: 4.3.14 |
16 | Release: 1 | |
2d083759 | 17 | License: BSD-like |
651a9c1a | 18 | Group: Applications/Shells |
6afe72d1 | 19 | Source0: ftp://sunsite.icm.edu.pl/pub/unix/shells/zsh/%{name}-%{version}.tar.bz2 |
9d242fd1 | 20 | # Source0-md5: 1c819a3ff7302b42eba988e333e76109 |
6afe72d1 | 21 | #Source0: ftp://ftp.zsh.org/pub/%{name}-%{version}.tar.bz2 |
1a356495 | 22 | Source1: %{name}.1.pl |
5866c474 | 23 | Source2: http://zsh.sunsite.dk/Guide/%{name}guide.pdf |
6afe72d1 | 24 | # Source2-md5: 70cc3760dd8140f9aed693d484cd87dc |
e8d1aafb | 25 | Source3: zprofile |
5866c474 | 26 | Source4: %{name}rc |
651a9c1a | 27 | Patch0: %{name}-info.patch |
eace1f82 | 28 | Patch1: %{name}-addons.patch |
29 | Patch2: %{name}-paths.patch | |
30 | Patch3: %{name}-completions.patch | |
7ca723e2 | 31 | Patch4: %{name}-nolibs.patch |
c9a36266 | 32 | URL: http://www.zsh.org/ |
b793c18f | 33 | BuildRequires: autoconf |
48b96dd9 | 34 | BuildRequires: automake |
cfd57568 | 35 | %{?with_static:BuildRequires: glibc-static} |
6c76e97a | 36 | BuildRequires: libcap-devel |
b076b3fc | 37 | BuildRequires: ncurses-devel >= 5.1 |
cfd57568 | 38 | %{?with_static:BuildRequires: ncurses-static} |
6c76e97a | 39 | BuildRequires: pcre-devel |
2a00a59c | 40 | BuildRequires: rpmbuild(macros) >= 1.470 |
b076b3fc | 41 | BuildRequires: texinfo |
48b96dd9 | 42 | BuildRequires: yodl |
3fa5f78f | 43 | Requires(post,preun): grep |
b076b3fc | 44 | Requires(preun): fileutils |
9046f083 | 45 | Requires: findutils |
de0cb3a3 | 46 | Obsoletes: zsh-doc-dvi |
5866c474 ER |
47 | Obsoletes: zsh-doc-html |
48 | Obsoletes: zsh-doc-ps | |
a6765b50 | 49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
83278afd | 50 | |
587f5454 | 51 | %define _bindir /bin |
de0cb3a3 | 52 | %define specflags_ia32 -fomit-frame-pointer |
83278afd | 53 | |
54 | %description | |
c1897f93 | 55 | zsh is an enhanced version of the Bourne shell with csh additions and |
56 | most features of ksh, bash, and tcsh. | |
83278afd | 57 | |
b00e8d51 JR |
58 | %description -l es.UTF-8 |
59 | zsh es una versión mejorada del bourne shell con estas | |
60 | características: | |
61 | - muy próximo de la gramática del ksh/sh, con adiciones csh, | |
62 | - varias características del ksh, bash y tcsh, | |
cbb441dc | 63 | - 75 funciones empotradas, 89 opciones, 154 combinaciones de teclas, |
b00e8d51 JR |
64 | - selección, |
65 | - funciones shell ...y mucho más. | |
66 | ||
67 | %description -l ja.UTF-8 | |
68 | zsh シェルは対話的なログインシェルとして利用可能なコマンドインタリタ | |
69 | であり、シェルスクリプトコマンドも処理できます. zsh は ksh(the Korn | |
70 | shell) に似ていますが,かなり拡張されています. zsh | |
71 | はコマンドラインでの編集機能, 組み込まれたスペル修正機能, プログラミン | |
72 | グ可能なコマンド補完機能, (動的ロードされる)シェル機能, ヒストリ機構 | |
73 | などを持ちます. | |
74 | ||
b7786c06 ZU |
75 | %description -l hu.UTF-8 |
76 | zsh a Bourne shell egy kiterjesztett verziója csh kiegészítésekkel és | |
77 | a ksh, bash és csh legtöbb lehetőségével felvértezve. | |
78 | ||
b00e8d51 JR |
79 | %description -l pl.UTF-8 |
80 | zsh jest ulepszoną powłoką Bourne'a z elementami powłoki csh. Posiada | |
81 | większość cech ksh, bash i tcsh. | |
82 | ||
83 | %description -l pt_BR.UTF-8 | |
84 | zsh é uma versão melhorada do bourne shell com essas características: | |
85 | - muito próximo da gramática do ksh/sh, com adições csh, | |
86 | - várias características do ksh, bash e tcsh, | |
87 | - 75 funções embutidas, 89 opções, 154 combinações de teclas, | |
88 | - seleção, | |
89 | - funções shell ...e muito mais. | |
90 | ||
91 | %description -l ru.UTF-8 | |
92 | zsh - это командный процессор напоминающий ksh (Korn shell), но | |
93 | включающий много улучшений. zsh поддерживает редактирование командной | |
94 | строки, встроенную коррекцию написания, программируемое завершение | |
95 | команд, shell-функции (с автозагрузкой), историю команд и многое | |
96 | другое. | |
97 | ||
98 | %description -l uk.UTF-8 | |
99 | zsh - це командний процесор, що нагадує ksh (Korn shell), але включає | |
100 | багато покращень. zsh підтримує редагування командного рядка, | |
101 | вбудовану корекцію написання, програмоване завершення команд, | |
102 | shell-функції (з автозавантаженням), історію команд та багато іншого. | |
d2f588c7 | 103 | |
b015e9ee | 104 | %package completions |
cbb441dc | 105 | Summary: Files needed for advanced TAB-completion |
b7786c06 | 106 | Summary(hu.UTF-8): A haladó TAB-kiegészítéshez szükséges fájlok |
bf98a40a | 107 | Summary(pl.UTF-8): Pliki potrzebne dla zaawansowanej TAB-completion |
cbb441dc | 108 | Group: Applications/Shells |
7ca723e2 | 109 | Requires: %{name} = %{version}-%{release} |
de0cb3a3 | 110 | Conflicts: kdesdk-completions-zsh <= 3:3.2.3-2 |
b015e9ee | 111 | |
112 | %description completions | |
113 | This package contains files needed for advanced tab completion in zsh. | |
114 | ||
b7786c06 ZU |
115 | %description completions -l hu.UTF-8 |
116 | Ez a csomag tartalmazza a haladó TAB-kiegészítéshez szükséges fájlokat | |
117 | a zsh shell-hez. | |
118 | ||
b00e8d51 | 119 | %description completions -l pl.UTF-8 |
b015e9ee | 120 | Ten pakiet zawiera pliki wymagane przez zsh dla zaawansowanej |
121 | TAB-completion. | |
122 | ||
7088e905 | 123 | %package static |
a4d50a64 | 124 | Summary: Statically linked Enhanced Bourne shell |
b7786c06 | 125 | Summary(hu.UTF-8): A zsh statikus verziója |
bf98a40a | 126 | Summary(pl.UTF-8): Zaawansowana powłoka Bourne'a - skonsolidowana statycznie |
cbb441dc | 127 | Group: Applications/Shells |
3fa5f78f | 128 | Requires(post,preun): grep |
b076b3fc | 129 | Requires(preun): fileutils |
7ca723e2 | 130 | Requires: %{name} = %{version}-%{release} |
7088e905 | 131 | |
132 | %description static | |
133 | zsh is an enhanced version of the Bourne shell with csh additions and | |
134 | most features of ksh, bash, and tcsh. | |
135 | ||
b7786c06 ZU |
136 | %description static -l hu.UTF-8 |
137 | A zsh statikus verziója. | |
138 | ||
b00e8d51 JR |
139 | %description static -l pl.UTF-8 |
140 | zsh jest ulepszoną powłoką Bourne'a z elementami powłoki csh. Posiada | |
141 | większość cech ksh, bash i tcsh. W tym pakiecie jest wersja | |
a4d50a64 | 142 | skonsolidowana statycznie. |
7088e905 | 143 | |
4f664908 | 144 | %package guide |
145 | Summary: A User's Guide to the Z-Shell | |
b7786c06 | 146 | Summary(hu.UTF-8): Felhasználói útmutató a Z-Shell-hez |
bf98a40a | 147 | Summary(pl.UTF-8): Podręcznik Użytkownika Z-Shella |
51052d96 | 148 | Group: Documentation |
4f664908 | 149 | URL: http://zsh.sunsite.dk/Guide/ |
150 | ||
151 | %description guide | |
152 | A User's Guide to the Z-Shell. | |
153 | ||
b7786c06 ZU |
154 | %description guide -l hu.UTF-8 |
155 | Felhasználói útmutató a Z-Shell-hez. | |
156 | ||
b00e8d51 JR |
157 | %description guide -l pl.UTF-8 |
158 | Podręcznik Użytkownika Z-Shella. | |
4f664908 | 159 | |
83278afd | 160 | %prep |
95b4ac0b | 161 | %setup -q |
c9a36266 | 162 | %patch0 -p1 |
cc534ac5 | 163 | %patch1 -p1 |
e317d501 | 164 | %patch2 -p1 |
165 | %patch3 -p1 | |
7ca723e2 | 166 | %patch4 -p1 |
83278afd | 167 | |
4f664908 | 168 | install %{SOURCE2} . |
169 | ||
ad7f7390 | 170 | find Functions -type f -exec %{__sed} -i -e 's|#!.*/zsh|#!/bin/zsh|g' "{}" ";" |
42093e13 | 171 | |
83278afd | 172 | %build |
226d6ebd | 173 | cp -f /usr/share/automake/config.sub . |
c83d9cb8 | 174 | %{__autoconf} |
48b96dd9 AM |
175 | %{__autoheader} |
176 | echo > stamp-h.in | |
c9a36266 | 177 | CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" |
cc534ac5 | 178 | |
cfd57568 | 179 | %if %{with static} |
7088e905 | 180 | LDFLAGS="%{rpmldflags} -static" |
424f1ac6 | 181 | %configure \ |
48b96dd9 AM |
182 | --enable-maildir-support \ |
183 | --enable-multibyte \ | |
184 | --with-tcsetpgrp \ | |
424f1ac6 AM |
185 | --disable-dynamic |
186 | %{__make} \ | |
187 | DLLDFLAGS="" | |
7088e905 | 188 | mv -f Src/zsh Src/zsh.static |
424f1ac6 | 189 | %{__make} clean || : |
7088e905 | 190 | LDFLAGS="%{rpmldflags}" |
191 | %endif | |
192 | ||
3790abdd | 193 | %configure \ |
17f690bb | 194 | ac_cv_have_dev_ptmx=yes \ |
fec100a6 | 195 | --enable-maildir-support \ |
48b96dd9 | 196 | --enable-cap \ |
fec100a6 | 197 | --enable-pcre \ |
48b96dd9 | 198 | --enable-multibyte \ |
5add1275 | 199 | --with-term-lib="tinfo" \ |
48b96dd9 AM |
200 | --with-curses-terminfo \ |
201 | --with-tcsetpgrp | |
ecc52887 | 202 | %{__make} |
83278afd | 203 | |
b076b3fc JB |
204 | cd Doc |
205 | makeinfo zsh.texi | |
3790abdd | 206 | |
83278afd | 207 | %install |
208 | rm -rf $RPM_BUILD_ROOT | |
1a356495 | 209 | install -d $RPM_BUILD_ROOT{%{_infodir},%{_sysconfdir},%{_bindir},%{_mandir}/pl/man1} |
3790abdd | 210 | |
1256c9e6 JB |
211 | %{__make} install \ |
212 | DESTDIR=$RPM_BUILD_ROOT | |
cc534ac5 | 213 | |
cfd57568 | 214 | %{?with_static:install Src/zsh.static $RPM_BUILD_ROOT%{_bindir}} |
e8d1aafb TP |
215 | install Doc/zsh.info* $RPM_BUILD_ROOT%{_infodir} |
216 | ||
51b8d4e0 | 217 | touch $RPM_BUILD_ROOT%{_sysconfdir}/{zlogin,zlogout,zshenv} |
9fc47db4 | 218 | touch $RPM_BUILD_ROOT%{_sysconfdir}/{zlogin,zlogout,zprofile,zshenv,zshrc}.zwc |
e8d1aafb TP |
219 | install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir} |
220 | install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir} | |
45772ef5 | 221 | |
ad7f7390 | 222 | %{__rm} Etc/Makefile* |
45772ef5 | 223 | find Functions Util StartupFiles -name .distfiles -o -name .cvsignore | xargs rm -f |
1a356495 | 224 | install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/zsh.1 |
225 | ||
c13dab96 JB |
226 | # for kdesdk's completion |
227 | ln -sf %{version} $RPM_BUILD_ROOT%{_datadir}/zsh/latest | |
228 | ||
229 | %clean | |
230 | rm -rf $RPM_BUILD_ROOT | |
231 | ||
83278afd | 232 | %post |
b076b3fc | 233 | umask 022 |
9b9ba60d | 234 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1 |
83278afd | 235 | if [ ! -f /etc/shells ]; then |
062f7fe9 | 236 | echo "%{_bindir}/zsh" >> /etc/shells |
83278afd | 237 | else |
062f7fe9 | 238 | grep -q '^%{_bindir}/zsh$' /etc/shells || echo "%{_bindir}/zsh" >> /etc/shells |
83278afd | 239 | fi |
51b8d4e0 TP |
240 | for i in zlogin zlogout zprofile zshenv zshrc; do |
241 | [ -f /etc/$i ] && zsh -c "zcompile /etc/$i" | |
242 | done | |
8ef9a897 | 243 | |
6229d098 | 244 | %preun |
cc534ac5 | 245 | if [ "$1" = "0" ]; then |
b076b3fc | 246 | umask 022 |
062f7fe9 | 247 | grep -v '^%{_bindir}/zsh$' /etc/shells > /etc/shells.new |
651a9c1a | 248 | mv -f /etc/shells.new /etc/shells |
83278afd | 249 | fi |
062f7fe9 | 250 | |
9b9ba60d ER |
251 | %postun -p /sbin/postshell |
252 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
e317d501 | 253 | |
7088e905 | 254 | %post static |
b076b3fc | 255 | umask 022 |
7088e905 | 256 | if [ ! -f /etc/shells ]; then |
3fa5f78f | 257 | echo "%{_bindir}/zsh.static" >> /etc/shells |
7088e905 | 258 | else |
3fa5f78f | 259 | grep -q '^%{_bindir}/zsh\.static$' /etc/shells || echo "%{_bindir}/zsh.static" >> /etc/shells |
7088e905 | 260 | fi |
261 | ||
262 | %preun static | |
263 | if [ "$1" = "0" ]; then | |
b076b3fc | 264 | umask 022 |
3fa5f78f TP |
265 | grep -v '^%{_bindir}/zsh\.static$' /etc/shells > /etc/shells.new |
266 | mv -f /etc/shells.new /etc/shells | |
7088e905 | 267 | fi |
268 | ||
83278afd | 269 | %files |
270 | %defattr(644,root,root,755) | |
cb77c9e4 | 271 | %doc Etc/* README LICENCE ChangeLog META-FAQ Util StartupFiles |
0ef667b6 | 272 | %attr(755,root,root) %{_bindir}/zsh |
e23746f9 | 273 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/*[!w]? |
9fc47db4 | 274 | %ghost %{_sysconfdir}/*.zwc |
4a8cc3b6 | 275 | %dir %{_libdir}/zsh |
48b96dd9 | 276 | %dir %{_libdir}/zsh/%{version}* |
c13dab96 | 277 | %dir %{_datadir}/zsh |
b015e9ee | 278 | %dir %{_datadir}/zsh/site-functions |
c13dab96 | 279 | %{_datadir}/zsh/latest |
48b96dd9 AM |
280 | %dir %{_datadir}/zsh/%{version}* |
281 | %dir %{_datadir}/zsh/%{version}*/scripts | |
282 | %{_datadir}/zsh/%{version}*/scripts/newuser | |
283 | %dir %{_datadir}/zsh/%{version}*/functions | |
284 | %{_datadir}/zsh/%{version}*/functions/[!_c]* | |
285 | %{_datadir}/zsh/%{version}*/functions/c[!o]* | |
286 | %{_datadir}/zsh/%{version}*/functions/co[!m]* | |
287 | %attr(755,root,root) %{_libdir}/zsh/%{version}*/* | |
4a8cc3b6 | 288 | %{_infodir}/zsh.info* |
289 | %{_mandir}/man1/zsh*.1* | |
1a356495 | 290 | %lang(pl) %{_mandir}/pl/man1/zsh*.1* |
b015e9ee | 291 | |
292 | %files completions | |
293 | %defattr(644,root,root,755) | |
48b96dd9 AM |
294 | %{_datadir}/zsh/%{version}*/functions/comp* |
295 | %{_datadir}/zsh/%{version}*/functions/_* | |
7088e905 | 296 | |
4f664908 | 297 | %files guide |
298 | %defattr(644,root,root,755) | |
299 | %doc zshguide.pdf | |
300 | ||
cfd57568 | 301 | %if %{with static} |
7088e905 | 302 | %files static |
cbb441dc | 303 | %defattr(644,root,root,755) |
7088e905 | 304 | %attr(755,root,root) %{_bindir}/zsh.static |
305 | %endif |