|
|
9b6690c |
%define releasedate 2010-03-09
|
|
cvsdist |
7b811d5 |
|
|
cvsdist |
00f58df |
Name: ksh
|
|
cvsdist |
7b811d5 |
Summary: The Original ATT Korn Shell
|
|
cvsdist |
00f58df |
URL: http://www.kornshell.com/
|
|
|
64f1bf7 |
Group: System Environment/Shells
|
|
|
53ba2c5 |
License: CPL
|
|
|
9b6690c |
Version: 20100309
|
|
|
2f218dc |
Release: 5%{?dist}
|
|
cvsdist |
7b811d5 |
Source0: http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{releasedate}.tgz
|
|
|
521d11f |
Source1: http://www.research.att.com/~gsf/download/tgz/INIT.%{releasedate}.tgz
|
|
|
9d5844c |
Source3: kshrc.rhs
|
|
|
9d5844c |
Source4: dotkshrc
|
|
|
b30d358 |
|
|
|
a924419 |
#don't use not wanted/needed builtins - Fedora specific
|
|
|
b30d358 |
Patch1: ksh-20070328-builtins.patch
|
|
|
b30d358 |
|
|
|
47ed3fa |
#debugging, 435159 - check if there is looped list
|
|
|
60138b5 |
Patch2: ksh-20090630-jlist.patch
|
|
|
60138b5 |
|
|
|
cbf2026 |
#sent upstream, 572291 - tty settings not restored after timed out read for utf-8 locale
|
|
|
cbf2026 |
Patch3: ksh-20100309-restoretty.patch
|
|
|
cbf2026 |
|
|
|
47ed3fa |
#sent upstream, rhbz#584704
|
|
|
47ed3fa |
Patch4: ksh-20100309-compsubst.patch
|
|
|
47ed3fa |
|
|
|
47ed3fa |
#sent upstream, rhbz#587127, for ksh <2010-03-19
|
|
|
47ed3fa |
Patch5: ksh-20100309-fixwhence.patch
|
|
|
47ed3fa |
|
|
|
2f218dc |
#from upstream, rhbz#578582, for ksh
|
|
|
2f218dc |
Patch6: ksh-20100309-pathcrash.patch
|
|
|
47ed3fa |
|
|
|
0f16643 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
fd54fb9 |
Conflicts: pdksh
|
|
|
8a6e4f2 |
Requires: coreutils, glibc-common, diffutils
|
|
|
a8955dc |
BuildRequires: bison
|
|
|
0f16643 |
Requires(post): grep, coreutils
|
|
|
0f16643 |
Requires(preun): grep, coreutils
|
|
cvsdist |
00f58df |
|
|
cvsdist |
00f58df |
%description
|
|
|
a8955dc |
KSH-93 is the most recent version of the KornShell by David Korn of
|
|
cvsdist |
7b811d5 |
AT&T Bell Laboratories.
|
|
cvsdist |
7b811d5 |
KornShell is a shell programming language, which is upward compatible
|
|
cvsdist |
7b811d5 |
with "sh" (the Bourne Shell).
|
|
cvsdist |
7b811d5 |
|
|
cvsdist |
00f58df |
%prep
|
|
cvsdist |
7b811d5 |
%setup -q -c
|
|
cvsdist |
7b811d5 |
%setup -q -T -D -a 1
|
|
|
b30d358 |
%patch1 -p1 -b .builtins
|
|
|
60138b5 |
%patch2 -p1 -b .jlist
|
|
|
cbf2026 |
%patch3 -p1 -b .restoretty
|
|
|
47ed3fa |
%patch4 -p1 -b .compsubst
|
|
|
47ed3fa |
%patch5 -p1 -b .fixwhence
|
|
|
2f218dc |
%patch6 -p1 -b .pathcrash
|
|
cvsdist |
00f58df |
|
|
|
9b6690c |
#/dev/fd test does not work because of mock
|
|
|
9b6690c |
sed -i 's|ls /dev/fd|ls /proc/self/fd|' src/cmd/ksh93/features/options
|
|
|
9b6690c |
|
|
cvsdist |
00f58df |
%build
|
|
cvsdist |
7b811d5 |
./bin/package "read" ||:
|
|
|
8a6e4f2 |
export CCFLAGS="$RPM_OPT_FLAGS"
|
|
|
8a6e4f2 |
export CC=gcc
|
|
|
8a6e4f2 |
./bin/package "make"
|
|
cvsdist |
7b811d5 |
cp lib/package/LICENSES/ast LICENSE
|
|
cvsdist |
00f58df |
|
|
cvsdist |
00f58df |
%install
|
|
cvsdist |
00f58df |
rm -rf $RPM_BUILD_ROOT
|
|
|
b30d358 |
mkdir -p $RPM_BUILD_ROOT{/bin,%{_bindir},%{_mandir}/man1}
|
|
|
59272c8 |
install -c -m 755 arch/*/bin/ksh $RPM_BUILD_ROOT/bin/ksh
|
|
cvsdist |
7b811d5 |
install -c -m 644 arch/*/man/man1/sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ksh.1
|
|
|
9d5844c |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/skel
|
|
|
9d5844c |
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.kshrc
|
|
|
9d5844c |
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/kshrc
|
|
cvsdist |
00f58df |
|
|
cvsdist |
7b811d5 |
%post
|
|
cvsdist |
00f58df |
if [ ! -f /etc/shells ]; then
|
|
cvsdist |
00f58df |
echo "/bin/ksh" > /etc/shells
|
|
cvsdist |
00f58df |
else
|
|
cvsdist |
00f58df |
if ! grep -q '^/bin/ksh$' /etc/shells ; then
|
|
cvsdist |
00f58df |
echo "/bin/ksh" >> /etc/shells
|
|
cvsdist |
00f58df |
fi
|
|
cvsdist |
00f58df |
fi
|
|
cvsdist |
00f58df |
|
|
cvsdist |
7b811d5 |
%postun
|
|
cvsdist |
00f58df |
if [ ! -f /bin/ksh ]; then
|
|
|
e9c80e4 |
sed -i '/^\/bin\/ksh$/ d' /etc/shells
|
|
cvsdist |
00f58df |
fi
|
|
cvsdist |
00f58df |
|
|
cvsdist |
7b811d5 |
%verifyscript
|
|
cvsdist |
7b811d5 |
echo -n "Looking for ksh in /etc/shells... "
|
|
cvsdist |
7b811d5 |
if ! grep '^/bin/ksh$' /etc/shells > /dev/null; then
|
|
cvsdist |
7b811d5 |
echo "missing"
|
|
cvsdist |
7b811d5 |
echo "ksh missing from /etc/shells" >&2
|
|
cvsdist |
7b811d5 |
else
|
|
cvsdist |
7b811d5 |
echo "found"
|
|
cvsdist |
7b811d5 |
fi
|
|
cvsdist |
7b811d5 |
|
|
cvsdist |
7b811d5 |
%files
|
|
|
0f16643 |
%defattr(-, root, root,-)
|
|
cvsdist |
7b811d5 |
%doc README LICENSE
|
|
|
b30d358 |
/bin/ksh
|
|
cvsdist |
00f58df |
%{_mandir}/man1/*
|
|
|
9d5844c |
%config(noreplace) %{_sysconfdir}/skel/.kshrc
|
|
|
9d5844c |
%config(noreplace) %{_sysconfdir}/kshrc
|
|
cvsdist |
7b811d5 |
|
|
cvsdist |
7b811d5 |
%clean
|
|
cvsdist |
7b811d5 |
rm -rf $RPM_BUILD_ROOT
|
|
cvsdist |
00f58df |
|
|
cvsdist |
00f58df |
%changelog
|
|
|
2f218dc |
* Wed May 05 2010 Michal Hlavinka <mhlavink@redhat.com> - 20100309-5
|
|
|
2f218dc |
- fix rare cd builtin crash (#578582)
|
|
|
2f218dc |
|
|
|
47ed3fa |
* Wed May 05 2010 Michal Hlavinka <mhlavink@redhat.com> - 20100309-4
|
|
|
47ed3fa |
- fix infinite loop when whence builtin is used with -q option (#587127)
|
|
|
47ed3fa |
- fix stdin for double command substitution (#584007)
|
|
|
47ed3fa |
|
|
|
892b12e |
* Mon Mar 29 2010 Michal Hlavinka <mhlavink@redhat.com> - 20100309-3
|
|
|
892b12e |
- fix typo in last patch
|
|
|
892b12e |
|
|
|
cbf2026 |
* Fri Mar 26 2010 Michal Hlavinka <mhlavink@redhat.com> - 20100309-2
|
|
|
cbf2026 |
- restore tty settings after timed out read for utf-8 locale
|
|
|
cbf2026 |
|
|
|
9b6690c |
* Wed Mar 10 2010 Michal Hlavinka <mhlavink@redhat.com> - 20100309-1
|
|
|
9b6690c |
- updated to 2010-03-09
|
|
|
9b6690c |
- fix mock building - detection of /dev/fd/X
|
|
|
9b6690c |
|
|
|
1b4fe25 |
* Mon Jan 04 2010 Michal Hlavinka <mhlavink@redhat.com> - 20100202-1
|
|
|
1b4fe25 |
- updated to 2010-02-02
|
|
|
1b4fe25 |
|
|
|
9ea4c53 |
* Mon Dec 07 2009 Michal Hlavinka <mhlavink@redhat.com> - 20091206-1
|
|
|
9ea4c53 |
- updated to 2009-12-06
|
|
|
9ea4c53 |
|
|
|
3ea3bbc |
* Fri Dec 04 2009 Michal Hlavinka <mhlavink@redhat.com> - 20091130-1
|
|
|
3ea3bbc |
- updated to 2009-11-30
|
|
|
3ea3bbc |
|
|
|
a924419 |
* Wed Nov 18 2009 Michal Hlavinka <mhlavink@redhat.com> - 20091021-1
|
|
|
a924419 |
- updated to 2009-10-21
|
|
|
a924419 |
|
|
|
60138b5 |
* Thu Aug 27 2009 Michal Hlavinka <mhlavink@redhat.com> - 20090630-1
|
|
|
60138b5 |
- updated to 2009-06-30
|
|
|
60138b5 |
- fixes #518942
|
|
|
60138b5 |
|
|
|
af0ef2c |
* Wed Jul 29 2009 Michal Hlavinka <mhlavink@redhat.com> - 20081212-1
|
|
|
af0ef2c |
- going back to 2008-12-12 because there is nothing else usable enough
|
|
|
af0ef2c |
- fixes #510833
|
|
|
af0ef2c |
|
|
|
0c9f445 |
* Mon May 11 2009 Michal Hlavinka <mhalvink@redhat.com> - 20090505-1
|
|
|
0c9f445 |
- updated to 2009-05-05
|
|
|
0c9f445 |
|
|
|
ddf97e1 |
* Tue May 05 2009 Michal Hlavinka <mhlavink@reshat.com> - 20090501-2
|
|
|
ddf97e1 |
- skip release -1 because of broken koji
|
|
|
ddf97e1 |
|
|
|
f029caf |
* Tue May 05 2009 Michal Hlavinka <mhalvink@redhat.com> - 20090501-1
|
|
|
f029caf |
- updated to 2009-05-01
|
|
|
f029caf |
|
|
|
895e246 |
* Tue Mar 10 2009 Michal Hlavinka <mhlavink@redhat.com> - 20081104-3
|
|
|
895e246 |
- fix typos in spec file
|
|
|
895e246 |
|
|
|
6bc5dc6 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20081104-2
|
|
|
6bc5dc6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
6bc5dc6 |
|
|
|
895e246 |
* Tue Jan 21 2009 Michal Hlavinka <mhlavink@redhat.com> 20081104-1
|
|
|
b30d358 |
- update to 2008-11-04
|
|
|
b30d358 |
- ast-ksh-locales are not useable remove them
|
|
|
b30d358 |
|
|
|
895e246 |
* Tue Oct 21 2008 Michal Hlavinka <mhlavink@redhat.com> 20080725-4
|
|
|
9d5844c |
- fix #467025 - Ksh fails to initialise environment when login from graphic console
|
|
|
9d5844c |
|
|
|
a8955dc |
* Wed Aug 06 2008 Tomas Smetana <tsmetana@redhat.com> 20080725-3
|
|
|
a8955dc |
- fix BuildRequires, rebuild
|
|
|
a8955dc |
|
|
|
53ba2c5 |
* Tue Aug 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> 20080725-2
|
|
|
53ba2c5 |
- fix license tag
|
|
|
53ba2c5 |
|
|
|
a664599 |
* Mon Jul 28 2008 Tomas Smetana <tsmetana@redhat.com> 20080725-1
|
|
|
a664599 |
- new upstream version
|
|
|
a664599 |
|
|
|
a664599 |
* Thu Jun 26 2008 Tomas Smetana <tsmetana@redhat.com> 20080624-1
|
|
|
a664599 |
- new upstream version
|
|
|
a664599 |
|
|
|
0f1170c |
* Mon Feb 11 2008 Tomas Smetana <tsmetana@redhat.com> 20080202-1
|
|
|
0f1170c |
- new upstream version
|
|
|
0f1170c |
|
|
|
98fd270 |
* Wed Jan 30 2008 Tomas Smetana <tsmetana@redhat.com> 20071105-3
|
|
|
98fd270 |
- fix #430602 - ksh segfaults after unsetting OPTIND
|
|
|
98fd270 |
|
|
|
64f1bf7 |
* Mon Jan 07 2008 Tomas Smetana <tsmetana@redhat.com> 20071105-2
|
|
|
64f1bf7 |
- fix #405381 - ksh will not handle $(xxx) when typeset -r IFS
|
|
|
64f1bf7 |
- fix #386501 - bad group in spec file
|
|
|
64f1bf7 |
|
|
|
4852349 |
* Wed Nov 07 2007 Tomas Smetana <tsmetana@redhat.com> 20071105-1
|
|
|
4852349 |
- new upstream version
|
|
|
4852349 |
|
|
|
b472a5e |
* Wed Aug 22 2007 Tomas Smetana <tsmetana@redhat.com> 20070628-1.1
|
|
|
b472a5e |
- rebuild
|
|
|
b472a5e |
|
|
|
3de28ba |
* Thu Jul 12 2007 Tomas Smetana <tsmetana@redhat.com> 20070628-1
|
|
|
3de28ba |
- new upstream version
|
|
|
3de28ba |
- fix unaligned access messages (Related: #219420)
|
|
|
3de28ba |
|
|
|
8a6e4f2 |
* Tue May 22 2007 Tomas Smetana <tsmetana@redhat.com> 20070328-2
|
|
|
8a6e4f2 |
- fix wrong exit status of spawned process after SIGSTOP
|
|
|
8a6e4f2 |
- fix building of debuginfo package, add %%{?dist} to release
|
|
|
8a6e4f2 |
- fix handling of SIGTTOU in non-interactive shell
|
|
|
8a6e4f2 |
- remove useless builtins
|
|
|
8a6e4f2 |
|
|
|
521d11f |
* Thu Apr 19 2007 Tomas Smetana <tsmetana@redhat.com> 20070328-1
|
|
|
521d11f |
- new upstream source
|
|
|
521d11f |
- fix login shell invocation (#182397)
|
|
|
521d11f |
- fix memory leak
|
|
|
521d11f |
|
|
|
0f16643 |
* Wed Feb 21 2007 Karsten Hopp <karsten@redhat.com> 20070111-1
|
|
|
0f16643 |
- new upstream version
|
|
|
0f16643 |
- fix invalid write in uname function
|
|
|
0f16643 |
|
|
|
e275b3a |
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 20060214-1.1
|
|
|
e275b3a |
- rebuild
|
|
|
e275b3a |
|
|
|
a909292 |
* Thu Jun 01 2006 Karsten Hopp <karsten@redhat.de> 20060214-1
|
|
|
a909292 |
- new upstream source
|
|
|
a909292 |
|
|
|
6b025a3 |
* Mon Feb 27 2006 Karsten Hopp <karsten@redhat.de> 20060124-3
|
|
|
e059c66 |
- PreReq grep, coreutils (#182835)
|
|
|
e059c66 |
|
|
|
a5bc967 |
* Tue Feb 14 2006 Karsten Hopp <karsten@redhat.de> 20060124-2
|
|
|
a5bc967 |
- make it build in chroots (#180561)
|
|
|
a5bc967 |
|
|
|
c0b80f3 |
* Mon Feb 13 2006 Karsten Hopp <karsten@redhat.de> 20060124-1
|
|
|
c0b80f3 |
- version 20060124
|
|
|
c0b80f3 |
|
|
|
a9cc8bb |
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 20050202-5.1
|
|
|
a9cc8bb |
- bump again for double-long bug on ppc(64)
|
|
|
a9cc8bb |
|
|
|
d2c1e3e |
* Fri Feb 10 2006 Karsten Hopp <karsten@redhat.de> 20050202-5
|
|
|
d2c1e3e |
- rebuild
|
|
|
d2c1e3e |
|
|
|
ab8bcbe |
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 20050202-4.1
|
|
|
ab8bcbe |
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
ab8bcbe |
|
|
|
997da7f |
* Thu Feb 02 2006 Karsten Hopp <karsten@redhat.de> 20050202-4
|
|
|
fd54fb9 |
- fix uname -i output
|
|
|
fd54fb9 |
- fix loop (*-path.patch)
|
|
|
fd54fb9 |
- conflict pdksh instead of obsoleting it
|
|
|
fd54fb9 |
|
|
|
997da7f |
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com> 20050202-3.1
|
|
|
2e9b9f6 |
- rebuilt for new gcj
|
|
|
2e9b9f6 |
|
|
|
6700d03 |
* Tue May 10 2005 Karsten Hopp <karsten@redhat.de> 20050202-3
|
|
|
6700d03 |
- enable debuginfo
|
|
|
6700d03 |
|
|
|
527ccdf |
* Tue Mar 15 2005 Karsten Hopp <karsten@redhat.de> 20050202-2
|
|
|
527ccdf |
- add /usr/bin/ksh link for compatibility with pdksh scripts (#151134)
|
|
|
527ccdf |
|
|
|
62e78ed |
* Wed Mar 02 2005 Karsten Hopp <karsten@redhat.de> 20050202-1
|
|
|
62e78ed |
- update and rebuild with gcc-4
|
|
|
62e78ed |
|
|
|
f313d49 |
* Tue Mar 01 2005 Karsten Hopp <karsten@redhat.de> 20041225-2
|
|
|
f313d49 |
- fix gcc4 build
|
|
|
f313d49 |
|
|
|
c790c1f |
* Fri Jan 21 2005 Karsten Hopp <karsten@redhat.de> 20041225-1
|
|
|
c790c1f |
- rebuild with new ksh tarball (license change)
|
|
|
c790c1f |
|
|
|
954d490 |
* Tue Nov 02 2004 Karsten Hopp <karsten@redhat.de> 20040229-11
|
|
|
7e82c20 |
- disable ia64 for now
|
|
|
7e82c20 |
|
|
|
df9066f |
* Fri Oct 15 2004 Karsten Hopp <karsten@redhat.de> 20040229-9
|
|
|
df9066f |
- rebuild
|
|
|
df9066f |
|
|
cvsdist |
7b811d5 |
* Thu Sep 02 2004 Nalin Dahyabhai <nalin@redhat.com> 20040229-8
|
|
cvsdist |
7b811d5 |
- remove '&' from summary
|
|
cvsdist |
7b811d5 |
|
|
cvsdist |
7b811d5 |
* Thu Sep 02 2004 Bill Nottingham <notting@redhat.com> 20040229-7
|
|
cvsdist |
7b811d5 |
- obsolete pdksh (#131303)
|
|
cvsdist |
7b811d5 |
|
|
cvsdist |
7b811d5 |
* Mon Aug 02 2004 Karsten Hopp <karsten@redhat.de> 20040229-6
|
|
cvsdist |
7b811d5 |
- obsolete ksh93, provide ksh93
|
|
cvsdist |
7b811d5 |
|
|
cvsdist |
7b811d5 |
* Mon Jul 05 2004 Karsten Hopp <karsten@redhat.de> 20040229-3
|
|
cvsdist |
7b811d5 |
- add /bin/ksh to /etc/shells
|
|
cvsdist |
7b811d5 |
|
|
cvsdist |
7b811d5 |
* Wed Jun 16 2004 Karsten Hopp <karsten@redhat.de> 20040229-2
|
|
cvsdist |
7b811d5 |
- add ppc64 patch to avoid ppc64 dot symbol problem
|
|
cvsdist |
7b811d5 |
|
|
cvsdist |
7b811d5 |
* Fri May 28 2004 Karsten Hopp <karsten@redhat.de> 20040229-1
|
|
cvsdist |
7b811d5 |
- initial version
|
|
cvsdist |
00f58df |
|