cvsdist 2c8e3f
# this file is encoded in UTF-8  -*- coding: utf-8 -*-
cvsdist 2c8e3f
Toshio Kuratomi 4a912f
Summary: Powerful interactive shell
cvsdist abdd31
Name: zsh
Kamil Dudka b84eb4
Version: 5.0.8
Kamil Dudka 97afa7
Release: 3%{?dist}
Dominic Hopf b9e1bb
License: MIT
Dominic Hopf e74224
URL: http://zsh.sourceforge.net/
cvsdist abdd31
Group: System Environment/Shells
Dominic Hopf 13c039
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
cvsdist abdd31
Source1: zlogin.rhs
cvsdist abdd31
Source2: zlogout.rhs
cvsdist abdd31
Source3: zprofile.rhs
cvsdist abdd31
Source4: zshrc.rhs
cvsdist abdd31
Source5: zshenv.rhs
cvsdist 2c8e3f
Source6: dotzshrc
cvsdist b24462
Source7: zshprompt.pl
Kamil Dudka 0a5586
Kamil Dudka b84eb4
# legacy downstream patches, TODO: either get them upstream or drop them
Kamil Dudka b84eb4
Patch0: zsh-serial.patch
Kamil Dudka b84eb4
Patch1: zsh-4.3.6-8bit-prompts.patch
Kamil Dudka b84eb4
Patch2: zsh-test-C02-dev_fd-mock.patch
Kamil Dudka 724b3e
Kamil Dudka 97afa7
# backport completion-related upstream fixes (#1238544)
Kamil Dudka 97afa7
Patch3: zsh-5.0.8-comp-bz1238544.patch
Kamil Dudka 97afa7
Peter Robinson 3d4d1c
BuildRequires: coreutils sed ncurses-devel libcap-devel
James Antill 965dc7
BuildRequires: texinfo texi2html gawk hostname
Dominic Hopf 536e45
Requires(post): info grep
Dominic Hopf 536e45
Requires(preun): info
Peter Robinson 3d4d1c
Requires(postun): coreutils grep
cvsdist abdd31
Dominic Hopf 536e45
Provides: /bin/zsh
Dominic Hopf 536e45
cvsdist abdd31
%description
cvsdist abdd31
The zsh shell is a command interpreter usable as an interactive login
cvsdist abdd31
shell and as a shell script command processor.  Zsh resembles the ksh
cvsdist abdd31
shell (the Korn shell), but includes many enhancements.  Zsh supports
cvsdist abdd31
command line editing, built-in spelling correction, programmable
cvsdist abdd31
command completion, shell functions (with autoloading), a history
cvsdist 538cfb
mechanism, and more.
cvsdist abdd31
cvsdist 21be85
%package html
cvsdist 21be85
Summary: Zsh shell manual in html format
cvsdist 21be85
Group: System Environment/Shells
cvsdist 21be85
cvsdist 21be85
%description html
cvsdist 21be85
The zsh shell is a command interpreter usable as an interactive login
cvsdist 21be85
shell and as a shell script command processor.  Zsh resembles the ksh
cvsdist 21be85
shell (the Korn shell), but includes many enhancements.  Zsh supports
cvsdist 21be85
command line editing, built-in spelling correction, programmable
cvsdist 21be85
command completion, shell functions (with autoloading), a history
cvsdist 21be85
mechanism, and more.
cvsdist 21be85
cvsdist 21be85
This package contains the Zsh manual in html format.
cvsdist 21be85
cvsdist abdd31
%prep
cvsdist abdd31
cvsdist abdd31
%setup -q
Kamil Dudka b84eb4
%patch0 -p1
Kamil Dudka b84eb4
%patch1 -p1
Kamil Dudka b84eb4
%patch2 -p1
Kamil Dudka 97afa7
%patch3 -p1
cvsdist b24462
cvsdist b24462
cp -p %SOURCE7 .
cvsdist abdd31
cvsdist abdd31
%build
cvsdist 8075d0
# Avoid stripping...
cvsdist 8075d0
export LDFLAGS=""
Dominic Hopf 536e45
%configure --enable-etcdir=%{_sysconfdir} --with-tcsetpgrp --enable-maildir-support
cvsdist abdd31
cvsdist 21be85
make all html
jantill dd0745
jantill dd0745
%check
cvsdist 83b6ad
# Run the testsuite
cvsdist 2c8e3f
# the completion tests hang on s390 and s390x
cvsdist 2c8e3f
  ( cd Test
cvsdist 2c8e3f
    mkdir skipped
James Antill d9db35
%ifarch s390 s390x ppc ppc64
James Antill d9db35
    mv Y*.ztst skipped
cvsdist 2c8e3f
%endif
Karsten Hopp bcdc34
%ifarch s390 s390x ppc64
James Antill 4b7fae
    # FIXME: This is a real failure, Debian apparently just don't test.
James Antill 4b7fae
    # RHBZ: 460043
James Antill 4b7fae
    mv D02glob.ztst skipped
James Antill 4b7fae
%endif
James Antill d9db35
    # FIXME: This hangs in mock
James Antill 7cbce2
    # Running test: Test loading of all compiled modules
James Antill 7cbce2
    mv V01zmodload.ztst skipped
James Antill d9db35
    true )
James Antill d9db35
  ZTST_verbose=1 make test
cvsdist abdd31
cvsdist abdd31
%install
cvsdist abdd31
rm -rf $RPM_BUILD_ROOT
Dominic Hopf 0adc03
cvsdist 2c8e3f
%makeinstall install.info \
Dominic Hopf 0adc03
  fndir=$RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}/functions \
Dominic Hopf 0adc03
  sitefndir=$RPM_BUILD_ROOT%{_datadir}/%{name}/site-functions \
Dominic Hopf 0adc03
  scriptdir=$RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}/scripts \
Dominic Hopf 0adc03
  sitescriptdir=$RPM_BUILD_ROOT%{_datadir}/%{name}/scripts \
Dominic Hopf 0adc03
  runhelpdir=$RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}/help
cvsdist abdd31
cvsdist 2c8e3f
rm -f ${RPM_BUILD_ROOT}%{_bindir}/zsh-%{version}
cvsdist 2c8e3f
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
cvsdist abdd31
cvsdist 2c8e3f
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}
Dominic Hopf 0adc03
for i in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5}; do
Dominic Hopf 0adc03
    install -m 644 $i $RPM_BUILD_ROOT%{_sysconfdir}/"$(basename $i .rhs)"
cvsdist abdd31
done
cvsdist abdd31
Dominic Hopf 0adc03
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/skel
Dominic Hopf 0adc03
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.zshrc
cvsdist 2c8e3f
jantill 2cc004
# This is just here to shut up rpmlint, and is very annoying.
jantill 2cc004
# Note that we can't chmod everything as then rpmlint will complain about
jantill 2cc004
# those without a she-bang line.
jantill 2cc004
for i in checkmail harden run-help zcalc zkbd; do
jantill 2cc004
    sed -i -e 's!/usr/local/bin/zsh!%{_bindir}/zsh!' \
Dominic Hopf 0adc03
    $RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/functions/$i
Dominic Hopf 0adc03
    chmod +x $RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/functions/$i
jantill 2cc004
done
jantill 2cc004
Dominic Hopf 0adc03
sed -i "s!$RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}/help!%{_datadir}/%{name}/%{version}/help!" \
Dominic Hopf 54f9ac
    $RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/functions/{run-help,_run-help}
Dominic Hopf 0adc03
jantill dd0745
cvsdist abdd31
%clean
cvsdist abdd31
rm -rf $RPM_BUILD_ROOT
cvsdist abdd31
cvsdist abdd31
%post
Dominic Hopf 370e71
if [ "$1" = 1 ]; then
Dominic Hopf 370e71
  if [ ! -f %{_sysconfdir}/shells ] ; then
Dominic Hopf 370e71
    echo "%{_bindir}/%{name}" > %{_sysconfdir}/shells
Dominic Hopf 370e71
    echo "/bin/%{name}" >> %{_sysconfdir}/shells
Dominic Hopf 370e71
  else
Dominic Hopf 370e71
    grep -q "^%{_bindir}/%{name}$" %{_sysconfdir}/shells || echo "%{_bindir}/%{name}" >> %{_sysconfdir}/shells
Dominic Hopf 370e71
    grep -q "^/bin/%{name}$" %{_sysconfdir}/shells || echo "/bin/%{name}" >> %{_sysconfdir}/shells
Adam Jackson c18d18
  fi
cvsdist abdd31
fi
cvsdist abdd31
James Antill 41a26d
if [ -f %{_infodir}/zsh.info.gz ]; then
James Antill 41a26d
# This is needed so that --excludedocs works.
cvsdist abdd31
/sbin/install-info %{_infodir}/zsh.info.gz %{_infodir}/dir \
jantill dd0745
  --entry="* zsh: (zsh).			An enhanced bourne shell."
James Antill 41a26d
fi
James Antill 41a26d
cvsdist abdd31
cvsdist abdd31
%preun
cvsdist abdd31
if [ "$1" = 0 ] ; then
James Antill 41a26d
    if [ -f %{_infodir}/zsh.info.gz ]; then
James Antill 41a26d
    # This is needed so that --excludedocs works.
cvsdist abdd31
    /sbin/install-info --delete %{_infodir}/zsh.info.gz %{_infodir}/dir \
jantill dd0745
      --entry="* zsh: (zsh).			An enhanced bourne shell."
James Antill 41a26d
    fi
cvsdist abdd31
fi
cvsdist abdd31
cvsdist abdd31
%postun
Dominic Hopf 370e71
if [ "$1" = 0 ] && [ -f %{_sysconfdir}/shells ] ; then
Dominic Hopf 370e71
  sed -i '\!^%{_bindir}/%{name}$!d' %{_sysconfdir}/shells
Dominic Hopf 370e71
  sed -i '\!^/bin/%{name}$!d' %{_sysconfdir}/shells
cvsdist abdd31
fi
cvsdist abdd31
Dominic Hopf 370e71
cvsdist abdd31
%files
cvsdist abdd31
%defattr(-,root,root)
Colin Walters e47366
%doc README LICENCE Etc/BUGS Etc/CONTRIBUTORS Etc/FAQ FEATURES MACHINES
Colin Walters e47366
%doc NEWS Etc/zsh-development-guide Etc/completion-style-guide zshprompt.pl
cvsdist 2c8e3f
%attr(755,root,root) %{_bindir}/zsh
cvsdist abdd31
%{_mandir}/*/*
cvsdist abdd31
%{_infodir}/*
cvsdist 83b6ad
%{_datadir}/zsh
cvsdist 2c8e3f
%{_libdir}/zsh
jantill 41d85b
%config(noreplace) %{_sysconfdir}/skel/.z*
jantill dd0745
%config(noreplace) %{_sysconfdir}/z*
cvsdist abdd31
cvsdist 21be85
%files html
cvsdist 21be85
%defattr(-,root,root)
James Antill 104f9d
%doc Doc/*.html
cvsdist 21be85
cvsdist abdd31
%changelog
Kamil Dudka 97afa7
* Thu Jul 02 2015 Kamil Dudka <kdudka@redhat.com> - 5.0.8-3
Kamil Dudka 97afa7
- backport completion-related upstream fixes (#1238544)
Kamil Dudka 97afa7
c0bde1
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.8-2
c0bde1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c0bde1
Kamil Dudka b84eb4
* Wed Jun 03 2015 Kamil Dudka <kdudka@redhat.com> - 5.0.8-1
Kamil Dudka b84eb4
- Update to latest upstream release: Zsh 5.0.8
Kamil Dudka b84eb4
Kamil Dudka 724b3e
* Fri May 22 2015 Kamil Dudka <kdudka@redhat.com> - 5.0.7-8
Kamil Dudka 724b3e
- fix SIGSEGV of the syntax check in ksh emulation mode (#1222867)
Kamil Dudka 724b3e
Kamil Dudka 2aa467
* Mon Apr 20 2015 Kamil Dudka <kdudka@redhat.com> - 5.0.7-7
Kamil Dudka 2aa467
- fix SIGSEGV when handling heredocs and keyboard interrupt (#972624)
Kamil Dudka f44993
- queue signals when manipulating global state to avoid deadlock
Kamil Dudka 2aa467
Kamil Dudka 6a607c
* Sun Jan 25 2015 Kamil Dudka <kdudka@redhat.com> - 5.0.7-6
Kamil Dudka 6a607c
- use correct allocation function in the new 'cd' code (#1183238)
Kamil Dudka 6a607c
Kamil Dudka cb022d
* Fri Jan 23 2015 Kamil Dudka <kdudka@redhat.com> - 5.0.7-5
Kamil Dudka cb022d
- suppress a warning about closing an already closed file descriptor (#1184002)
Kamil Dudka 0a5586
- improve handling of NULL in the 'cd' built-in (#1183238)
Kamil Dudka cb022d
Kamil Dudka 5385c4
* Wed Nov 19 2014 Kamil Dudka <kdudka@redhat.com> - 5.0.7-4
Kamil Dudka 5385c4
- update documentation of POSIX_JOBS in the zshoptions.1 man page (#1162198)
Kamil Dudka 5385c4
Kamil Dudka 00e87b
* Tue Nov 18 2014 Kamil Dudka <kdudka@redhat.com> - 5.0.7-3
Kamil Dudka 00e87b
- replace an incorrect comment in /etc/zshenv (#1164313)
Kamil Dudka 00e87b
Kamil Dudka 7e97ff
* Mon Nov 10 2014 Kamil Dudka <kdudka@redhat.com> - 5.0.7-2
Kamil Dudka 7e97ff
- make the wait built-in work for already exited processes (#1162198)
Kamil Dudka 7e97ff
Dominic Hopf 91eafe
* Wed Oct 08 2014 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.7-1
Dominic Hopf 91eafe
- Update to latest upstream release: Zsh 5.0.7
Dominic Hopf 91eafe
Dominic Hopf 4a1cd9
* Thu Aug 28 2014 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.6-1
Dominic Hopf 4a1cd9
- Update to latest upstream release: Zsh 5.0.6
Dominic Hopf 4a1cd9
Peter Robinson a1eea4
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.5-8
Peter Robinson a1eea4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
Peter Robinson a1eea4
Dominic Hopf 54f9ac
* Thu Jul 17 2014 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.5-7
Dominic Hopf 54f9ac
- apply upstream patch which fixes CPU load issue (RHBZ#1120424)
Dominic Hopf 54f9ac
Adam Jackson c18d18
* Wed Jul 09 2014 Adam Jackson <ajax@redhat.com> 5.0.5-6
Adam Jackson c18d18
- Fix missing 'fi' in %%post
Adam Jackson c18d18
Dominic Hopf 370e71
* Thu Jul 03 2014 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.5-5
Dominic Hopf 370e71
- improve handling of /etc/shells
Dominic Hopf 370e71
Dominic Hopf 536e45
* Wed Jul 02 2014 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.5-4
Dominic Hopf 0adc03
- fix FTBFS issue (RHBZ#1106713)
Dominic Hopf 536e45
- remove individual _bindir setting; install to /usr/bin/ (RHBZ#1034060)
Dominic Hopf 536e45
- require info package instead of /sbin/install-info binary
Dominic Hopf 0adc03
f4ae70
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.5-2
f4ae70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f4ae70
Dominic Hopf 04261f
* Tue Apr 08 2014 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.5-1
Dominic Hopf 04261f
- Update to latest upstream release: Zsh 5.0.5
Dominic Hopf 04261f
James Antill 965dc7
* Thu Jan 16 2014 James Antill <james@fedoraproject.org> - 5.0.2-8
James Antill 965dc7
- Remove unneeded build require on tetex.
James Antill 965dc7
Dominic Hopf 69de01
* Sat Oct 26 2013 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.2-7
Dominic Hopf 69de01
- Require hostname package instead of /bin/hostname
Dominic Hopf 69de01
Dominic Hopf 3ec306
* Tue Oct 22 2013 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.2-6
Dominic Hopf 3ec306
- remove systemd completion, it delivers it's own now (RHBZ#1022039)
Dominic Hopf 3ec306
Dominic Hopf 6f0b00
* Thu Aug 01 2013 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.2-5
Dominic Hopf 6f0b00
- update systemd completion (adds machinectl command)
Dominic Hopf 6f0b00
Dominic Hopf d4b3a6
* Tue Jun 25 2013 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.2-4
Dominic Hopf d4b3a6
- up-to-date systemd completion (#949003)
Dominic Hopf d4b3a6
- apply patch for building for aarch64 (#926864)
Dominic Hopf d4b3a6
James Antill eed19b
* Mon Apr 15 2013 James Antill <james@fedoraproject.org> - 5.0.2-3
James Antill 06d906
- Fix the changelog dates.
James Antill 06d906
- Fix the texi itemx bug.
James Antill eed19b
- Resolves: bug#927863
James Antill eed19b
eef328
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.2-2
eef328
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
eef328
Dominic Hopf 68051d
* Tue Jan 08 2013 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.2-1
Dominic Hopf 68051d
- Update to new upstream version: Zsh 5.0.2
Dominic Hopf 68051d
Dominic Hopf c7523c
* Wed Nov 21 2012 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.0-1
Dominic Hopf c7523c
- Update to new upstream version: Zsh 5.0.0
Dominic Hopf c7523c
e409dc
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.17-2
e409dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e409dc
James Antill f1aca0
* Sun Mar 04 2012 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.17-1
Dominic Hopf b1ed0a
- Update to new upstream version: Zsh 4.3.17
Dominic Hopf b1ed0a
f0a3a9
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.15-2
f0a3a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f0a3a9
Dominic Hopf 9283c3
* Sat Dec 24 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.15-1
Dominic Hopf 9283c3
- Update to new upstream version: Zsh 4.3.15
Dominic Hopf 9283c3
Dominic Hopf b9e1bb
* Sat Dec 17 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.14-2
Dominic Hopf b9e1bb
- change the License field to MIT (RHBZ#768548)
Dominic Hopf b9e1bb
James Antill eed19b
* Sat Dec 10 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.14-1
Dominic Hopf 13c039
- Update to new upstream version: Zsh 4.3.14
Dominic Hopf 13c039
Dominic Hopf 273f53
* Sat Dec 03 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.13-1
Dominic Hopf 273f53
- Update to new upstream version: Zsh 4.3.13
Dominic Hopf 273f53
Dominic Hopf 3f163a
* Sat Aug 13 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.12-1
Dominic Hopf 3f163a
- Update to new upstream version: Zsh 4.3.12
Dominic Hopf 3f163a
d425c2
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.11-2
d425c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d425c2
Christopher Aillon 42493e
* Thu Jan 20 2011 Christopher Ailon <caillon@redhat.com> - 4.3.11-1
Christopher Aillon 42493e
- Rebase to upstream version 4.3.11
Christopher Aillon 42493e
Toshio Kuratomi 4a912f
* Tue Dec 7 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 4.3.10-6
Toshio Kuratomi 4a912f
- Rebuild for FTBFS https://bugzilla.redhat.com/show_bug.cgi?id=631197
Toshio Kuratomi 4a912f
- Remove deprecated PreReq, the packages aren't needed at runtime and they're
Toshio Kuratomi 4a912f
  already in Requires(post,preun,etc): lines.
Toshio Kuratomi 4a912f
James Antill 901bc0
* Mon Mar 22 2010 James Antill <james@fedoraproject.org> - 4.3.10-5
James Antill 901bc0
- Add pathmunge to our /etc/zshrc, for profile.d compat.
James Antill 901bc0
- Resolves: bug#548960
James Antill 901bc0
James Antill 41a26d
* Fri Aug  7 2009 James Antill <james@fedoraproject.org> - 4.3.10-4
James Antill 41a26d
- Allow --excludedocs command to work!
James Antill 41a26d
- Resolves: bug#515986
James Antill 41a26d
Jesse Keating 3fcc40
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.10-3
Jesse Keating 3fcc40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Jesse Keating 3fcc40
James Antill d3e623
* Mon Jul 20 2009 James Antill <james@fedoraproject.org> - 4.3.10-1
James Antill d3e623
- Import new upstream 4.3.10
James Antill d3e623
Karsten Hopp bcdc34
* Wed Jun 10 2009 Karsten Hopp <karsten@redhat.com> 4.3.9-4.1
Karsten Hopp bcdc34
- skip D02glob test on s390, too
Karsten Hopp bcdc34
James Antill 4b7fae
* Mon Mar  2 2009 James Antill <james@fedoraproject.org> - 4.3.9-4
James Antill 4b7fae
- Remove D02glob testcase on ppc/ppc64, and hope noone cares
James Antill 629e05
Jesse Keating 21ca26
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.9-2
Jesse Keating 21ca26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild