2004-09-09 16:25:46 +00:00
|
|
|
%define releasedate 2004-02-29
|
2004-11-02 14:55:01 +00:00
|
|
|
ExcludeArch: ia64
|
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/
|
2004-09-09 16:25:46 +00:00
|
|
|
Group: Applications/Shells
|
|
|
|
License: AT&T Open Source
|
|
|
|
Version: 20040229
|
2004-11-02 14:58:51 +00:00
|
|
|
Release: 11
|
2004-09-09 16:25:46 +00:00
|
|
|
Source0: http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{releasedate}.tgz
|
|
|
|
Source1: http://www.research.att.com/~gsf/download/tgz/INIT.%{releasedate}.tgz
|
|
|
|
Source2: http://www.research.att.com/~gsf/download/tgz/ast-base-locale.%{releasedate}.tgz
|
|
|
|
Patch0: ksh-2004-02-29-ppc64.patch
|
|
|
|
|
|
|
|
# build information
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
Provides: ksh93
|
|
|
|
Obsoletes: ksh93
|
|
|
|
Provides: pdksh
|
2004-09-09 16:25:19 +00:00
|
|
|
Obsoletes: pdksh
|
|
|
|
|
|
|
|
%description
|
2004-09-09 16:25:46 +00:00
|
|
|
KSH-93 is the most recent version of the KornShell by David Korn of
|
|
|
|
AT&T Bell Laboratories.
|
|
|
|
KornShell is a shell programming language, which is upward compatible
|
|
|
|
with "sh" (the Bourne Shell).
|
|
|
|
|
|
|
|
Proprietary Notice:
|
|
|
|
This product contains certain software code or other
|
|
|
|
information ("AT&T Software") proprietary to AT&T Corp.
|
|
|
|
("AT&T"). The AT&T Software is provided to you "AS IS". YOU
|
|
|
|
ASSUME TOTAL RESPONSIBILITY AND RISK FOR USE OF THE AT&T
|
|
|
|
SOFTWARE. AT&T DOES NOT MAKE, AND EXPRESSLY DISCLAIMS, ANY
|
|
|
|
EXPRESS OR IMPLIED WARRANTIES OF ANY KIND WHATSOEVER,
|
|
|
|
INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
|
|
|
|
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
|
WARRANTIES OF TITLE OR NON-INFRINGEMENT OF ANY INTELLECTUAL
|
|
|
|
PROPERTY RIGHTS, ANY WARRANTIES ARISING BY USAGE OF TRADE,
|
|
|
|
COURSE OF DEALING OR COURSE OF PERFORMANCE, OR ANY WARRANTY
|
|
|
|
THAT THE AT&T SOFTWARE IS "ERROR FREE" OR WILL MEET YOUR
|
|
|
|
REQUIREMENTS.
|
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
|
|
|
|
%setup -q -T -D -a 2
|
|
|
|
%patch0 -p1 -b .ppc64
|
2004-09-09 16:25:19 +00:00
|
|
|
|
|
|
|
%build
|
2004-09-09 16:25:46 +00:00
|
|
|
./bin/package "read" ||:
|
|
|
|
./bin/package "make"
|
|
|
|
cp lib/package/LICENSES/ast LICENSE
|
2004-09-09 16:25:19 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-09-09 16:25:46 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT{/bin,%{_mandir}/man1}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale/{C,pt,fr,de,it,es}/LC_MESSAGES
|
|
|
|
install -c -s -m 755 arch/*/bin/ksh $RPM_BUILD_ROOT/bin/ksh
|
|
|
|
install -c -m 644 arch/*/man/man1/sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ksh.1
|
|
|
|
for i in C pt fr de it es; do
|
|
|
|
install -m 644 share/lib/locale/$i/LC_MESSAGES/* \
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES/
|
|
|
|
done
|
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
|
2004-09-09 16:25:46 +00:00
|
|
|
grep -v '^/bin/ksh$' /etc/shells >/etc/shells.new
|
2004-09-09 16:25:19 +00:00
|
|
|
mv /etc/shells.new /etc/shells
|
2004-09-09 16:25:46 +00:00
|
|
|
chmod 644 /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
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc "-- *NOTICE*"
|
|
|
|
%doc README LICENSE
|
|
|
|
/bin/*
|
|
|
|
%{_datadir}/locale/*/LC_MESSAGES/*
|
2004-09-09 16:25:19 +00:00
|
|
|
%{_mandir}/man1/*
|
2004-09-09 16:25:46 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-09-09 16:25:19 +00:00
|
|
|
|
|
|
|
%changelog
|
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
|
|
|
|