Summary: A shell with lots of features Name: zsh Version: 4.3.6 Release: %mkrel 1 Url: http://www.zsh.org Source0: http://www.zsh.org/pub/%name-%{version}.tar.bz2 Source1: http://www.zsh.org/pub/%name-%{version}-doc.tar.bz2 Source2: zcfg-mdk.tar.bz2 Source3: http://zsh.dotsrc.org/Guide/zshguide.tar.gz Source4: zsh.urpmi_comp Patch1: zsh-3.1.6-dev-22-path.patch Patch2: zsh-4.0.1-pre-3-rpmnewopt.patch Patch101: zsh-serial.patch Patch102: zsh-4.1.0-dev-7-rebootin.patch License: BSD-like Group: Shells Requires(postun): rpm-helper Requires(post): rpm-helper Epoch: 1 BuildRequires: ncurses-devel libtermcap-devel >= 2.0, texinfo yodl pcre-devel BuildRequires: rpm-helper >= 0.18.5 BuildRoot: %_tmppath/%name-buildroot %description Zsh is a UNIX command interpreter (shell) usable as an interactive login shell and as a shell script command processor. Of the standard shells, zsh most closely resembles ksh but includes many enhancements. Zsh has command-line editing, built-in spelling correction, programmable command completion, shell functions (with autoloading), a history mechanism, and a lots of other features Install the zsh package if you'd like to try out a different shell. %package doc Summary: The doc package of zsh Group: Books/Computer books %description doc Zsh is a UNIX command interpreter (shell) usable as an interactive login shell and as a shell script command processor. Of the standard shells, zsh most closely resembles ksh but includes many enhancements. Zsh has command-line editing, built-in spelling correction, programmable command completion, shell functions (with autoloading), a history mechanism, and a lots of other features This package include doc guid examples and manual for zsh. %prep %setup -q -a 2 -a 1 -n %name-%version mv %name-%{version}/Doc/* Doc/ %patch1 -p1 %patch2 -p1 %patch101 -p1 %patch102 -p1 install -m 0644 %{SOURCE4} Completion/Mandriva/Command/_urpmi # remove temporary files find | grep '~$' | xargs rm -f perl -pi -e 's|/usr/local/bin/|%_bindir/|' Functions/Misc/{run-help,checkmail,zcalc} %build %ifarch sparc EXTRA_CONFIGURE_ARGS="--disable-lfs" %endif # check for tcsetpgrp fails with "configure: error: no controlling tty" when # building by bot; force tcsetpgrp %configure2_5x \ --enable-etcdir=%_sysconfdir \ --enable-function-subdirs \ --disable-debug $EXTRA_CONFIGURE_FLAGS \ --disable-max-jobtable-size \ --enable-pcre \ --with-tcsetpgrp #--with-curses-terminfo make all %install rm -rf $RPM_BUILD_ROOT make install-strip DESTDIR=%buildroot make install.info DESTDIR=%buildroot # copy Mandriva Configuration files. mkdir -p $RPM_BUILD_ROOT/{bin,etc} cp -a zcfg/etc/z* $RPM_BUILD_ROOT%_sysconfdir cp -a zcfg/share/zshrc_default %buildroot%_datadir/zsh/%version/zshrc_default # this prevents RPM helper from adding dependency on /usr/bin/zsh find %buildroot%_datadir/zsh/%version -type f -exec chmod 0644 '{}' \; # Backward compatibilie should be removed in the others times. pushd $RPM_BUILD_ROOT/bin && { mv ..%_bindir/zsh ./zsh } && popd rm -f $RPM_BUILD_ROOT%_bindir/zsh-%version # Copy documentation. rm -rf docroot mkdir -p docroot/{Info_html,Examples,Documentation}/ cp -a README docroot/ cp -a Functions/Misc/* Misc/* Util/* docroot/Examples/ cp -a INSTALL ChangeLog* docroot/Documentation cp -a StartupFiles docroot/ cp -a Etc/* docroot/Documentation cp -a Doc/*html docroot/Info_html/ mkdir -p docroot/Zsh_Guide tar xzf %SOURCE3 -C docroot/Zsh_Guide ( cd docroot/Zsh_Guide/zshguide/ ; make ) mv docroot/Zsh_Guide/zshguide/*html docroot/Zsh_Guide/ rm -Rf docroot/Zsh_Guide/zshguide/ # Doc rm -f docroot/{StartupFiles/.distfiles,Examples/{Makefile*,*.yo},Documentation/{Makefile*,*.yo}} find docroot/ -name 'Makefile*' -o -name '.yo'|xargs rm -f find docroot/ -type f|xargs perl -pi -e 's@^#!%_prefix/local/bin/(perl|zsh)@#!%_bindir/\1@' mv docroot/Examples/compctl-examples docroot/StartupFiles %clean rm -rf $RPM_BUILD_ROOT %post %_post_shelladd /bin/zsh %_install_info %name.info %postun %_remove_install_info %name.info %_preun_shelldel /bin/zsh %files %defattr(-,root,root,0755) %doc docroot/README NEWS %config(noreplace) %_sysconfdir/z* /bin/%name %_mandir/man1/*.1* %_infodir/*.info* %dir %_datadir/zsh %dir %_datadir/zsh/%{version}/ %_datadir/zsh/%{version}/functions %_datadir/zsh/%{version}/scripts %_datadir/zsh/%{version}/zshrc_default %dir %_libdir/zsh %_libdir/zsh/%{version}/ %_datadir/zsh/site-functions/ %files doc %defattr(-,root,root) %doc docroot/Documentation/ docroot/Examples/ docroot/Info_html/ %doc docroot/StartupFiles/ docroot/Zsh_Guide ChangeLog* LICENCE %changelog * Sat Apr 19 2008 Andrey Borzenkov <arvidjaar@mandriva.org> 1:4.3.6-1mdv2009.0 + Revision: 195850 - new version * Sat Feb 02 2008 Andrey Borzenkov <arvidjaar@mandriva.org> 1:4.3.5-1mdv2008.1 + Revision: 161351 - New version; also * remove patch500 (is upstream) * Zsh is not under GPL, change licence to BSD-like * include LICENCE in doc package + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Thu May 10 2007 Andrey Borzenkov <arvidjaar@mandriva.org> 1:4.3.4-4mdv2008.0 + Revision: 25968 - patch500: fix prompt display after ^D with both prpomptsp and ignoreeof (zsh-workers/23409) * Wed May 09 2007 Andrey Borzenkov <arvidjaar@mandriva.org> 1:4.3.4-3mdv2008.0 + Revision: 25700 - revert source3 change; profile.d contains quite a number of scripts that expect interactive shell with tty. Actually even bash sources it twice - in profile and bashrc * Wed May 09 2007 Andrey Borzenkov <arvidjaar@mandriva.org> 1:4.3.4-2mdv2008.0 + Revision: 25423 - use macros to add/del shell now that they work (requires rpm-helper >= 0.18.5) - update Source3: Move sourcing of /etc/profile.d in /etc/zprofile from /etc/zshrc. There is no reason to do it in every interactive shell. For GUI profile.d is implicitly sourced by Xsession (by virtue of --login option) * Tue May 01 2007 Andrey Borzenkov <arvidjaar@mandriva.org> 1:4.3.4-1mdv2008.0 + Revision: 19916 - use --with-tcsetpgrp to avoid build bot failure - reset executable bit on functions to avoid dependency on /usr/bin/zsh - updated zshguide and its URL - rediff patch102 (Zsh is now using Mandriva not Mandrake) - new version 4.3.4 (fixes #18939) - uncompress patches; spec cleanup + Nicolas Lécureuil <neoclust@mandriva.org> - Import zsh * Mon Sep 18 2006 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1:4.2.6-5mdv2007.0 - Rebuild * Mon Sep 04 2006 Michael Scherer <misc@mandriva.org> 1:4.2.6-4mdv2007.0 - Remove Mandrake reference - add --auto-update to completion - rebuild for new extension * Wed Jan 25 2006 Stefan van der Eijk <stefan@eijk.nu> 1:4.2.6-3mdk - backing out previous change: bug #20774 * Tue Jan 18 2006 Stefan van der Eijk <stefan@eijk.nu> 1:4.2.6-2mdk - add to configure: "--without-tcsetpgrp" for automated rebuild * Mon Dec 12 2005 Michael Scherer <misc@mandriva.org> 1:4.2.6-1mdk - New release 4.2.6 - use mkrel - remove macro to handle beta version ( since chmouel is gone, i guess no one will make beta package of zsh ) - fix prereq * Wed Apr 27 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.2.5-1mdk - new release * Tue Feb 15 2005 Michael Scherer <misc@mandrake.org> 4.2.4-2mdk - add doc - fix wrong script * Mon Feb 14 2005 Michael Scherer <misc@mandrake.org> 4.2.4-1mdk - New release 4.2.4 - rpmbuildupdateable * Mon Jan 31 2005 Michael Scherer <misc@mandrake.org> 4.2.3-3mdk Rebuild to fix rpm coredump * Wed Jan 26 2005 Michael Scherer <misc@mandrake.org> 4.2.3-2mdk - fix urpmi completion * Fri Jan 14 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.2.3-1mdk - new release * Thu Jan 13 2005 Michael Scherer <misc@mandrake.org> 4.2.2-1mdk - New release 4.2.2 - Better urpmi completion - use ncurses instead of termcap * Wed Nov 10 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.2.1-1mdk - new release * Tue Apr 06 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.2-1mdk - new release * Thu Feb 26 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 4.1.1-6mdk - fix DIRM (distlint) * Mon Dec 01 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.1.1-5mdk - fix completion when one has more than 9 jobs - fix warly changelog * Tue Sep 23 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 4.1.1-4mdk - fix deps * Mon Jul 21 2003 Warly <warly@mandrakesoft.com> 4.1.1-3mdk - rebuild to fix segfault * Fri Jul 18 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 4.1.1-2mdk - rebuild * Tue Jul 01 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.1.1-1mdk - new release * Mon Apr 21 2003 Chmouel Boudjnah <chmouel@chmouel.com> 4.1.0-0.dev7.2mdk - Add rebootin completion (need to be merged upstream). * Mon Mar 24 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.1.0-0.dev7.1mdk - new pre release - remove patches 102, 103, 104, 106, 107, 109, 110 and 111 (merged upstream) * Tue Nov 12 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.1.0-0.dev5.2mdk - patch 110 : fix links completion o add missing options o describe all options - patch 111 : add -{no-}verify-rpm options to urpmi completion (and describe them) * Tue Nov 05 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.1.0-0.dev5.1mdk - new pre release - big spec cleaning - PreReq: rpm-helper - use {add,del}-shell in %%post{,un} - remove patches 100, 105 & 108 (merged upstream) - rediff patch 103 - requires coreutils instead of fileutils * Mon Oct 14 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.0.6-4mdk - patch 108 : upstream fixes: o bzip2 : recognise also .tbz and .tbz2 files o add support for -H option to completion o add some missing apt-get options. o add support for the pkg_create command o revent typeset of a positional parameter before it can do damage, and improve the error message about it. - patch 109 : fix mem leak - fix doc subpackage group * Wed Oct 09 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.0.6-3mdk - patch104: fix ssh-keygen completion - patch105: fix : o unzip/_path_files interaction, o broken xli completion o CVS completion with respect to filenames containing spaces. - patch106: fix "case foo in (foo)echo foo;;(bar)echo bar;;esac" construction (ie no space between right paren and list) when in sh emulation mode. - patch107: add missing apt-get options to completion * Fri Sep 06 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.0.6-2mdk - patch102: fix typo in clint prompt - patch103: update lynx command list * Thu Aug 15 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.0.6-1mdk - new release - kill patches 3, 4 and 5 (merged upstream) - patch 100: complete multiple -j's after cvs update - patch 101: make it work on serial ports * Wed May 29 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 4.0.4-7mdk - Automated rebuild with gcc 3.1-1mdk * Tue Jan 22 2002 Stefan van der Eijk <stefan@eijk.nu> 4.0.4-6mdk - BuildRequires * Mon Jan 14 2002 Chmouel Boudjnah <chmouel@mandrakesoft.com> 4.0.4-5mdk - Upgrade urpmi completion (Andrej). * Mon Dec 10 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 4.0.4-4mdk - Add bash-functions from cvs. - Add %%_datadir/zsh also as %%dir. * Tue Nov 20 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 4.0.4-3mdk - Make /usr/share/zsh/version as %%dir. * Thu Nov 15 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 4.0.4-2mdk - Upgrade zshguide. - Add urpmi completion from Andrej. * Fri Nov 9 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 4.0.4-1mdk - s|Epoch|Serial|; - 4.0.4. * Sun Jul 01 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 4.0.2-2mdk - s/Copyright/License/; - Rebuild to get /bin/zsh back, is it just a weird problem which I have on my own machine? * Wed Jun 27 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 4.0.2-1mdk - 4.0.2. * Tue Jun 5 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 4.0.1-1mdk - Make the Alt-Backspace bash alike with WORDCHARS set to ''. - 4.0.1 final. * Sun May 27 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 4.0.1-0.4mdk - upgrade to 052701 cvs. * Wed May 23 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 4.0.1-0.3mdk - Remove most of the mdk-system-wide options and put it in a distribution files sourced if not ~/.zshrc is present. - 4.0.1-pre-5. * Mon May 14 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 4.0.1-0.2mdk - 4.0.1-pre-4. * Mon Apr 23 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 4.0.1-0.1mdk - 4.0.1-pre-3. - Redo the configuration. * Fri Mar 9 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.9-6mdk - Source /etc/profile.d/ files. * Thu Mar 8 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.9-5mdk - Don't build help since it look it doen't works. * Sat Aug 26 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.9-4mdk - Set some %%config file to (noreplace). - Make -A to complete spec file for _rpm. * Thu Jul 20 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.9-3mdk - Get /usr/share/man also in the completion for perl manpages. - BM. * Wed Jul 5 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.9-2mdk - Fix buildroot hardcoded in binary. * Wed Jun 21 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.9-1mdk - Use makeinstall macros (not easy this one :\). - 3.1.9. * Mon Jun 5 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.8-1mdk - 3.1.8. * Sun May 28 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6dev22-3mdk - Fix path (%%{prefix}/ucb -> %%{_bindir}/X11) - Fix keys (home-end-suppr-delete) directly in the zsh binary. * Sun Apr 16 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6dev22-2mdk - Remove doble .so in %%{_libdir}/zsh/*. * Thu Apr 13 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6dev22-1mdk - 3.1.6dev22. * Fri Mar 31 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6dev20-3mdk - Fix completion of rpm with -qp*. * Mon Mar 27 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6dev20-2mdk - Upgrade zshguide. * Sat Mar 25 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6dev20-1mdk - 3.1.6-dev20 * Wed Mar 22 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6dev19-3mdk - Move global configuration here. - Adjust groups. * Tue Feb 22 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6dev19-2mdk - Add new zshguide from pws. - Separate the doc to the doc package * Sun Feb 20 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6dev19-1mdk - Clean Up spec (thanks specs-helper). - Remove all our patchs (now all is commited to upstream main). - 3.1.6dev19. * Fri Feb 18 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6dev18-3mdk - Recompile with glibc2.1.3 (first one). * Thu Feb 17 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6dev18-2mdk - Add --freshen completion. * Tue Feb 15 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6dev18-1mdk - Fix descriptions and summary. - 3.1.6dev18. * Thu Feb 10 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6dev17-2mdk - Remove Makefile in %%doc. - BuildRequires: autoconf tetex. - Lot of modications in the default config as suggested by Bart Schaefer <schaefer@zsh.org>. - 3.1.6dev17. * Mon Jan 24 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6dev16-1mdk - dev16. - Redo the tar_archive patchs. * Tue Jan 18 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6dev15-1mdk - dev15. - Fix doc generation with dev15. - remove META-FAQ. - disable lfs on sparc. * Thu Jan 6 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6dev14-1mdk - dev14 (note the name change). * Mon Jan 3 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 3.1.6pws13-3mdk - Remove temporary files. * Fri Dec 31 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - 3.1.6pws13 (mainly bug fixes). - fix %%post. - fix rpm completion * Thu Dec 09 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - 3.1.6pws11 (mainly bug fixes). * Tue Dec 7 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Add run-help and perl-build the documentation. * Tue Nov 30 1999 Francis Galiegue <francis@mandrakesoft.com> - Completion machine patch - we use GNU make and GNU tar - Small fix to %%post script * Tue Nov 30 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - 3.1.6pws10 - Fix zprofile. - Clean-up Franciseries. - Clean-up specs. * Mon Nov 29 1999 Francis Galiegue <francis@mandrakesoft.com> - Grrr... Rebuilt on kenobi, toy ain't a cooker * Mon Nov 29 1999 Francis Galiegue <francis@mandrakesoft.com> - Completion system now handles bzip2'ed manpages and tarballs - Some cool options * Wed Nov 10 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Add zshguide.txt to documentation. * Thu Oct 07 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Fix bug in %%{_sysconfdir}/zsh use USERNAME instead of USER. - Improve %%{_sysconfdir}/z* to source the /etc/profile.d/ files. * Mon Oct 04 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - 3.1.6-pws6 - Fix bad link. - Fix bad manpages. * Tue Aug 17 1999 Thierry Vignaud <tvignaud@mandrakesoft.com> - fix typo in examples directory name * Sun Aug 8 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Copy documentation (yes a lot). - Remove the completion machine and put them in [[ {etc,root}(skel|files) ]] package. * Sat Aug 7 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - By defaut we launch the completion machine. - Put zsh in %%{_bindir}/ - Rewrite of Spec file for this new major version. # end of file # Local Variables: # rpm-spec-insert-changelog-version-with-shell: t # End: