auto-import ksh-20040229-8 from ksh-20040229-8.src.rpm
This commit is contained in:
parent
00f58df340
commit
7b811d535c
@ -1,2 +1,3 @@
|
|||||||
INIT.2002-06-28.tgz
|
INIT.2004-02-29.tgz
|
||||||
ast-ksh.2002-06-28.tgz
|
ast-base-locale.2004-02-29.tgz
|
||||||
|
ast-ksh.2004-02-29.tgz
|
||||||
|
124
ksh.spec
124
ksh.spec
@ -1,47 +1,66 @@
|
|||||||
|
%define releasedate 2004-02-29
|
||||||
|
|
||||||
Name: ksh
|
Name: ksh
|
||||||
Summary: The Original AT&T Korn Shell
|
Summary: The Original ATT Korn Shell
|
||||||
URL: http://www.kornshell.com/
|
URL: http://www.kornshell.com/
|
||||||
Group: System Environment/Shells
|
Group: Applications/Shells
|
||||||
License: AT&T
|
License: AT&T Open Source
|
||||||
Version: 20020628
|
Version: 20040229
|
||||||
Release: 1
|
Release: 8
|
||||||
Source0: http://www.research.att.com/~gsf/download/tgz/ast-ksh.2002-06-28.tgz
|
Source0: http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{releasedate}.tgz
|
||||||
Source1: http://www.research.att.com/~gsf/download/tgz/INIT.2002-06-28.tgz
|
Source1: http://www.research.att.com/~gsf/download/tgz/INIT.%{releasedate}.tgz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}.root
|
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
|
||||||
Obsoletes: pdksh
|
Obsoletes: pdksh
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The KornShell language was designed and developed by David G. Korn
|
KSH-93 is the most recent version of the KornShell by David Korn of
|
||||||
at AT&T Bell Laboratories. It is an interactive command language
|
AT&T Bell Laboratories.
|
||||||
that provides access to the UNIX system and to many other systems,
|
KornShell is a shell programming language, which is upward compatible
|
||||||
on the many different computers and workstations on which it is
|
with "sh" (the Bourne Shell).
|
||||||
implemented. This is Ksh93 which is intended to conform to the Shell
|
|
||||||
Language Standard developed by the IEEE POSIX 1003.2 Shell and
|
Proprietary Notice:
|
||||||
Utilities Language Committee.
|
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.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup0 -q -c -n ksh-%{version}
|
%setup -q -c
|
||||||
%setup1 -q -T -D -a 1
|
%setup -q -T -D -a 1
|
||||||
|
%setup -q -T -D -a 2
|
||||||
|
%patch0 -p1 -b .ppc64
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./bin/package read || true
|
./bin/package "read" ||:
|
||||||
./bin/package make CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE64_SOURCE"
|
./bin/package "make"
|
||||||
|
cp lib/package/LICENSES/ast LICENSE
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
mkdir -p -m 755 \
|
mkdir -p $RPM_BUILD_ROOT{/bin,%{_mandir}/man1}
|
||||||
$RPM_BUILD_ROOT%{_bindir} \
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale/{C,pt,fr,de,it,es}/LC_MESSAGES
|
||||||
$RPM_BUILD_ROOT%{_mandir}/man1
|
install -c -s -m 755 arch/*/bin/ksh $RPM_BUILD_ROOT/bin/ksh
|
||||||
install -c -m 755 \
|
install -c -m 644 arch/*/man/man1/sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ksh.1
|
||||||
arch/*/bin/ksh $RPM_BUILD_ROOT%{_bindir}/ksh
|
for i in C pt fr de it es; do
|
||||||
install -c -m 644 \
|
install -m 644 share/lib/locale/$i/LC_MESSAGES/* \
|
||||||
arch/*/man/man1/sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ksh.1
|
$RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES/
|
||||||
|
done
|
||||||
# rename license file
|
|
||||||
mv lib/package/LICENSES/ast LICENSE
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ ! -f /etc/shells ]; then
|
if [ ! -f /etc/shells ]; then
|
||||||
@ -54,16 +73,47 @@ fi
|
|||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ ! -f /bin/ksh ]; then
|
if [ ! -f /bin/ksh ]; then
|
||||||
grep -v /bin/ksh /etc/shells > /etc/shells.new
|
grep -v '^/bin/ksh$' /etc/shells >/etc/shells.new
|
||||||
mv /etc/shells.new /etc/shells
|
mv /etc/shells.new /etc/shells
|
||||||
|
chmod 644 /etc/shells
|
||||||
|
fi
|
||||||
|
|
||||||
|
%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
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_bindir}/ksh
|
%defattr(-, root, root)
|
||||||
|
%doc "-- *NOTICE*"
|
||||||
|
%doc README LICENSE
|
||||||
|
/bin/*
|
||||||
|
%{_datadir}/locale/*/LC_MESSAGES/*
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
%doc LICENSE
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Jul 17 2002 Preston Brown <pbrown@redhat.com>
|
* Thu Sep 02 2004 Nalin Dahyabhai <nalin@redhat.com> 20040229-8
|
||||||
- initial Red Hat packaging of ksh93
|
- 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
|
||||||
|
|
||||||
|
5
sources
5
sources
@ -1,2 +1,3 @@
|
|||||||
9478dd6ca2c9c56887e41011299e72e0 INIT.2002-06-28.tgz
|
cd4cc8fe24b040685451bea07f9bd163 INIT.2004-02-29.tgz
|
||||||
36dee42ef33643d6566985b56c753ce0 ast-ksh.2002-06-28.tgz
|
b4d585fbe8ca3b709151754e9d865ee7 ast-base-locale.2004-02-29.tgz
|
||||||
|
fa91217bc99ccf9cc32b3250a2431185 ast-ksh.2004-02-29.tgz
|
||||||
|
Loading…
Reference in New Issue
Block a user