]> git.pld-linux.org Git - packages/zsh.git/blobdiff - zsh.spec
- Release: 7, STBR
[packages/zsh.git] / zsh.spec
index 37c13af297e6489893974654dac1d543c6d2cf48..2f62046fd9c71575d72c04afdaeb05fd8e4b068d 100644 (file)
--- a/zsh.spec
+++ b/zsh.spec
-# $Revision: 1.24 $ $Date: 2000-12-05 18:22:03 $
+# $Revision: 1.51 $ $Date: 2002-05-11 19:13:46 $
+#
+# Conditional build:
+# _without_static       - without static version
+#
 Summary:       Enhanced bourne shell
 Summary(de):   Enhanced Bourne Shell
+Summary(es):   Shell bourne mejorada
 Summary(fr):   Bourne shell amélioré
-Summary(tr):   Geliþmiþ bir BASH sürümü
 Summary(pl):   Ulepszona pow³oka Bourne'a
+Summary(pt_BR):        Shell bourne melhorada
+Summary(ru):   ëÏÍÁÎÄÎÙÊ ÐÒÏÃÅÓÓÏÒ (shell) ÐÏÈÏÖÙÊ ÎÁ ksh, ÎÏ Ó ÕÌÕÞÛÅÎÉÑÍÉ
+Summary(tr):   Geliþmiþ bir BASH sürümü
+Summary(uk):   ëÏÍÁÎÄÎÉÊ ÐÒÏÃÅÓÏÒ (shell) ÓÈÏÖÉÊ ÎÁ ksh, ÁÌÅ Ú ÐÏËÒÁÝÅÎÎÑÍÉ
 Name:          zsh
-Version:       3.1.9
-Release:       5
-License:       GPL
+Version:       4.0.4
+Release:       7
+License:       BSD-like
 Group:         Applications/Shells
-Group(de):     Applikationen/Shells
-Group(pl):     Aplikacje/Pow³oki
+URL:           http://www.zsh.org/
 Source0:       ftp://ftp.zsh.org/pub/zsh/%{name}-%{version}.tar.gz
+Source1:       %{name}.1.pl
 Patch0:                %{name}-info.patch
-Patch1:                %{name}-DESTDIR.patch
-Patch2:                %{name}-sys_capability.patch
-Patch3:                %{name}-cap_get_proc.patch
-Patch4:                %{name}-tinfo.patch
-Patch5:                %{name}-addons.patch
+Patch1:                %{name}-tinfo.patch
+Patch2:                %{name}-addons.patch
+Patch3:                %{name}-paths.patch
+Patch4:                %{name}-no_nis.patch
+Prereq:                grep
+Prereq:                fileutils
+BuildRequires: autoconf
 BuildRequires: ncurses-devel >= 5.1
-BuildRequires: glibc-static
-BuildRequires: ncurses-static
 BuildRequires: texinfo
+%{!?_without_static:BuildRequires:     glibc-static}
+%{!?_without_static:BuildRequires:     ncurses-static}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     zsh-doc-html, zsh-doc-ps, zsh-doc-dvi
 
-%define                _bidir          /
+%define                _bindir         /bin
 
 %description
 zsh is an enhanced version of the Bourne shell with csh additions and
 most features of ksh, bash, and tcsh.
 
+%description -l es
+zsh es una versión mejorada del bourne shell con estas
+características:
+- muy próximo de la gramática del ksh/sh, con adiciones csh,
+- varias características del ksh, bash y tcsh,
+- 75 funciones empotradas, 89 opciones, 154 combinaciones de teclas,
+- selección,
+- funciones shell ...y mucho más.
+
 %description -l pl
 zsh jest ulepszon± pow³ok± Bourne'a z elementami pow³oki csh. Posiada
 wiêkszo¶æ cech ksh, bash i tcsh.
 
+%description -l pt_BR
+zsh é uma versão melhorada do bourne shell com essas características:
+- muito próximo da gramática do ksh/sh, com adições csh,
+- várias características do ksh, bash e tcsh,
+- 75 funções embutidas, 89 opções, 154 combinações de teclas,
+- seleção,
+- funções shell ...e muito mais.
+
+%description -l ru
+zsh - ÜÔÏ ËÏÍÁÎÄÎÙÊ ÐÒÏÃÅÓÓÏÒ ÎÁÐÏÍÉÎÁÀÝÉÊ ksh (Korn shell), ÎÏ
+×ËÌÀÞÁÀÝÉÊ ÍÎÏÇÏ ÕÌÕÞÛÅÎÉÊ. zsh ÐÏÄÄÅÒÖÉ×ÁÅÔ ÒÅÄÁËÔÉÒÏ×ÁÎÉÅ ËÏÍÁÎÄÎÏÊ
+ÓÔÒÏËÉ, ×ÓÔÒÏÅÎÎÕÀ ËÏÒÒÅËÃÉÀ ÎÁÐÉÓÁÎÉÑ, ÐÒÏÇÒÁÍÍÉÒÕÅÍÏÅ ÚÁ×ÅÒÛÅÎÉÅ
+ËÏÍÁÎÄ, shell-ÆÕÎËÃÉÉ (Ó Á×ÔÏÚÁÇÒÕÚËÏÊ), ÉÓÔÏÒÉÀ ËÏÍÁÎÄ É ÍÎÏÇÏÅ
+ÄÒÕÇÏÅ.
+
+%description -l uk
+zsh - ÃÅ ËÏÍÁÎÄÎÉÊ ÐÒÏÃÅÓÏÒ, ÝÏ ÎÁÇÁÄÕ¤ ksh (Korn shell), ÁÌÅ ×ËÌÀÞÁ¤
+ÂÁÇÁÔÏ ÐÏËÒÁÝÅÎØ. zsh Ð¦ÄÔÒÉÍÕ¤ ÒÅÄÁÇÕ×ÁÎÎÑ ËÏÍÁÎÄÎÏÇÏ ÒÑÄËÁ,
+×ÂÕÄÏ×ÁÎÕ ËÏÒÅËæÀ ÎÁÐÉÓÁÎÎÑ, ÐÒÏÇÒÁÍÏ×ÁÎÅ ÚÁ×ÅÒÛÅÎÎÑ ËÏÍÁÎÄ,
+shell-ÆÕÎË槠(Ú Á×ÔÏÚÁ×ÁÎÔÁÖÅÎÎÑÍ), ¦ÓÔÏÒ¦À ËÏÍÁÎÄ ÔÁ ÂÁÇÁÔÏ ¦ÎÛÏÇÏ.
+
+%package completions
+Summary:       Files needed for advanced TAB-completion
+Summary(pl):   Pliki potrzebne dla zaawansowanej TAB-completion
+Group:         Applications/Shells
+Requires:      %{name} = %{version}
+
+%description completions
+This package contains files needed for advanced tab completion in zsh.
+
+%description completions -l pl
+Ten pakiet zawiera pliki wymagane przez zsh dla zaawansowanej
+TAB-completion.
+
 %package static
 Summary:       Statically linked Enhanced bourne shell
 Summary(pl):   Zaawansowany bourne SHell - linkowany statycznie
 Group:         Applications/Shells
-Group(de):     Applikationen/Shells
-Group(pl):     Aplikacje/Pow³oki
 Requires:      %{name} = %{version}
 
 %description static
 zsh is an enhanced version of the Bourne shell with csh additions and
 most features of ksh, bash, and tcsh.
 
-%description -l pl static
+%description static -l pl
 zsh jest ulepszon± pow³ok± Bourne'a z elementami pow³oki csh. Posiada
 wiêkszo¶æ cech ksh, bash i tcsh. W tym pakiecie jest statycznie
 linkowany.
@@ -59,14 +110,17 @@ linkowany.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
-%patch5 -p1
 
 %build
 autoconf
 
+%if %{!?_without_static:1}%{?_without_static:0}
+LDFLAGS="%{rpmldflags} -static"
 %configure
 %{__make}
 mv -f Src/zsh Src/zsh.static
+LDFLAGS="%{rpmldflags}"
+%endif
 
 %configure \
        --enable-maildir-support
@@ -76,85 +130,86 @@ mv -f Src/zsh Src/zsh.static
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_infodir},%{_sysconfdir}}
+install -d $RPM_BUILD_ROOT{%{_infodir},%{_sysconfdir},%{_bindir},%{_mandir}/pl/man1}
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-install Src/zsh.static $RPM_BUILD_ROOT%{_bindir}
+%{!?_without_static:install Src/zsh.static $RPM_BUILD_ROOT%{_bindir}}
 install Doc/zsh.info*  $RPM_BUILD_ROOT%{_infodir}
 
 touch $RPM_BUILD_ROOT%{_sysconfdir}/{zlogout,zlogin,zshenv}
-echo    ". /etc/profile"                > $RPM_BUILD_ROOT%{_sysconfdir}/zprofile
-echo -e "PS1='[%n@%m %~]%(!.#.%\$)'\nbindkey -e >/dev/null 2>&1" > \
+echo "setopt no_function_argzero" > $RPM_BUILD_ROOT%{_sysconfdir}/zprofile
+echo ". %{_sysconfdir}/profile" >> $RPM_BUILD_ROOT%{_sysconfdir}/zprofile
+
+echo -e "PS1='[%%n@%%m %%~]%%(!.#.%%\\$) '\nbindkey -e >/dev/null 2>&1\nalias which=whence" > \
                                           $RPM_BUILD_ROOT%{_sysconfdir}/zshrc
-                                       
+
 rm -f Etc/Makefile*
-gzip -9nf Etc/* README ChangeLog META-FAQ
+find Functions Util StartupFiles -name .distfiles -o -name .cvsignore | xargs rm -f
+install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/zsh.1
+
+gzip -9nf Etc/* README LICENCE ChangeLog META-FAQ
 
 %post
 if [ ! -f /etc/shells ]; then
-       echo "/bin/zsh" >> /etc/shells
+       echo "%{_bindir}/zsh" >> /etc/shells
 else
-       while read SHNAME; do
-               if [ "$SHNAME" = "/bin/zsh" ]; then
-                       HAS_ZSH=1
-               fi
-       done < /etc/shells
-       if [ -n "$HAS_ZSH" ]; then
-               echo "/bin/zsh" >> /etc/shells
-       fi
+       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
 
 %preun
 if [ "$1" = "0" ]; then
-       while read SHNAME; do
-               if [ "$SHNAME" = "/bin/zsh" ]; then
-                       echo "$SHNAME"
-               fi
-       done < /etc/shells > /etc/shells.new
+       grep -v '^%{_bindir}/zsh$' /etc/shells > /etc/shells.new
        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
 
 %post static
 if [ ! -f /etc/shells ]; then
-       echo "/bin/zsh.static" >> /etc/shells
+       echo "%{_bindir}/zsh.static" >> /etc/shells
 else
-       while read SHNAME; do
-               if [ "$SHNAME" = "/bin/zsh.static" ]; then
-                       HAS_ZSH_STATIC=1
-               fi
-       done < /etc/shells
-       if [ -n "$HAS_ZSH_STATIC" ]; then
-                echo "/bin/zsh.static" >> /etc/shells
-       fi
+       grep -q '^%{_bindir}/zsh\.static$' /etc/shells || echo "%{_bindir}/zsh.static" >> /etc/shells
 fi
 
-%preuni static
+%preun static
 if [ "$1" = "0" ]; then
-       while read SHNAME; do
-               if [ "$SHNAME" = "/bin/zsh.static" ]; then
-                       echo "$SHNAME"
-               fi
-       done < /etc/shells > /etc/shells.new
-       mv -f /etc/shells.new /etc/shells
+       grep -v '^%{_bindir}/zsh\.static$' /etc/shells > /etc/shells.new
+       mv -f /etc/shells.new /etc/shells
 fi
 
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc {META-FAQ,README,ChangeLog}.gz Etc/* Util Functions
-%doc %{_infodir}/zsh.info*
-%dir %{_libdir}/zsh/%{version}
-%config %{_sysconfdir}/*
-
+%doc *.gz Etc/* Util StartupFiles
 %attr(755,root,root) %{_bindir}/zsh
+%config %{_sysconfdir}/*
+%dir %{_libdir}/zsh
+%dir %{_libdir}/zsh/%{version}
+%dir %{_datadir}/zsh/
+%dir %{_datadir}/zsh/site-functions
+%dir %{_datadir}/zsh/%{version}
+%dir %{_datadir}/zsh/%{version}/functions
+%{_datadir}/zsh/%{version}/functions/[^_c]*
+%{_datadir}/zsh/%{version}/functions/c[^o]*
+%{_datadir}/zsh/%{version}/functions/co[^m]*
 %attr(755,root,root) %{_libdir}/zsh/%{version}/*
-%{_mandir}/man1/zsh*.1.gz
+%{_infodir}/zsh.info*
+%{_mandir}/man1/zsh*.1*
+%lang(pl) %{_mandir}/pl/man1/zsh*.1*
+
+%files completions
+%defattr(644,root,root,755)
+%{_datadir}/zsh/%{version}/functions/comp*
+%{_datadir}/zsh/%{version}/functions/_*
 
+%if %{!?_without_static:1}%{?_without_static:0}
 %files static
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/zsh.static
+%endif
This page took 0.065685 seconds and 4 git commands to generate.