-#
-# todo:
-# - add zsh-lovers man page from http://grml.org/zsh/
-#
# Conditional build:
%bcond_with static # build static version
#
Summary: Enhanced Bourne shell
-Summary(de.UTF-8): Enhanced Bourne Shell
-Summary(es.UTF-8): Shell bourne mejorada
-Summary(fr.UTF-8): Bourne shell amélioré
-Summary(pl.UTF-8): Ulepszona powłoka Bourne'a
-Summary(pt_BR.UTF-8): Shell bourne melhorada
-Summary(ru.UTF-8): Командный процессор (shell) похожый на ksh, но с улучшениями
-Summary(tr.UTF-8): Gelişmiş bir BASH sürümü
-Summary(uk.UTF-8): Командний процесор (shell) схожий на ksh, але з покращеннями
+Summary(de.UTF-8): Enhanced Bourne Shell
+Summary(es.UTF-8): Shell bourne mejorada
+Summary(fr.UTF-8): Bourne shell amélioré
+Summary(hu.UTF-8): Kiterjesztett Bourne Shell
+Summary(pl.UTF-8): Ulepszona powłoka Bourne'a
+Summary(pt_BR.UTF-8): Shell bourne melhorada
+Summary(ru.UTF-8): Командный процессор (shell) похожый на ksh, но с улучшениями
+Summary(tr.UTF-8): Gelişmiş bir BASH sürümü
+Summary(uk.UTF-8): Командний процесор (shell) схожий на ksh, але з покращеннями
Name: zsh
-Version: 4.3.2
+Version: 4.3.10
Release: 2
License: BSD-like
Group: Applications/Shells
-URL: http://www.zsh.org/
Source0: ftp://ftp.zsh.org/pub/%{name}-%{version}.tar.bz2
-# Source0-md5: e13fc4bb338fbb27ef7508a474310c8f
+# Source0-md5: 74c5b275544400082a1cde806c98682a
Source1: %{name}.1.pl
Source2: http://zsh.sunsite.dk/Guide/%{name}guide.pdf
-# Source2-md5: 0d80ba1ef39052c512cfabf368f3bf20
+# Source2-md5: e42b6b6ff487bb2a95543f3937287b99
Source3: zprofile
Source4: %{name}rc
Patch0: %{name}-info.patch
Patch2: %{name}-paths.patch
Patch3: %{name}-completions.patch
Patch4: %{name}-nolibs.patch
-Patch5: %{name}-autoconf.patch
-Patch6: %{name}-lfs.patch
+URL: http://www.zsh.org/
BuildRequires: autoconf
BuildRequires: automake
%{?with_static:BuildRequires: glibc-static}
BuildRequires: ncurses-devel >= 5.1
%{?with_static:BuildRequires: ncurses-static}
BuildRequires: pcre-devel
+BuildRequires: rpmbuild(macros) >= 1.470
BuildRequires: texinfo
BuildRequires: yodl
Requires(post,preun): grep
Requires(preun): fileutils
Requires: findutils
+Obsoletes: zsh-doc-dvi
Obsoletes: zsh-doc-html
Obsoletes: zsh-doc-ps
-Obsoletes: zsh-doc-dvi
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _bindir /bin
-%define specflags_ia32 -fomit-frame-pointer
+%define specflags_ia32 -fomit-frame-pointer
%description
zsh is an enhanced version of the Bourne shell with csh additions and
グ可能なコマンド補完機能, (動的ロードされる)シェル機能, ヒストリ機構
などを持ちます.
+%description -l hu.UTF-8
+zsh a Bourne shell egy kiterjesztett verziója csh kiegészítésekkel és
+a ksh, bash és csh legtöbb lehetőségével felvértezve.
+
%description -l pl.UTF-8
zsh jest ulepszoną powłoką Bourne'a z elementami powłoki csh. Posiada
większość cech ksh, bash i tcsh.
%package completions
Summary: Files needed for advanced TAB-completion
-Summary(pl.UTF-8): Pliki potrzebne dla zaawansowanej TAB-completion
+Summary(hu.UTF-8): A haladó TAB-kiegészítéshez szükséges fájlok
+Summary(pl.UTF-8): Pliki potrzebne dla zaawansowanej TAB-completion
Group: Applications/Shells
-Conflicts: kdesdk-completions-zsh <= 3:3.2.3-2
Requires: %{name} = %{version}-%{release}
+Conflicts: kdesdk-completions-zsh <= 3:3.2.3-2
%description completions
This package contains files needed for advanced tab completion in zsh.
+%description completions -l hu.UTF-8
+Ez a csomag tartalmazza a haladó TAB-kiegészítéshez szükséges fájlokat
+a zsh shell-hez.
+
%description completions -l pl.UTF-8
Ten pakiet zawiera pliki wymagane przez zsh dla zaawansowanej
TAB-completion.
%package static
Summary: Statically linked Enhanced Bourne shell
-Summary(pl.UTF-8): Zaawansowana powłoka Bourne'a - skonsolidowana statycznie
+Summary(hu.UTF-8): A zsh statikus verziója
+Summary(pl.UTF-8): Zaawansowana powłoka Bourne'a - skonsolidowana statycznie
Group: Applications/Shells
Requires(post,preun): grep
Requires(preun): fileutils
zsh is an enhanced version of the Bourne shell with csh additions and
most features of ksh, bash, and tcsh.
+%description static -l hu.UTF-8
+A zsh statikus verziója.
+
%description static -l pl.UTF-8
zsh jest ulepszoną powłoką Bourne'a z elementami powłoki csh. Posiada
większość cech ksh, bash i tcsh. W tym pakiecie jest wersja
%package guide
Summary: A User's Guide to the Z-Shell
-Summary(pl.UTF-8): Podręcznik Użytkownika Z-Shella
+Summary(hu.UTF-8): Felhasználói útmutató a Z-Shell-hez
+Summary(pl.UTF-8): Podręcznik Użytkownika Z-Shella
Group: Documentation
URL: http://zsh.sunsite.dk/Guide/
%description guide
A User's Guide to the Z-Shell.
+%description guide -l hu.UTF-8
+Felhasználói útmutató a Z-Shell-hez.
+
%description guide -l pl.UTF-8
Podręcznik Użytkownika Z-Shella.
%prep
%setup -q
-#%patch0 -p1
+%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
-%patch5 -p1
-%patch6 -p1
install %{SOURCE2} .
+find Functions -type f -exec sed -i -e 's|#!.*/zsh|#!/bin/zsh|g' "{}" ";"
+
%build
cp -f /usr/share/automake/config.sub .
%{__autoconf}
%{__autoheader}
echo > stamp-h.in
-CPPFLAGS="-I/usr/include/ncurses $CPPFLAGS"
+CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses"
%if %{with static}
LDFLAGS="%{rpmldflags} -static"
--enable-cap \
--enable-pcre \
--enable-multibyte \
+ --with-term-lib="tinfo" \
--with-curses-terminfo \
--with-tcsetpgrp
%{__make}
%post
umask 022
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
if [ ! -f /etc/shells ]; then
echo "%{_bindir}/zsh" >> /etc/shells
else
grep -q '^%{_bindir}/zsh$' /etc/shells || echo "%{_bindir}/zsh" >> /etc/shells
fi
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
for i in zlogin zlogout zprofile zshenv zshrc; do
[ -f /etc/$i ] && zsh -c "zcompile /etc/$i"
done
mv -f /etc/shells.new /etc/shells
fi
-%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
+%postun -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
%post static
umask 022