2009-12-07 10:15:30 +00:00
|
|
|
%define releasedate 2009-12-06
|
2004-09-09 16:25:46 +00:00
|
|
|
|
2004-09-09 16:25:19 +00:00
|
|
|
Name: ksh
|
2004-09-09 16:25:46 +00:00
|
|
|
Summary: The Original ATT Korn Shell
|
2004-09-09 16:25:19 +00:00
|
|
|
URL: http://www.kornshell.com/
|
2008-01-07 07:53:29 +00:00
|
|
|
Group: System Environment/Shells
|
2008-08-05 17:47:51 +00:00
|
|
|
License: CPL
|
2009-12-07 10:15:30 +00:00
|
|
|
Version: 20091206
|
2009-08-27 09:27:35 +00:00
|
|
|
Release: 1%{?dist}
|
2004-09-09 16:25:46 +00:00
|
|
|
Source0: http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{releasedate}.tgz
|
2007-04-23 07:59:50 +00:00
|
|
|
Source1: http://www.research.att.com/~gsf/download/tgz/INIT.%{releasedate}.tgz
|
2008-10-21 17:16:49 +00:00
|
|
|
Source3: kshrc.rhs
|
|
|
|
Source4: dotkshrc
|
2009-01-20 12:07:55 +00:00
|
|
|
|
2009-08-27 09:27:35 +00:00
|
|
|
#don't use not wanted/needed builtins - Fedora specific
|
2009-01-20 12:07:55 +00:00
|
|
|
Patch1: ksh-20070328-builtins.patch
|
|
|
|
|
2009-08-27 09:27:35 +00:00
|
|
|
#435159 - check if there is looped list
|
|
|
|
Patch2: ksh-20090630-jlist.patch
|
|
|
|
|
2007-02-21 12:36:12 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2006-02-02 11:23:08 +00:00
|
|
|
Conflicts: pdksh
|
2007-05-23 06:52:45 +00:00
|
|
|
Requires: coreutils, glibc-common, diffutils
|
2008-08-06 06:43:42 +00:00
|
|
|
BuildRequires: bison
|
2007-02-21 12:36:12 +00:00
|
|
|
Requires(post): grep, coreutils
|
|
|
|
Requires(preun): grep, coreutils
|
2004-09-09 16:25:19 +00:00
|
|
|
|
|
|
|
%description
|
2008-08-06 06:43:42 +00:00
|
|
|
KSH-93 is the most recent version of the KornShell by David Korn of
|
2004-09-09 16:25:46 +00:00
|
|
|
AT&T Bell Laboratories.
|
|
|
|
KornShell is a shell programming language, which is upward compatible
|
|
|
|
with "sh" (the Bourne Shell).
|
|
|
|
|
2004-09-09 16:25:19 +00:00
|
|
|
%prep
|
2004-09-09 16:25:46 +00:00
|
|
|
%setup -q -c
|
|
|
|
%setup -q -T -D -a 1
|
2009-01-20 12:07:55 +00:00
|
|
|
%patch1 -p1 -b .builtins
|
2009-08-27 09:27:35 +00:00
|
|
|
%patch2 -p1 -b .jlist
|
2004-09-09 16:25:19 +00:00
|
|
|
|
|
|
|
%build
|
2004-09-09 16:25:46 +00:00
|
|
|
./bin/package "read" ||:
|
2007-05-23 06:52:45 +00:00
|
|
|
export CCFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
export CC=gcc
|
|
|
|
./bin/package "make"
|
2004-09-09 16:25:46 +00:00
|
|
|
cp lib/package/LICENSES/ast LICENSE
|
2004-09-09 16:25:19 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2009-01-20 12:07:55 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT{/bin,%{_bindir},%{_mandir}/man1}
|
2005-05-10 10:35:06 +00:00
|
|
|
install -c -m 755 arch/*/bin/ksh $RPM_BUILD_ROOT/bin/ksh
|
2004-09-09 16:25:46 +00:00
|
|
|
install -c -m 644 arch/*/man/man1/sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ksh.1
|
2008-10-21 17:16:49 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/skel
|
|
|
|
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.kshrc
|
|
|
|
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/kshrc
|
2004-09-09 16:25:19 +00:00
|
|
|
|
2004-09-09 16:25:46 +00:00
|
|
|
%post
|
2004-09-09 16:25:19 +00:00
|
|
|
if [ ! -f /etc/shells ]; then
|
|
|
|
echo "/bin/ksh" > /etc/shells
|
|
|
|
else
|
|
|
|
if ! grep -q '^/bin/ksh$' /etc/shells ; then
|
|
|
|
echo "/bin/ksh" >> /etc/shells
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2004-09-09 16:25:46 +00:00
|
|
|
%postun
|
2004-09-09 16:25:19 +00:00
|
|
|
if [ ! -f /bin/ksh ]; then
|
2009-01-20 12:31:42 +00:00
|
|
|
sed -i '/^\/bin\/ksh$/ d' /etc/shells
|
2004-09-09 16:25:19 +00:00
|
|
|
fi
|
|
|
|
|
2004-09-09 16:25:46 +00:00
|
|
|
%verifyscript
|
|
|
|
echo -n "Looking for ksh in /etc/shells... "
|
|
|
|
if ! grep '^/bin/ksh$' /etc/shells > /dev/null; then
|
|
|
|
echo "missing"
|
|
|
|
echo "ksh missing from /etc/shells" >&2
|
|
|
|
else
|
|
|
|
echo "found"
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
2007-02-21 12:36:12 +00:00
|
|
|
%defattr(-, root, root,-)
|
2004-09-09 16:25:46 +00:00
|
|
|
%doc README LICENSE
|
2009-01-20 12:07:55 +00:00
|
|
|
/bin/ksh
|
2004-09-09 16:25:19 +00:00
|
|
|
%{_mandir}/man1/*
|
2008-10-21 17:16:49 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/skel/.kshrc
|
|
|
|
%config(noreplace) %{_sysconfdir}/kshrc
|
2004-09-09 16:25:46 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-09-09 16:25:19 +00:00
|
|
|
|
|
|
|
%changelog
|
2009-12-07 10:15:30 +00:00
|
|
|
* Fri Dec 07 2009 Michal Hlavinka <mhlavink@redhat.com> - 20091206-1
|
|
|
|
- updated to 2009-12-06
|
|
|
|
|
2009-12-04 16:20:15 +00:00
|
|
|
* Fri Dec 04 2009 Michal Hlavinka <mhlavink@redhat.com> - 20091130-1
|
|
|
|
- updated to 2009-11-30
|
|
|
|
|
2009-11-18 16:14:14 +00:00
|
|
|
* Wed Nov 18 2009 Michal Hlavinka <mhlavink@redhat.com> - 20091021-1
|
2009-11-18 16:11:00 +00:00
|
|
|
- updated to 2009-10-21
|
|
|
|
|
2009-08-27 09:27:35 +00:00
|
|
|
* Thu Aug 27 2009 Michal Hlavinka <mhlavink@redhat.com> - 20090630-1
|
|
|
|
- updated to 2009-06-30
|
|
|
|
|
2009-07-25 04:48:55 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090505-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-05-11 08:08:38 +00:00
|
|
|
* Mon May 11 2009 Michal Hlavinka <mhalvink@redhat.com> - 20090505-1
|
|
|
|
- updated to 2009-05-05
|
|
|
|
|
2009-05-05 09:57:59 +00:00
|
|
|
* Tue May 05 2009 Michal Hlavinka <mhalvink@redhat.com> - 20090501-1
|
|
|
|
- updated to 2009-05-01
|
|
|
|
|
2009-03-10 10:28:17 +00:00
|
|
|
* Tue Mar 10 2009 Michal Hlavinka <mhlavink@redhat.com> - 20081104-3
|
|
|
|
- fix typos in spec file
|
|
|
|
|
2009-02-25 12:06:29 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20081104-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-03-10 10:28:17 +00:00
|
|
|
* Tue Jan 21 2009 Michal Hlavinka <mhlavink@redhat.com> 20081104-1
|
2009-01-20 12:07:55 +00:00
|
|
|
- update to 2008-11-04
|
|
|
|
- ast-ksh-locales are not useable remove them
|
|
|
|
|
2009-03-10 10:28:17 +00:00
|
|
|
* Tue Oct 21 2008 Michal Hlavinka <mhlavink@redhat.com> 20080725-4
|
2008-10-21 17:16:49 +00:00
|
|
|
- fix #467025 - Ksh fails to initialise environment when login from graphic console
|
|
|
|
|
2008-08-06 06:43:42 +00:00
|
|
|
* Wed Aug 06 2008 Tomas Smetana <tsmetana@redhat.com> 20080725-3
|
|
|
|
- fix BuildRequires, rebuild
|
|
|
|
|
2008-08-05 17:47:51 +00:00
|
|
|
* Tue Aug 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> 20080725-2
|
|
|
|
- fix license tag
|
|
|
|
|
2008-07-28 06:55:21 +00:00
|
|
|
* Mon Jul 28 2008 Tomas Smetana <tsmetana@redhat.com> 20080725-1
|
|
|
|
- new upstream version
|
|
|
|
|
|
|
|
* Thu Jun 26 2008 Tomas Smetana <tsmetana@redhat.com> 20080624-1
|
|
|
|
- new upstream version
|
|
|
|
|
2008-02-11 08:19:43 +00:00
|
|
|
* Mon Feb 11 2008 Tomas Smetana <tsmetana@redhat.com> 20080202-1
|
|
|
|
- new upstream version
|
|
|
|
|
2008-01-30 07:31:34 +00:00
|
|
|
* Wed Jan 30 2008 Tomas Smetana <tsmetana@redhat.com> 20071105-3
|
|
|
|
- fix #430602 - ksh segfaults after unsetting OPTIND
|
|
|
|
|
2008-01-07 07:53:29 +00:00
|
|
|
* Mon Jan 07 2008 Tomas Smetana <tsmetana@redhat.com> 20071105-2
|
|
|
|
- fix #405381 - ksh will not handle $(xxx) when typeset -r IFS
|
|
|
|
- fix #386501 - bad group in spec file
|
|
|
|
|
2007-11-07 10:33:54 +00:00
|
|
|
* Wed Nov 07 2007 Tomas Smetana <tsmetana@redhat.com> 20071105-1
|
|
|
|
- new upstream version
|
|
|
|
|
2007-08-22 13:08:52 +00:00
|
|
|
* Wed Aug 22 2007 Tomas Smetana <tsmetana@redhat.com> 20070628-1.1
|
|
|
|
- rebuild
|
|
|
|
|
2007-07-12 07:20:50 +00:00
|
|
|
* Thu Jul 12 2007 Tomas Smetana <tsmetana@redhat.com> 20070628-1
|
|
|
|
- new upstream version
|
|
|
|
- fix unaligned access messages (Related: #219420)
|
|
|
|
|
2007-05-23 06:52:45 +00:00
|
|
|
* Tue May 22 2007 Tomas Smetana <tsmetana@redhat.com> 20070328-2
|
|
|
|
- fix wrong exit status of spawned process after SIGSTOP
|
|
|
|
- fix building of debuginfo package, add %%{?dist} to release
|
|
|
|
- fix handling of SIGTTOU in non-interactive shell
|
|
|
|
- remove useless builtins
|
|
|
|
|
2007-04-23 07:59:50 +00:00
|
|
|
* Thu Apr 19 2007 Tomas Smetana <tsmetana@redhat.com> 20070328-1
|
|
|
|
- new upstream source
|
|
|
|
- fix login shell invocation (#182397)
|
|
|
|
- fix memory leak
|
|
|
|
|
2007-02-21 12:36:12 +00:00
|
|
|
* Wed Feb 21 2007 Karsten Hopp <karsten@redhat.com> 20070111-1
|
|
|
|
- new upstream version
|
|
|
|
- fix invalid write in uname function
|
|
|
|
|
2006-07-12 06:43:32 +00:00
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 20060214-1.1
|
|
|
|
- rebuild
|
|
|
|
|
2006-06-01 11:47:03 +00:00
|
|
|
* Thu Jun 01 2006 Karsten Hopp <karsten@redhat.de> 20060214-1
|
|
|
|
- new upstream source
|
|
|
|
|
2006-02-27 12:24:02 +00:00
|
|
|
* Mon Feb 27 2006 Karsten Hopp <karsten@redhat.de> 20060124-3
|
2006-02-27 12:23:00 +00:00
|
|
|
- PreReq grep, coreutils (#182835)
|
|
|
|
|
2006-02-14 09:57:37 +00:00
|
|
|
* Tue Feb 14 2006 Karsten Hopp <karsten@redhat.de> 20060124-2
|
|
|
|
- make it build in chroots (#180561)
|
|
|
|
|
2006-02-13 10:09:53 +00:00
|
|
|
* Mon Feb 13 2006 Karsten Hopp <karsten@redhat.de> 20060124-1
|
|
|
|
- version 20060124
|
|
|
|
|
2006-02-11 03:50:24 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 20050202-5.1
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-10 10:57:18 +00:00
|
|
|
* Fri Feb 10 2006 Karsten Hopp <karsten@redhat.de> 20050202-5
|
|
|
|
- rebuild
|
|
|
|
|
2006-02-07 12:27:37 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 20050202-4.1
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2006-02-02 11:25:01 +00:00
|
|
|
* Thu Feb 02 2006 Karsten Hopp <karsten@redhat.de> 20050202-4
|
2006-02-02 11:23:08 +00:00
|
|
|
- fix uname -i output
|
|
|
|
- fix loop (*-path.patch)
|
|
|
|
- conflict pdksh instead of obsoleting it
|
|
|
|
|
2006-02-02 11:25:01 +00:00
|
|
|
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com> 20050202-3.1
|
2005-12-16 23:20:54 +00:00
|
|
|
- rebuilt for new gcj
|
|
|
|
|
2005-05-10 10:36:53 +00:00
|
|
|
* Tue May 10 2005 Karsten Hopp <karsten@redhat.de> 20050202-3
|
|
|
|
- enable debuginfo
|
|
|
|
|
2005-03-15 12:49:40 +00:00
|
|
|
* Tue Mar 15 2005 Karsten Hopp <karsten@redhat.de> 20050202-2
|
|
|
|
- add /usr/bin/ksh link for compatibility with pdksh scripts (#151134)
|
|
|
|
|
2005-03-02 12:13:12 +00:00
|
|
|
* Wed Mar 02 2005 Karsten Hopp <karsten@redhat.de> 20050202-1
|
|
|
|
- update and rebuild with gcc-4
|
|
|
|
|
2005-03-01 15:56:47 +00:00
|
|
|
* Tue Mar 01 2005 Karsten Hopp <karsten@redhat.de> 20041225-2
|
|
|
|
- fix gcc4 build
|
|
|
|
|
2005-01-21 14:47:01 +00:00
|
|
|
* Fri Jan 21 2005 Karsten Hopp <karsten@redhat.de> 20041225-1
|
|
|
|
- rebuild with new ksh tarball (license change)
|
|
|
|
|
2004-11-02 14:58:51 +00:00
|
|
|
* Tue Nov 02 2004 Karsten Hopp <karsten@redhat.de> 20040229-11
|
2004-11-02 14:55:01 +00:00
|
|
|
- disable ia64 for now
|
|
|
|
|
2004-10-15 10:52:27 +00:00
|
|
|
* Fri Oct 15 2004 Karsten Hopp <karsten@redhat.de> 20040229-9
|
|
|
|
- rebuild
|
|
|
|
|
2004-09-09 16:25:46 +00:00
|
|
|
* Thu Sep 02 2004 Nalin Dahyabhai <nalin@redhat.com> 20040229-8
|
|
|
|
- remove '&' from summary
|
|
|
|
|
|
|
|
* Thu Sep 02 2004 Bill Nottingham <notting@redhat.com> 20040229-7
|
|
|
|
- obsolete pdksh (#131303)
|
|
|
|
|
|
|
|
* Mon Aug 02 2004 Karsten Hopp <karsten@redhat.de> 20040229-6
|
|
|
|
- obsolete ksh93, provide ksh93
|
|
|
|
|
|
|
|
* Mon Jul 05 2004 Karsten Hopp <karsten@redhat.de> 20040229-3
|
|
|
|
- add /bin/ksh to /etc/shells
|
|
|
|
|
|
|
|
* Wed Jun 16 2004 Karsten Hopp <karsten@redhat.de> 20040229-2
|
|
|
|
- add ppc64 patch to avoid ppc64 dot symbol problem
|
|
|
|
|
|
|
|
* Fri May 28 2004 Karsten Hopp <karsten@redhat.de> 20040229-1
|
|
|
|
- initial version
|
2004-09-09 16:25:19 +00:00
|
|
|
|