]> git.pld-linux.org Git - packages/zsh.git/blobdiff - zsh.spec
- exctracted zprofile and zshrc
[packages/zsh.git] / zsh.spec
index 61a0a4cf2e3d1c7aa85ab22401a7e62aff9ac6b6..4021b5f74de5f4914bf9f4a8f6fffa679e5bde39 100644 (file)
--- a/zsh.spec
+++ b/zsh.spec
-# $Revision: 1.8 $ $Date: 2000-04-17 06:51:03 $
-Summary:       Enhanced bourne shell
+#
+# Conditional build:
+%bcond_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.6
-%define dev_ver dev-22
-Release:       3
-License:       GPL
-Group:         Shells
-Group(pl):     Pow³oki
-Source0:       ftp://ftp.zsh.org/pub/zsh/development/%{name}-%{version}-%{dev_ver}.tar.gz
-Patch0:                zsh-info.patch
-Patch1:                zsh-DESTDIR.patch
-Patch2:                zsh-config2.patch
-# Prereq:      /usr/sbin/fix-info-dir
-Prereq:                grep
-Prereq:                gawk
-Prereq:                sed
-BuildRequires: ncurses-devel
-BuildRequires: glibc-static
-BuildRequires: ncurses-static
+Version:       4.2.0
+Release:       1
+License:       BSD-like
+Group:         Applications/Shells
+URL:           http://www.zsh.org/
+Source0:       ftp://ftp.zsh.org/pub/zsh/%{name}-%{version}.tar.bz2
+# Source0-md5: 866bcdad8c0c4974650f5eff395a9a35
+Source1:       %{name}.1.pl
+Source2:       http://zsh.sunsite.dk/Guide/zshguide.pdf
+# Source2-md5: 0d80ba1ef39052c512cfabf368f3bf20
+Source3:       zprofile
+Source4:       zshrc
+Patch0:                %{name}-info.patch
+Patch1:                %{name}-addons.patch
+Patch2:                %{name}-paths.patch
+Patch3:                %{name}-completions.patch
+BuildRequires: autoconf
+%{?with_static:BuildRequires:  glibc-static}
+BuildRequires: libcap-devel
+BuildRequires: ncurses-devel >= 5.1
+%{?with_static:BuildRequires:  ncurses-static}
+BuildRequires: pcre-devel
+BuildRequires: texinfo
+Requires(post,preun):  grep
+Requires(preun):       fileutils
+Obsoletes:     zsh-doc-html, zsh-doc-ps, zsh-doc-dvi
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _exec_prefix            /
+%define                _bindir         /bin
+%define                specflags_ia32  "-fomit-frame-pointer"
 
 %description
-zsh is an enhanced version of the Bourne shell with csh additions and most
-features of ksh, bash, and tcsh.
+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 ja
+zsh ¥·¥§¥ë¤ÏÂÐÏÃŪ¤Ê¥í¥°¥¤¥ó¥·¥§¥ë¤È¤·¤ÆÍøÍѲÄǽ¤Ê¥³¥Þ¥ó¥É¥¤¥ó¥¿¥ê¥¿
+¤Ç¤¢¤ê¡¢¥·¥§¥ë¥¹¥¯¥ê¥×¥È¥³¥Þ¥ó¥É¤â½èÍý¤Ç¤­¤Þ¤¹. zsh ¤Ï ksh(the Korn
+shell) ¤Ë»÷¤Æ¤¤¤Þ¤¹¤¬,¤«¤Ê¤ê³ÈÄ¥¤µ¤ì¤Æ¤¤¤Þ¤¹. zsh
+¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç¤ÎÊÔ½¸µ¡Ç½, ÁȤ߹þ¤Þ¤ì¤¿¥¹¥Ú¥ë½¤Àµµ¡Ç½, ¥×¥í¥°¥é¥ß¥ó
+¥°²Äǽ¤Ê¥³¥Þ¥ó¥ÉÊä´°µ¡Ç½, (ưŪ¥í¡¼¥É¤µ¤ì¤ë)¥·¥§¥ëµ¡Ç½, ¥Ò¥¹¥È¥êµ¡¹½
+¤Ê¤É¤ò»ý¤Á¤Þ¤¹.
 
 %description -l pl
 zsh jest ulepszon± pow³ok± Bourne'a z elementami pow³oki csh. Posiada
-wiêkszo¶æ cech pow³ok ksh, bash i tcsh.
-
-#%package static
-#Summary:      Statcly linked Enhanced bourne shell
-#Summary(pl):  Statycznie linkowany Zaawansowany bourne shell
-#Group:                Shells
-#Group(pl):    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
-#zsh jest ulepszon± pow³ok± Bourne'a z elementami pow³oki csh. Posiada
-#wiêkszo¶æ cech pow³ok ksh, bash i tcsh. W tym pakiecie jest statycznie
-#linkowany zsh.
+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):   Zaawansowana pow³oka Bourne'a - skonsolidowana statycznie
+Group:         Applications/Shells
+Requires(post,preun):  grep
+Requires(preun):       fileutils
+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 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 wersja
+skonsolidowana statycznie.
+
+%package guide
+Summary:       A User's Guide to the Z-Shell
+Summary(pl):   Podrêcznik U¿ytkownika Z-Shella
+Group:         Applications/Shells
+URL:           http://zsh.sunsite.dk/Guide/
+
+%description guide
+A User's Guide to the Z-Shell.
+
+%description guide -l pl
+Podrêcznik U¿ytkownika Z-Shella.
 
 %prep
-%setup -q -n %{name}-%{version}-%{dev_ver}
+%setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+install %{SOURCE2} .
 
 %build
-#autoconf
-#LDFLAGS="-static -s"; export LDFLAGS
-#%configure
-#make
-#
-#mv zsh zsh.static
+cp -f /usr/share/automake/config.sub .
+%{__autoconf}
 
-LDFLAGS="-s"; export LDFLAGS
-%configure
-patch -p1 < %{PATCH2}
-make
+%if %{with static}
+LDFLAGS="%{rpmldflags} -static"
+%configure \
+       --disable-dynamic
+%{__make} \
+       DLLDFLAGS=""
+mv -f Src/zsh Src/zsh.static
+%{__make} clean || :
+LDFLAGS="%{rpmldflags}"
+%endif
+
+%configure \
+       --enable-maildir-support
+%{__make}
+
+cd Doc
+makeinfo zsh.texi
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_infodir},%{_sysconfdir},%{_bindir},%{_mandir}/pl/man1}
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-make install DESTDIR=$RPM_BUILD_ROOT
+%{?with_static:install Src/zsh.static $RPM_BUILD_ROOT%{_bindir}}
+install Doc/zsh.info* $RPM_BUILD_ROOT%{_infodir}
 
-# install zsh.static $RPM_BUILD_ROOT%{_bindir}
+:> $RPM_BUILD_ROOT%{_sysconfdir}/{zlogin,zlogout,zshenv}
+install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
+install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}
 
-install -d $RPM_BUILD_ROOT%{_sysconfdir}
-touch  $RPM_BUILD_ROOT%{_sysconfdir}/{zlogout,zprofile,zshrc,zlogin,zshenv}
+rm -f Etc/Makefile*
+find Functions Util StartupFiles -name .distfiles -o -name .cvsignore | xargs rm -f
+install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/zsh.1
 
-rm Etc/Makefile*
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
-         Etc/* README ChangeLog META-FAQ
+# for kdesdk's completion
+ln -sf %{version} $RPM_BUILD_ROOT%{_datadir}/zsh/latest
+
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %post
+umask 022
 if [ ! -f /etc/shells ]; then
-       echo "/bin/zsh" > /etc/shells
+       echo "%{_bindir}/zsh" >> /etc/shells
 else
-       if ! grep '^/bin/zsh$' /etc/shells > /dev/null; 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
 
-# /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
-
-%postun
+%preun
 if [ "$1" = "0" ]; then
-       grep -v /bin/zsh /etc/shells > /etc/shells.new
-       mv /etc/shells.new /etc/shells
+       umask 022
+       grep -v '^%{_bindir}/zsh$' /etc/shells > /etc/shells.new
+       mv -f /etc/shells.new /etc/shells
 fi
 
-# /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
+%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
-#else
-#      grep '^/bin/zsh.static$' /etc/shells > /dev/null || echo "/bin/zsh.static" >> /etc/shells
-#fi
-#
-#%postun static
-#if [ ! -x /bin/zsh.static ]; then
-#      grep -v '^/bin/zsh.static$' /etc/shells > /etc/shells.rpm
-#      mv /etc/shells.rpm /etc/shells
-#fi
+%post static
+umask 022
+if [ ! -f /etc/shells ]; then
+       echo "%{_bindir}/zsh.static" >> /etc/shells
+else
+       grep -q '^%{_bindir}/zsh\.static$' /etc/shells || echo "%{_bindir}/zsh.static" >> /etc/shells
+fi
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+%preun static
+if [ "$1" = "0" ]; then
+       umask 022
+       grep -v '^%{_bindir}/zsh\.static$' /etc/shells > /etc/shells.new
+       mv -f /etc/shells.new /etc/shells
+fi
 
 %files
 %defattr(644,root,root,755)
-%doc {META-FAQ,README,ChangeLog}.gz Etc/* Util Functions
-%dir %{_libdir}/zsh/%{version}-%{dev_ver}
-%config %{_sysconfdir}/*
-
+%doc Etc/* README LICENCE ChangeLog META-FAQ Util StartupFiles
 %attr(755,root,root) %{_bindir}/zsh
-%attr(755,root,root) %{_libdir}/zsh/%{version}-%{dev_ver}/*
-%{_mandir}/man1/zsh*.1.gz
+%config(noreplace,missingok) %verify(not md5 size mtime) %{_sysconfdir}/*
+%dir %{_libdir}/zsh
+%dir %{_libdir}/zsh/%{version}
+%dir %{_datadir}/zsh
+%dir %{_datadir}/zsh/site-functions
+%{_datadir}/zsh/latest
+%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}/*
+%{_infodir}/zsh.info*
+%{_mandir}/man1/zsh*.1*
+%lang(pl) %{_mandir}/pl/man1/zsh*.1*
 
-#%files static
-#%defattr(644,root,root,755)
-#%attr(755,root,root) %{_bindir}/zsh.static
+%files completions
+%defattr(644,root,root,755)
+%{_datadir}/zsh/%{version}/functions/comp*
+%{_datadir}/zsh/%{version}/functions/_*
+
+%files guide
+%defattr(644,root,root,755)
+%doc zshguide.pdf
+
+%if %{with static}
+%files static
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/zsh.static
+%endif
This page took 0.070211 seconds and 4 git commands to generate.