%define name pdksh %define version 5.2.14 %define release 12mdk Summary: A public domain clone of the Korn shell (ksh). Name: %name Version: %version Release: %release License: Public Domain Group: Shells URL: http://www.cs.mun.ca/~michael/pdksh Source: ftp://ftp.cs.mun.ca/pub/pdksh/%{name}-%{version}.tar.bz2 Patch1: pdksh-5.2.14-patches1.patch.bz2 Patch3: pdksh-5.2.14-manloc.patch.bz2 # patch3 from rh Patch64: pdksh-5.2.14-alignia64.patch.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-root Prereq: fileutils, grep %description The pdksh package contains PD-ksh, a clone of the Korn shell (ksh). The ksh shell is a command interpreter intended for both interactive and shell script use. Ksh's command language is a superset of the sh shell language. Install the pdksh package if you want to use a version of the ksh shell. %prep %setup -q %patch1 -p1 %patch3 -p1 %patch64 -p1 -b .ia64 %build %configure %make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT{/bin,%{_bindir},%{_mandir}/man1} %{__install} -s -c -m755 ksh $RPM_BUILD_ROOT/bin/ksh %{__install} -c -m644 ksh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ksh.1 ln -sf ksh.1 $RPM_BUILD_ROOT%{_mandir}/man1/pdksh.1 ln -sf /bin/ksh $RPM_BUILD_ROOT%{_bindir}/ksh ln -sf /bin/ksh $RPM_BUILD_ROOT%{_bindir}/pdksh %clean rm -rf $RPM_BUILD_ROOT %post if ! grep -q /bin/ksh /etc/shells; then echo "/bin/ksh" >> /etc/shells fi %postun if [ ! -f /bin/ksh ]; then perl -ni -e 'm|/bin/ksh| or print' /etc/shells fi %files %defattr(-,root,root) %doc README NOTES PROJECTS NEWS BUG-REPORTS /bin/* %{_bindir}/* %{_mandir}/*/* %changelog * Tue Aug 07 2001 Yves Duret <yduret@mandrakesoft.com> 5.2.14-12mdk - fix bug in typeset,job, set -x (P1) - man pages on correct location (P3) - fix alignment problems on ia64 (P64) - added fileutils and grep to Prereq - fixed bugs - fixed source * Wed Apr 25 2001 Yves Duret <yduret@mandrakesoft.com> 5.2.14-11mdk - sanitized spec file * Sun Dec 10 2000 yves <yduret@mandrakesoft.com> 5.2.14-10mdk - macros %%make * Tue Nov 7 2000 Pixel <pixel@mandrakesoft.com> 5.2.14-9mdk - fix the %%post scripts * Wed Jul 19 2000 Pixel <pixel@mandrakesoft.com> 5.2.14-8mdk - macroization - BM * Sat Mar 25 2000 Pixel <pixel@mandrakesoft.com> 5.2.14-7mdk - new group + lceanup * Tue Nov 02 1999 John Buswell <johnb@mandrakesoft.com> - Rebuild and Repackage for oxygen (release 6) * Tue Sep 28 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Fix wrong manpages (#216) (#135). * Fri Jul 16 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - 5.2.14. - Removing unused patch. * Wed May 05 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com> - Mandrake adaptions * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 3) * Wed Mar 17 1999 Jeff Johnson <jbj@redhat.com> - glibc 2.1 doesn't init sys_siglist for 32 <= i < NSIG (#1473) * Fri Mar 12 1999 Jeff Johnson <jbj@redhat.com> - upgrade to 5.2.13. * Sun Aug 16 1998 Jeff Johnson <jbj@redhat.com> - build root * Mon Apr 27 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr * Wed Oct 21 1997 Cristian Gafton <gafton@redhat.com> - fixed the spec file * Fri Jul 18 1997 Erik Troan <ewt@redhat.com> - built against glibc