2004-09-09 15:20:34 +00:00
|
|
|
# this file is encoded in UTF-8 -*- coding: utf-8 -*-
|
|
|
|
|
2010-12-07 17:07:18 +00:00
|
|
|
Summary: Powerful interactive shell
|
2004-09-09 15:18:48 +00:00
|
|
|
Name: zsh
|
2013-01-08 22:49:15 +00:00
|
|
|
Version: 5.0.2
|
2013-04-15 21:39:18 +00:00
|
|
|
Release: 3%{?dist}
|
2011-12-17 18:28:11 +00:00
|
|
|
License: MIT
|
2011-12-03 18:56:39 +00:00
|
|
|
URL: http://zsh.sourceforge.net/
|
2004-09-09 15:18:48 +00:00
|
|
|
Group: System Environment/Shells
|
2011-12-09 23:37:09 +00:00
|
|
|
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
2004-09-09 15:18:48 +00:00
|
|
|
Source1: zlogin.rhs
|
|
|
|
Source2: zlogout.rhs
|
|
|
|
Source3: zprofile.rhs
|
|
|
|
Source4: zshrc.rhs
|
|
|
|
Source5: zshenv.rhs
|
2004-09-09 15:20:34 +00:00
|
|
|
Source6: dotzshrc
|
2004-09-09 15:21:32 +00:00
|
|
|
Source7: zshprompt.pl
|
2008-08-25 21:21:49 +00:00
|
|
|
# Give me better tools or die!
|
2010-12-07 17:07:18 +00:00
|
|
|
%global _default_patch_fuzz 2
|
2004-09-09 15:20:17 +00:00
|
|
|
Patch0: zsh-serial.patch
|
2008-08-25 20:33:57 +00:00
|
|
|
Patch4: zsh-4.3.6-8bit-prompts.patch
|
2008-08-25 21:41:13 +00:00
|
|
|
Patch5: zsh-test-C02-dev_fd-mock.patch
|
2012-01-11 10:48:23 +00:00
|
|
|
BuildRequires: coreutils sed ncurses-devel libcap-devel
|
2009-03-02 16:53:31 +00:00
|
|
|
BuildRequires: texinfo tetex texi2html gawk /bin/hostname
|
2007-03-05 20:20:09 +00:00
|
|
|
Requires(post): /sbin/install-info grep
|
|
|
|
Requires(preun): /sbin/install-info
|
2012-01-11 10:48:23 +00:00
|
|
|
Requires(postun): coreutils grep
|
2004-09-09 15:18:48 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The zsh shell is a command interpreter usable as an interactive login
|
|
|
|
shell and as a shell script command processor. Zsh resembles the ksh
|
|
|
|
shell (the Korn shell), but includes many enhancements. Zsh supports
|
|
|
|
command line editing, built-in spelling correction, programmable
|
|
|
|
command completion, shell functions (with autoloading), a history
|
2004-09-09 15:19:24 +00:00
|
|
|
mechanism, and more.
|
2004-09-09 15:18:48 +00:00
|
|
|
|
2004-09-09 15:21:07 +00:00
|
|
|
%package html
|
|
|
|
Summary: Zsh shell manual in html format
|
|
|
|
Group: System Environment/Shells
|
|
|
|
|
|
|
|
%description html
|
|
|
|
The zsh shell is a command interpreter usable as an interactive login
|
|
|
|
shell and as a shell script command processor. Zsh resembles the ksh
|
|
|
|
shell (the Korn shell), but includes many enhancements. Zsh supports
|
|
|
|
command line editing, built-in spelling correction, programmable
|
|
|
|
command completion, shell functions (with autoloading), a history
|
|
|
|
mechanism, and more.
|
|
|
|
|
|
|
|
This package contains the Zsh manual in html format.
|
|
|
|
|
2004-09-09 15:18:48 +00:00
|
|
|
%prep
|
|
|
|
|
|
|
|
%setup -q
|
2004-09-09 15:20:17 +00:00
|
|
|
%patch0 -p1 -b .serial
|
2008-08-26 05:06:13 +00:00
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
2004-09-09 15:21:32 +00:00
|
|
|
|
|
|
|
cp -p %SOURCE7 .
|
2004-09-09 15:18:48 +00:00
|
|
|
|
|
|
|
%build
|
2004-09-09 15:20:34 +00:00
|
|
|
%define _bindir /bin
|
2004-09-09 15:19:53 +00:00
|
|
|
# Avoid stripping...
|
|
|
|
export LDFLAGS=""
|
2009-03-02 16:53:31 +00:00
|
|
|
%configure --enable-etcdir=%{_sysconfdir} --with-tcsetpgrp --enable-maildir-support
|
2004-09-09 15:18:48 +00:00
|
|
|
|
2004-09-09 15:21:07 +00:00
|
|
|
make all html
|
2007-02-27 22:20:14 +00:00
|
|
|
|
|
|
|
%check
|
2004-09-09 15:19:18 +00:00
|
|
|
# Run the testsuite
|
2004-09-09 15:20:34 +00:00
|
|
|
# the completion tests hang on s390 and s390x
|
|
|
|
( cd Test
|
|
|
|
mkdir skipped
|
2008-08-26 04:12:17 +00:00
|
|
|
%ifarch s390 s390x ppc ppc64
|
|
|
|
mv Y*.ztst skipped
|
2009-03-02 16:53:31 +00:00
|
|
|
%endif
|
2009-06-10 12:43:06 +00:00
|
|
|
%ifarch s390 s390x ppc64
|
2009-03-02 16:53:31 +00:00
|
|
|
# FIXME: This is a real failure, Debian apparently just don't test.
|
|
|
|
# RHBZ: 460043
|
|
|
|
mv D02glob.ztst skipped
|
2004-09-09 15:20:34 +00:00
|
|
|
%endif
|
2008-08-26 04:12:17 +00:00
|
|
|
# FIXME: This hangs in mock
|
2008-08-26 04:35:21 +00:00
|
|
|
# Running test: Test loading of all compiled modules
|
|
|
|
mv V01zmodload.ztst skipped
|
2008-08-26 04:12:17 +00:00
|
|
|
true )
|
|
|
|
ZTST_verbose=1 make test
|
2004-09-09 15:18:48 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-09-09 15:20:34 +00:00
|
|
|
%makeinstall install.info \
|
2007-02-27 22:20:14 +00:00
|
|
|
fndir=$RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/functions \
|
2007-07-25 14:57:18 +00:00
|
|
|
sitefndir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions \
|
|
|
|
scriptdir=$RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/scripts \
|
|
|
|
sitescriptdir=$RPM_BUILD_ROOT%{_datadir}/zsh/scripts
|
2004-09-09 15:18:48 +00:00
|
|
|
|
2004-09-09 15:20:34 +00:00
|
|
|
rm -f ${RPM_BUILD_ROOT}%{_bindir}/zsh-%{version}
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
2004-09-09 15:18:48 +00:00
|
|
|
|
2004-09-09 15:20:34 +00:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}
|
2007-03-05 20:20:09 +00:00
|
|
|
for i in %{SOURCE4} %{SOURCE1} %{SOURCE2} %{SOURCE5} %{SOURCE3}; do
|
|
|
|
install -m 644 $i ${RPM_BUILD_ROOT}%{_sysconfdir}/"$(basename $i .rhs)"
|
2004-09-09 15:18:48 +00:00
|
|
|
done
|
|
|
|
|
2004-09-09 15:20:34 +00:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/skel
|
2005-01-17 00:34:49 +00:00
|
|
|
install -m 644 %{SOURCE6} ${RPM_BUILD_ROOT}%{_sysconfdir}/skel/.zshrc
|
2004-09-09 15:20:34 +00:00
|
|
|
|
2007-03-05 20:20:09 +00:00
|
|
|
# This is just here to shut up rpmlint, and is very annoying.
|
|
|
|
# Note that we can't chmod everything as then rpmlint will complain about
|
|
|
|
# those without a she-bang line.
|
|
|
|
for i in checkmail harden run-help zcalc zkbd; do
|
|
|
|
sed -i -e 's!/usr/local/bin/zsh!%{_bindir}/zsh!' \
|
|
|
|
${RPM_BUILD_ROOT}%{_datadir}/zsh/*/functions/$i
|
|
|
|
chmod +x ${RPM_BUILD_ROOT}%{_datadir}/zsh/*/functions/$i
|
|
|
|
done
|
|
|
|
|
2007-02-27 22:20:14 +00:00
|
|
|
|
2004-09-09 15:18:48 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
2004-09-09 15:20:34 +00:00
|
|
|
if [ ! -f %{_sysconfdir}/shells ] ; then
|
|
|
|
echo "%{_bindir}/zsh" > %{_sysconfdir}/shells
|
2004-09-09 15:18:48 +00:00
|
|
|
else
|
2004-09-09 15:20:34 +00:00
|
|
|
grep -q "^%{_bindir}/zsh$" %{_sysconfdir}/shells || echo "%{_bindir}/zsh" >> %{_sysconfdir}/shells
|
2004-09-09 15:18:48 +00:00
|
|
|
fi
|
|
|
|
|
2009-08-07 15:45:10 +00:00
|
|
|
if [ -f %{_infodir}/zsh.info.gz ]; then
|
|
|
|
# This is needed so that --excludedocs works.
|
2004-09-09 15:18:48 +00:00
|
|
|
/sbin/install-info %{_infodir}/zsh.info.gz %{_infodir}/dir \
|
2007-02-27 22:20:14 +00:00
|
|
|
--entry="* zsh: (zsh). An enhanced bourne shell."
|
2009-08-07 15:45:10 +00:00
|
|
|
fi
|
|
|
|
|
2007-01-16 19:11:08 +00:00
|
|
|
:
|
2004-09-09 15:18:48 +00:00
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ "$1" = 0 ] ; then
|
2009-08-07 15:45:10 +00:00
|
|
|
if [ -f %{_infodir}/zsh.info.gz ]; then
|
|
|
|
# This is needed so that --excludedocs works.
|
2004-09-09 15:18:48 +00:00
|
|
|
/sbin/install-info --delete %{_infodir}/zsh.info.gz %{_infodir}/dir \
|
2007-02-27 22:20:14 +00:00
|
|
|
--entry="* zsh: (zsh). An enhanced bourne shell."
|
2009-08-07 15:45:10 +00:00
|
|
|
fi
|
2004-09-09 15:18:48 +00:00
|
|
|
fi
|
2007-01-16 19:11:08 +00:00
|
|
|
:
|
2004-09-09 15:18:48 +00:00
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ "$1" = 0 ] ; then
|
2004-09-09 15:20:34 +00:00
|
|
|
if [ -f %{_sysconfdir}/shells ] ; then
|
2007-02-27 22:20:14 +00:00
|
|
|
TmpFile=`%{_bindir}/mktemp /tmp/.zshrpmXXXXXX`
|
|
|
|
grep -v '^%{_bindir}/zsh$' %{_sysconfdir}/shells > $TmpFile
|
2007-02-28 03:46:10 +00:00
|
|
|
cp -f $TmpFile %{_sysconfdir}/shells
|
|
|
|
rm -f $TmpFile
|
2004-09-09 15:18:48 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2005-01-03 21:20:49 +00:00
|
|
|
%doc README LICENCE Etc/BUGS Etc/CONTRIBUTORS Etc/FAQ FEATURES MACHINES
|
|
|
|
%doc NEWS Etc/zsh-development-guide Etc/completion-style-guide zshprompt.pl
|
2004-09-09 15:20:34 +00:00
|
|
|
%attr(755,root,root) %{_bindir}/zsh
|
2004-09-09 15:18:48 +00:00
|
|
|
%{_mandir}/*/*
|
|
|
|
%{_infodir}/*
|
2004-09-09 15:19:18 +00:00
|
|
|
%{_datadir}/zsh
|
2004-09-09 15:20:34 +00:00
|
|
|
%{_libdir}/zsh
|
2007-02-28 03:46:10 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/skel/.z*
|
2007-02-27 22:20:14 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/z*
|
2004-09-09 15:18:48 +00:00
|
|
|
|
2004-09-09 15:21:07 +00:00
|
|
|
%files html
|
|
|
|
%defattr(-,root,root)
|
2007-07-25 14:57:18 +00:00
|
|
|
%doc Doc/*.html
|
2004-09-09 15:21:07 +00:00
|
|
|
|
2004-09-09 15:18:48 +00:00
|
|
|
%changelog
|
2013-04-15 21:39:18 +00:00
|
|
|
* Mon Apr 15 2013 James Antill <james@fedoraproject.org> - 5.0.2-3
|
|
|
|
- Fix the changelog dates, 100% cosmetic to the specfile.
|
|
|
|
- Resolves: bug#927863
|
|
|
|
|
2013-02-15 04:24:32 +00:00
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-01-08 22:49:15 +00:00
|
|
|
* Tue Jan 08 2013 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.2-1
|
|
|
|
- Update to new upstream version: Zsh 5.0.2
|
|
|
|
|
2012-11-21 22:18:20 +00:00
|
|
|
* Wed Nov 21 2012 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.0-1
|
|
|
|
- Update to new upstream version: Zsh 5.0.0
|
|
|
|
|
2012-07-22 08:34:02 +00:00
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.17-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2013-04-15 22:03:25 +00:00
|
|
|
* Sun Mar 04 2012 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.17-1
|
2012-03-04 13:52:40 +00:00
|
|
|
- Update to new upstream version: Zsh 4.3.17
|
|
|
|
|
2012-01-14 09:39:41 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.15-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-12-24 18:23:41 +00:00
|
|
|
* Sat Dec 24 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.15-1
|
|
|
|
- Update to new upstream version: Zsh 4.3.15
|
|
|
|
|
2011-12-17 18:28:11 +00:00
|
|
|
* Sat Dec 17 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.14-2
|
|
|
|
- change the License field to MIT (RHBZ#768548)
|
|
|
|
|
2013-04-15 21:39:18 +00:00
|
|
|
* Sat Dec 10 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.14-1
|
2011-12-09 23:37:09 +00:00
|
|
|
- Update to new upstream version: Zsh 4.3.14
|
|
|
|
|
2011-12-03 16:48:26 +00:00
|
|
|
* Sat Dec 03 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.13-1
|
|
|
|
- Update to new upstream version: Zsh 4.3.13
|
|
|
|
|
2011-12-03 16:37:23 +00:00
|
|
|
* Sat Aug 13 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.12-1
|
|
|
|
- Update to new upstream version: Zsh 4.3.12
|
|
|
|
|
2011-02-08 09:15:46 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.11-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-20 22:59:03 +00:00
|
|
|
* Thu Jan 20 2011 Christopher Ailon <caillon@redhat.com> - 4.3.11-1
|
|
|
|
- Rebase to upstream version 4.3.11
|
|
|
|
|
2010-12-07 17:07:18 +00:00
|
|
|
* Tue Dec 7 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 4.3.10-6
|
|
|
|
- Rebuild for FTBFS https://bugzilla.redhat.com/show_bug.cgi?id=631197
|
|
|
|
- Remove deprecated PreReq, the packages aren't needed at runtime and they're
|
|
|
|
already in Requires(post,preun,etc): lines.
|
|
|
|
|
2010-03-22 14:06:04 +00:00
|
|
|
* Mon Mar 22 2010 James Antill <james@fedoraproject.org> - 4.3.10-5
|
|
|
|
- Add pathmunge to our /etc/zshrc, for profile.d compat.
|
|
|
|
- Resolves: bug#548960
|
|
|
|
|
2009-08-07 15:45:10 +00:00
|
|
|
* Fri Aug 7 2009 James Antill <james@fedoraproject.org> - 4.3.10-4
|
|
|
|
- Allow --excludedocs command to work!
|
|
|
|
- Resolves: bug#515986
|
|
|
|
|
2009-07-27 09:04:54 +00:00
|
|
|
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.10-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-07-21 04:23:12 +00:00
|
|
|
* Mon Jul 20 2009 James Antill <james@fedoraproject.org> - 4.3.10-1
|
|
|
|
- Import new upstream 4.3.10
|
|
|
|
|
2009-06-10 12:43:06 +00:00
|
|
|
* Wed Jun 10 2009 Karsten Hopp <karsten@redhat.com> 4.3.9-4.1
|
|
|
|
- skip D02glob test on s390, too
|
|
|
|
|
2009-03-02 16:53:31 +00:00
|
|
|
* Mon Mar 2 2009 James Antill <james@fedoraproject.org> - 4.3.9-4
|
|
|
|
- Remove D02glob testcase on ppc/ppc64, and hope noone cares
|
2009-03-02 15:38:22 +00:00
|
|
|
|
2009-02-25 18:45:43 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.9-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|