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