Summary: The GNU Bourne Again shell (bash). Name: bash Version: 4.2 Release: 1 Group: System Environment/Shells Copyright: GPL URL: http://www.gnu.org/software/bash Source0: ftp://ftp.gnu.org/gnu/bash/bash-%{version}.tar.gz Source1: ftp://ftp.gnu.org/gnu/bash/bash-doc-%{version}.tar.gz # This "16pv" patch is a cumulation of all official patch versions 1-16 #Patch0: %{name}-%{version}-16pv.patch #Patch0: %{name}-%{version}-aix.patch Prefix: %{_prefix} Provides: bash # Must keep this; have renamed the package from bash2 Obsoletes: bash2 BuildRoot: /var/tmp/%{name}-root # Fails on 4.3 if not using stdc (i.e., use xlc instead of cc) %define DEFCC xlc_r %description The GNU bash shell is a command language interpreter that attempts compatibility with the Bourne shell (sh). Bash incorporates useful features from the Korn shell (ksh) and the C shell (csh). Most sh scripts can be run by bash without modification. Bash is intended to be a conformant implementation of the IEEE Posix Shell and Tools specification (IEEE Working Group 1003.2). %package doc Group: Documentation Summary: Documentation for the GNU Bourne Again shell (bash). #Must keep this; have renamed the package from bash2 Obsoletes: bash2-doc %description doc The bash-doc package contains documentation for the GNU bash shell. %prep %setup %setup -T -D -a 1 if test x$PATCH = x ; then PATCH=/opt/freeware/bin/patch ; fi #$PATCH -p2 -s < %{_sourcedir}/bash-3.2-aix.patch %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} export CFLAGS="-q64" else export CC=gcc export CFLAGS="-maix64 $RPM_OPT_FLAGS" fi fi if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` fi export OBJECT_MODE=64 ./configure gmake %install rm -rf $RPM_BUILD_ROOT gmake prefix=${RPM_BUILD_ROOT}%{_prefix} \ bindir=${RPM_BUILD_ROOT}%{_prefix}/bin \ mandir=${RPM_BUILD_ROOT}%{_prefix}/man \ install [[ ! -d $RPM_BUILD_ROOT/usr/bin ]] && mkdir -p $RPM_BUILD_ROOT/usr/bin [[ ! -d $RPM_BUILD_ROOT/bin ]] && mkdir -p $RPM_BUILD_ROOT/bin ln -sf ..%{_prefix}/bin/bash $RPM_BUILD_ROOT/bin/bash ln -sf ../..%{_prefix}/bin/bashbug $RPM_BUILD_ROOT/usr/bin/bashbug { cd $RPM_BUILD_ROOT strip ./%{_prefix}/bin/* || : cd bin ln -sf bash bash2 cd ../usr/bin ln -sf bashbug bash2bug } %clean rm -rf $RPM_BUILD_ROOT # ***** bash doesn't use install-info. It's always listed in /usr/info/dir # to prevent prereq loops %files %defattr(-,root,system) %doc COPYING CHANGES COMPAT NEWS NOTES %doc doc/FAQ doc/INTRO doc/article.ms %doc doc/*.ps doc/*.html doc/*.txt /bin/bash /bin/bash2 %{_prefix}/bin/bash /usr/bin/bashbug /usr/bin/bash2bug %{_prefix}/bin/bashbug %{_prefix}/man/man1/*bash.1* %{_prefix}/man/man1/bashbug.1* %files doc %defattr(-,root,system) %doc doc/*.ps %changelog * Mon Jan 21 2013 Raunaq M Bathija 4.2-1 - Update to version 4.2 * Thu Aug 07 2008 Purnima M 3.2-1 - Update to version 3.2 * Fri Apr 22 2005 David Clissold 3.0-1 - Update to version 3.0 (thru patchlevel 16). * Mon Nov 24 2003 David Clissold - Update to version 2.05b. * Wed Apr 10 2002 David Clissold - Rename package from bash2 to bash, for consistency with everything else. - No functional change made. * Wed Jan 30 2002 David Clissold - Update to 2.05a * Wed May 16 2001 Marc Stephenson - Work around real-time signals problem - Removed extra configure in install phase * Wed May 16 2001 Marc Stephenson - Work around real-time signals problem - Removed extra configure in install phase * Tue May 15 2001 Marc Stephenson - Initial build for version 2.05 * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Wed Feb 02 2000 Cristian Gafton - man pages are compressed - fix description * Thu Dec 2 1999 Ken Estes - updated patch to detect what executables are required by a script. * Fri Sep 14 1999 Dale Lovelace - Remove annoying ^H's from documentation * Fri Jul 16 1999 Ken Estes - patch to detect what executables are required by a script. * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 4) * Fri Mar 19 1999 Jeff Johnson - strip binaries. - include bash-doc correctly. * Thu Mar 18 1999 Preston Brown - fixed post/postun /etc/shells work. * Thu Mar 18 1999 Cristian Gafton - updated again text in the spec file * Mon Feb 22 1999 Jeff Johnson - updated text in spec file. - update to 2.03. * Fri Feb 12 1999 Cristian Gafton - build it as bash2 instead of bash * Tue Feb 9 1999 Bill Nottingham - set 'NON_INTERACTIVE_LOGIN_SHELLS' so profile gets read * Thu Jan 14 1999 Jeff Johnson - rename man pages in bash-doc to avoid packaging conflicts (#606). * Wed Dec 02 1998 Cristian Gafton - patch for the arm - use $RPM_ARCH-redhat-linux as the build target * Tue Oct 6 1998 Bill Nottingham - rewrite %pre, axe %postun (to avoid prereq loops) * Wed Aug 19 1998 Jeff Johnson - resurrect for RH 6.0. * Sun Jul 26 1998 Jeff Johnson - update to 2.02.1 * Thu Jun 11 1998 Jeff Johnson - Package for 5.2. * Mon Apr 20 1998 Ian Macdonald - added POSIX.NOTES doc file - some extraneous doc files removed - minor .spec file changes * Sun Apr 19 1998 Ian Macdonald - upgraded to version 2.02 - Alpha, MIPS & Sparc patches removed due to lack of test platforms - glibc & signal patches no longer required - added documentation subpackage (doc) * Fri Nov 07 1997 Donnie Barnes - added signal handling patch from Dean Gaudet that is based on a change made in bash 2.0. Should fix some early exit problems with suspends and fg. * Mon Oct 20 1997 Donnie Barnes - added %clean * Mon Oct 20 1997 Erik Troan - added comment explaining why install-info isn't used - added mips patch * Fri Oct 17 1997 Donnie Barnes - added BuildRoot * Tue Jun 03 1997 Erik Troan - built against glibc