File pdksh.spec of Package pdksh
#
# spec file for package pdksh (Version 5.2.14)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: pdksh
URL: http://www.cs.mun.ca/~michael/pdksh/
License: GPL, distributable
Group: System/Shells
PreReq: /bin/ln /etc/bash.bashrc
Autoreqprov: on
Version: 5.2.14
Release: 803
Summary: Public Domain Korn Shell
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: pdksh-5.2.14.tar.gz
Patch: pdksh-5.2.14.dif
Patch1: pdksh-5.2.14-patches.1
Patch2: pdksh-5.2.14-patches.2
Patch3: pdksh-5.2.14-10711.patch
Patch4: pdksh-5.2.14-73718.patch
%description
A public domain Korn Shell clone.
%prep
%setup
%patch1 -p 2 -b .patches.1
%patch2 -p 0 -b .patches.2
%patch3 -p 0 -b .10711
%patch4 -p 0 -b .73718
%patch
%build
export CFLAGS="$RPM_OPT_FLAGS -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
./configure --prefix=/usr --verbose --mandir=%{_mandir} --bindir=/bin
make
%install
make install bindir=$RPM_BUILD_ROOT/bin mandir=$RPM_BUILD_ROOT/%{_mandir}/man1
mv $RPM_BUILD_ROOT/bin/ksh $RPM_BUILD_ROOT/bin/pdksh
mv $RPM_BUILD_ROOT%{_mandir}/man1/ksh.1 $RPM_BUILD_ROOT%{_mandir}/man1/pdksh.1
mkdir -p $RPM_BUILD_ROOT/usr/bin
ln -sf /bin/true $RPM_BUILD_ROOT/bin/ksh
ln -sf /bin/true $RPM_BUILD_ROOT/usr/bin/ksh
ln -sf /bin/pdksh $RPM_BUILD_ROOT/usr/bin/pdksh
%post
test -e etc/bash.bashrc && ln -sf bash.bashrc etc/ksh.kshrc || true
if test -x bin/pdksh ; then
rm -f bin/ksh
ln -sf /bin/pdksh bin/ksh
rm -f usr/bin/ksh
ln -sf /bin/pdksh usr/bin/ksh
fi
%postun
if test ! -x bin/pdksh ; then
if test ! -x %{_lib}/ast/ksh ; then
rm -f etc/ksh.kshrc
fi
if test ! -e bin/ksh ; then
rm -f bin/ksh usr/bin/ksh
fi
fi
%files
%defattr(-,root,root)
%doc BUG-REPORTS NEWS NOTES PROJECTS README
/bin/pdksh
%ghost %verify(not link) /bin/ksh
%ghost %verify(not link) /usr/bin/ksh
/usr/bin/pdksh
%doc %{_mandir}/man1/pdksh.1.gz
%changelog -n pdksh
* Tue May 09 2006 - werner@suse.de
- Change PreRequire /bin/bash to /etc/bash.bashrc (bug #172633)
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Oct 24 2005 - werner@suse.de
- PreReqire the bash to get the system wide bash.bashrc
* Mon Sep 19 2005 - werner@suse.de
- Make it compatible with parallel installed ksh (bug #105126)
* Wed Mar 23 2005 - werner@suse.de
- Add fix for correct monitor mode (bug #73718)
* Thu Feb 03 2005 - werner@suse.de
- Add confict with original ksh
* Fri Oct 22 2004 - werner@suse.de
- Allow background processes replacing the sub shell within pipes
(bug #46825)
* Mon Aug 02 2004 - werner@suse.de
- Reset traps requires now POSIX behaviour if bash is called as sh
* Sat Jan 10 2004 - adrian@suse.de
- add %%defattr
* Fri Jul 18 2003 - werner@suse.de
- Fix format and declaration errors
* Wed Jul 16 2003 - werner@suse.de
- More large file support
* Tue Apr 08 2003 - werner@suse.de
- Use `-k' option of sort
* Thu Aug 15 2002 - kukuk@suse.de
- Move ksh binary to /bin [Bug #17758]
- Use BuildRoot
* Mon Aug 13 2001 - werner@suse.de
- Add the possibility of having ~/.kshrc and /etc/ksh.kshrc
* Tue Apr 24 2001 - werner@suse.de
- Fix buffer overflow in trace mode in case of ioredirect (#7129)
- Add two official patches from ftp://ftp.rge.com/pub/shells/pdksh/
* Fri Oct 06 2000 - kukuk@suse.de
- change group tag
* Wed Jun 07 2000 - schwab@suse.de
- alloc: force 128 bit alignment on ia64.
* Thu Mar 02 2000 - kukuk@suse.de
- get ride of Makefile.Linux
- Use _mandir macro
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu Jul 15 1999 - ro@suse.de
- update to 5.2.14
* Sun Jul 26 1998 - bs@suse.de
- added symlink /bin/ksh
* Wed Nov 19 1997 - florian@suse.de
- update to version 5.2.13
- add docu files in /usr/doc
* Thu Jan 02 1997 - florian@suse.de
- update to version 5.2.12
* Thu Jan 02 1997 - florian@suse.de
- Update auf neue Version 5.2.11.