psss / rpms / zsh

Forked from rpms/zsh 5 years ago
Clone
cvsdist 2c8e3f3
# this file is encoded in UTF-8  -*- coding: utf-8 -*-
cvsdist 2c8e3f3
4a912ff
Summary: Powerful interactive shell
cvsdist abdd31b
Name: zsh
68051d9
Version: 5.0.2
James Antill 33e0ea1
Release: 8%{?dist}
b9e1bb9
License: MIT
e74224a
URL: http://zsh.sourceforge.net/
cvsdist abdd31b
Group: System Environment/Shells
13c0390
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
cvsdist abdd31b
Source1: zlogin.rhs
cvsdist abdd31b
Source2: zlogout.rhs
cvsdist abdd31b
Source3: zprofile.rhs
cvsdist abdd31b
Source4: zshrc.rhs
cvsdist abdd31b
Source5: zshenv.rhs
cvsdist 2c8e3f3
Source6: dotzshrc
cvsdist b244625
Source7: zshprompt.pl
f0f47b5
# Give me better tools or die!
4a912ff
%global _default_patch_fuzz 2
cvsdist 92bd44f
Patch0: zsh-serial.patch
9ed34da
Patch4: zsh-4.3.6-8bit-prompts.patch
75e8755
Patch5: zsh-test-C02-dev_fd-mock.patch
James Antill 06d9066
# Tmp.
James Antill 06d9066
Patch11: zsh-5.0.2.texi-itemx.patch
d4b3a69
Patch12: http://ausil.fedorapeople.org/aarch64/zsh/zsh-aarch64.patch
3d4d1c8
BuildRequires: coreutils sed ncurses-devel libcap-devel
James Antill 33e0ea1
BuildRequires: texinfo texi2html gawk hostname
jantill 2cc004c
Requires(post): /sbin/install-info grep
jantill 2cc004c
Requires(preun): /sbin/install-info
3d4d1c8
Requires(postun): coreutils grep
cvsdist abdd31b
cvsdist abdd31b
%description
cvsdist abdd31b
The zsh shell is a command interpreter usable as an interactive login
cvsdist abdd31b
shell and as a shell script command processor.  Zsh resembles the ksh
cvsdist abdd31b
shell (the Korn shell), but includes many enhancements.  Zsh supports
cvsdist abdd31b
command line editing, built-in spelling correction, programmable
cvsdist abdd31b
command completion, shell functions (with autoloading), a history
cvsdist 538cfb0
mechanism, and more.
cvsdist abdd31b
cvsdist 21be858
%package html
cvsdist 21be858
Summary: Zsh shell manual in html format
cvsdist 21be858
Group: System Environment/Shells
cvsdist 21be858
cvsdist 21be858
%description html
cvsdist 21be858
The zsh shell is a command interpreter usable as an interactive login
cvsdist 21be858
shell and as a shell script command processor.  Zsh resembles the ksh
cvsdist 21be858
shell (the Korn shell), but includes many enhancements.  Zsh supports
cvsdist 21be858
command line editing, built-in spelling correction, programmable
cvsdist 21be858
command completion, shell functions (with autoloading), a history
cvsdist 21be858
mechanism, and more.
cvsdist 21be858
cvsdist 21be858
This package contains the Zsh manual in html format.
cvsdist 21be858
cvsdist abdd31b
%prep
cvsdist abdd31b
cvsdist abdd31b
%setup -q
cvsdist 92bd44f
%patch0 -p1 -b .serial
eb6b312
%patch4 -p1
eb6b312
%patch5 -p1
cvsdist b244625
James Antill 06d9066
%patch11 -p1
d4b3a69
%patch12 -p1
James Antill 06d9066
cvsdist b244625
cp -p %SOURCE7 .
cvsdist abdd31b
cvsdist abdd31b
%build
cvsdist 2c8e3f3
%define _bindir /bin
cvsdist 8075d0a
# Avoid stripping...
cvsdist 8075d0a
export LDFLAGS=""
4b7fae2
%configure --enable-etcdir=%{_sysconfdir} --with-tcsetpgrp  --enable-maildir-support
cvsdist abdd31b
cvsdist 21be858
make all html
jantill dd07451
jantill dd07451
%check
cvsdist 83b6adb
# Run the testsuite
cvsdist 2c8e3f3
# the completion tests hang on s390 and s390x
cvsdist 2c8e3f3
  ( cd Test
cvsdist 2c8e3f3
    mkdir skipped
d9db358
%ifarch s390 s390x ppc ppc64
d9db358
    mv Y*.ztst skipped
cvsdist 2c8e3f3
%endif
bcdc344
%ifarch s390 s390x ppc64
4b7fae2
    # FIXME: This is a real failure, Debian apparently just don't test.
4b7fae2
    # RHBZ: 460043
4b7fae2
    mv D02glob.ztst skipped
4b7fae2
%endif
d9db358
    # FIXME: This hangs in mock
7cbce27
    # Running test: Test loading of all compiled modules
7cbce27
    mv V01zmodload.ztst skipped
d9db358
    true )
d9db358
  ZTST_verbose=1 make test
cvsdist abdd31b
cvsdist abdd31b
%install
cvsdist abdd31b
rm -rf $RPM_BUILD_ROOT
cvsdist 2c8e3f3
%makeinstall install.info \
jantill dd07451
  fndir=$RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/functions \
104f9d3
  sitefndir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions \
104f9d3
  scriptdir=$RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/scripts \
104f9d3
  sitescriptdir=$RPM_BUILD_ROOT%{_datadir}/zsh/scripts
cvsdist abdd31b
cvsdist 2c8e3f3
rm -f ${RPM_BUILD_ROOT}%{_bindir}/zsh-%{version}
cvsdist 2c8e3f3
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
cvsdist abdd31b
cvsdist 2c8e3f3
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}
jantill 2cc004c
for i in %{SOURCE4} %{SOURCE1} %{SOURCE2} %{SOURCE5} %{SOURCE3}; do
jantill 2cc004c
    install -m 644 $i ${RPM_BUILD_ROOT}%{_sysconfdir}/"$(basename $i .rhs)"
cvsdist abdd31b
done
cvsdist abdd31b
cvsdist 2c8e3f3
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/skel
e148d5c
install -m 644 %{SOURCE6} ${RPM_BUILD_ROOT}%{_sysconfdir}/skel/.zshrc
cvsdist 2c8e3f3
jantill 2cc004c
# This is just here to shut up rpmlint, and is very annoying.
jantill 2cc004c
# Note that we can't chmod everything as then rpmlint will complain about
jantill 2cc004c
# those without a she-bang line.
jantill 2cc004c
for i in checkmail harden run-help zcalc zkbd; do
jantill 2cc004c
    sed -i -e 's!/usr/local/bin/zsh!%{_bindir}/zsh!' \
jantill 2cc004c
      ${RPM_BUILD_ROOT}%{_datadir}/zsh/*/functions/$i
jantill 2cc004c
    chmod +x ${RPM_BUILD_ROOT}%{_datadir}/zsh/*/functions/$i
jantill 2cc004c
done
jantill 2cc004c
jantill dd07451
cvsdist abdd31b
%clean
cvsdist abdd31b
rm -rf $RPM_BUILD_ROOT
cvsdist abdd31b
cvsdist abdd31b
%post
cvsdist 2c8e3f3
if [ ! -f %{_sysconfdir}/shells ] ; then
cvsdist 2c8e3f3
    echo "%{_bindir}/zsh" > %{_sysconfdir}/shells
cvsdist abdd31b
else
cvsdist 2c8e3f3
    grep -q "^%{_bindir}/zsh$" %{_sysconfdir}/shells || echo "%{_bindir}/zsh" >> %{_sysconfdir}/shells
cvsdist abdd31b
fi
cvsdist abdd31b
41a26d8
if [ -f %{_infodir}/zsh.info.gz ]; then
41a26d8
# This is needed so that --excludedocs works.
cvsdist abdd31b
/sbin/install-info %{_infodir}/zsh.info.gz %{_infodir}/dir \
jantill dd07451
  --entry="* zsh: (zsh).			An enhanced bourne shell."
41a26d8
fi
41a26d8
4cff864
:
cvsdist abdd31b
cvsdist abdd31b
%preun
cvsdist abdd31b
if [ "$1" = 0 ] ; then
41a26d8
    if [ -f %{_infodir}/zsh.info.gz ]; then
41a26d8
    # This is needed so that --excludedocs works.
cvsdist abdd31b
    /sbin/install-info --delete %{_infodir}/zsh.info.gz %{_infodir}/dir \
jantill dd07451
      --entry="* zsh: (zsh).			An enhanced bourne shell."
41a26d8
    fi
cvsdist abdd31b
fi
4cff864
:
cvsdist abdd31b
cvsdist abdd31b
%postun
cvsdist abdd31b
if [ "$1" = 0 ] ; then
cvsdist 2c8e3f3
    if [ -f %{_sysconfdir}/shells ] ; then
jantill dd07451
        TmpFile=`%{_bindir}/mktemp /tmp/.zshrpmXXXXXX`
jantill dd07451
        grep -v '^%{_bindir}/zsh$' %{_sysconfdir}/shells > $TmpFile
jantill 41d85bb
        cp -f $TmpFile %{_sysconfdir}/shells
jantill 41d85bb
        rm -f $TmpFile
cvsdist abdd31b
    fi
cvsdist abdd31b
fi
cvsdist abdd31b
cvsdist abdd31b
%files
cvsdist abdd31b
%defattr(-,root,root)
e473665
%doc README LICENCE Etc/BUGS Etc/CONTRIBUTORS Etc/FAQ FEATURES MACHINES
e473665
%doc NEWS Etc/zsh-development-guide Etc/completion-style-guide zshprompt.pl
cvsdist 2c8e3f3
%attr(755,root,root) %{_bindir}/zsh
cvsdist abdd31b
%{_mandir}/*/*
cvsdist abdd31b
%{_infodir}/*
cvsdist 83b6adb
%{_datadir}/zsh
cvsdist 2c8e3f3
%{_libdir}/zsh
jantill 41d85bb
%config(noreplace) %{_sysconfdir}/skel/.z*
jantill dd07451
%config(noreplace) %{_sysconfdir}/z*
cvsdist abdd31b
cvsdist 21be858
%files html
cvsdist 21be858
%defattr(-,root,root)
104f9d3
%doc Doc/*.html
cvsdist 21be858
cvsdist abdd31b
%changelog
James Antill 33e0ea1
* Thu Jan 16 2014 James Antill <james@fedoraproject.org> - 5.0.2-8
James Antill 33e0ea1
- Remove unneeded build require on tetex.
James Antill 33e0ea1
6c2f57d
* Sat Oct 26 2013 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.2-7
6c2f57d
- Require hostname package instead of /bin/hostname
6c2f57d
3ec3062
* Tue Oct 22 2013 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.2-6
3ec3062
- remove systemd completion, it delivers it's own now (RHBZ#1022039)
3ec3062
6f0b000
* Thu Aug 01 2013 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.2-5
6f0b000
- update systemd completion (adds machinectl command)
6f0b000
d4b3a69
* Tue Jun 25 2013 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.2-4
d4b3a69
- up-to-date systemd completion (#949003)
d4b3a69
- apply patch for building for aarch64 (#926864)
d4b3a69
James Antill eed19bb
* Mon Apr 15 2013 James Antill <james@fedoraproject.org> - 5.0.2-3
James Antill 06d9066
- Fix the changelog dates.
James Antill 06d9066
- Fix the texi itemx bug.
James Antill eed19bb
- Resolves: bug#927863
James Antill eed19bb
eef328c
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.2-2
eef328c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
eef328c
68051d9
* Tue Jan 08 2013 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.2-1
68051d9
- Update to new upstream version: Zsh 5.0.2
68051d9
c7523c4
* Wed Nov 21 2012 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.0-1
c7523c4
- Update to new upstream version: Zsh 5.0.0
c7523c4
e409dc3
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.17-2
e409dc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e409dc3
James Antill f1aca06
* Sun Mar 04 2012 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.17-1
b1ed0a2
- Update to new upstream version: Zsh 4.3.17
b1ed0a2
f0a3a93
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.15-2
f0a3a93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f0a3a93
9283c33
* Sat Dec 24 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.15-1
9283c33
- Update to new upstream version: Zsh 4.3.15
9283c33
b9e1bb9
* Sat Dec 17 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.14-2
b9e1bb9
- change the License field to MIT (RHBZ#768548)
b9e1bb9
James Antill eed19bb
* Sat Dec 10 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.14-1
13c0390
- Update to new upstream version: Zsh 4.3.14
13c0390
273f53f
* Sat Dec 03 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.13-1
273f53f
- Update to new upstream version: Zsh 4.3.13
273f53f
3f163a2
* Sat Aug 13 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.12-1
3f163a2
- Update to new upstream version: Zsh 4.3.12
3f163a2
d425c25
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.11-2
d425c25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d425c25
Christopher Aillon 42493ed
* Thu Jan 20 2011 Christopher Ailon <caillon@redhat.com> - 4.3.11-1
Christopher Aillon 42493ed
- Rebase to upstream version 4.3.11
Christopher Aillon 42493ed
4a912ff
* Tue Dec 7 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 4.3.10-6
4a912ff
- Rebuild for FTBFS https://bugzilla.redhat.com/show_bug.cgi?id=631197
4a912ff
- Remove deprecated PreReq, the packages aren't needed at runtime and they're
4a912ff
  already in Requires(post,preun,etc): lines.
4a912ff
901bc01
* Mon Mar 22 2010 James Antill <james@fedoraproject.org> - 4.3.10-5
901bc01
- Add pathmunge to our /etc/zshrc, for profile.d compat.
901bc01
- Resolves: bug#548960
901bc01
41a26d8
* Fri Aug  7 2009 James Antill <james@fedoraproject.org> - 4.3.10-4
41a26d8
- Allow --excludedocs command to work!
41a26d8
- Resolves: bug#515986
41a26d8
3fcc40f
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.10-3
3fcc40f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3fcc40f
d3e6239
* Mon Jul 20 2009 James Antill <james@fedoraproject.org> - 4.3.10-1
d3e6239
- Import new upstream 4.3.10
d3e6239
bcdc344
* Wed Jun 10 2009 Karsten Hopp <karsten@redhat.com> 4.3.9-4.1
bcdc344
- skip D02glob test on s390, too
bcdc344
4b7fae2
* Mon Mar  2 2009 James Antill <james@fedoraproject.org> - 4.3.9-4
4b7fae2
- Remove D02glob testcase on ppc/ppc64, and hope noone cares
629e052
21ca26d
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.9-2
21ca26d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild