# NOTE: no bash doc 4.x available for now %define bash_src_ver %(echo %version | cut -d. -f1-2) Name: bash Version: 4.2.020 Release: 1mamba Summary: The GNU Bourne Again shell (bash) Group: Applications/Shells Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.gnu.org/software/bash/bash.html Source0: ftp://ftp.gnu.org/pub/gnu/bash/bash-%{bash_src_ver}.tar.gz Source2: dot-bashrc Source3: dot-bash_profile Source4: dot-bash_logout Source5: bash-2.0.5-cross-compile-config.cache Patch0: %{name}-4.1-bash-requires.patch # Official upstream patches from `http://ftp.gnu.org/gnu/bash/bash-4.2-patches' Patch101: %{name}-4.2-001.patch Patch102: %{name}-4.2-002.patch Patch103: %{name}-4.2-003.patch Patch104: %{name}-4.2-004.patch Patch105: %{name}-4.2-005.patch Patch106: %{name}-4.2-006.patch Patch107: %{name}-4.2-007.patch Patch108: %{name}-4.2-008.patch Patch109: %{name}-4.2-009.patch Patch110: %{name}-4.2-010.patch Patch111: %{name}-4.2-011.patch Patch112: %{name}-4.2-012.patch Patch113: %{name}-4.2-013.patch Patch114: %{name}-4.2-014.patch Patch115: %{name}-4.2-015.patch Patch116: %{name}-4.2-016.patch Patch117: %{name}-4.2-017.patch Patch118: %{name}-4.2-018.patch Patch119: %{name}-4.2-019.patch Patch120: %{name}-4.2-020.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libncurses-devel BuildRequires: libreadline-devel ## AUTOBUILDREQ-END BuildRequires: bison %if "%{stage1}" != "1" BuildRequires: emacs %endif BuildRequires: gettext-devel # clear is used by $HOME/.bash_logout Requires: %{_bindir}/clear Requires(pre): glibc Requires(post): %{__install_info} BuildRoot: %{_tmppath}/%{name}-%{version}-root %debug_package %description Bash (Bourne Again shell) is the shell, or command language interpreter, that will appear in the GNU operating system. Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). It is intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard. It offers functional improvements over sh for both programming and interactive use. In addition, most sh scripts can be run by Bash without modification. The improvements offered by BASH include: * Command line editing * Unlimited size command history * Job Control * Shell Functions and Aliases * Indexed arrays of unlimited size * Integer arithmetic in any base from two to sixty-four %package doc Summary: Documentation for the GNU Bourne Again shell (bash) Group: Documentation Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description doc Bash (Bourne Again shell) is the shell, or command language interpreter, that will appear in the GNU operating system. Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). It is intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard. It offers functional improvements over sh for both programming and interactive use. In addition, most sh scripts can be run by Bash without modification. This package includes doc guide examples and manual for bash. %prep %setup -q -n %{name}-%{bash_src_ver} %patch0 -p1 -b .bash-requires %patch101 -p0 %patch102 -p0 %patch103 -p0 %patch104 -p0 %patch105 -p0 %patch106 -p0 %patch107 -p0 %patch108 -p0 %patch109 -p0 %patch110 -p0 %patch111 -p0 %patch112 -p0 %patch113 -p0 %patch114 -p0 %patch115 -p0 %patch116 -p0 %patch117 -p0 %patch118 -p0 %patch119 -p0 %patch120 -p0 %if "%{_target_cpu}" != "%{_build_cpu}" # cross-compiling: give configure some anwsers case %{_target_cpu} in ppc|powerpc) install %{S:5} config.cache ;; esac %endif %build %configure \ -C --with-bash-malloc=no \ --bindir=/bin \ --with-curses %make %make check %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall ln -s bash %{buildroot}/bin/sh ln -s bash.1 %{buildroot}%{_mandir}/man1/sh.1 #install skeletons install -D -c -m644 %{S:2} %{buildroot}/etc/skel/.bashrc install -D -c -m644 %{S:3} %{buildroot}/etc/skel/.bash_profile install -D -c -m644 %{S:4} %{buildroot}/etc/skel/.bash_logout install -c -m 644 doc/builtins.1 %{buildroot}%{_mandir}/man1/builtins.1 %find_lang %{name} %post %install_info %{name}.info exit 0 %preun %uninstall_info %{name}.info exit 0 %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files -f %{name}.lang %defattr(-,root,root) /bin/bash /bin/bashbug /bin/sh %config(noreplace) %{_sysconfdir}/skel/.b* %{_infodir}/bash.info* %{_mandir}/man1/bash.* %{_mandir}/man1/bashbug.* %{_mandir}/man1/builtins.* %{_mandir}/man1/sh.* %files doc %defattr(-,root,root) %doc doc/{FAQ,INTRO,README} %doc doc/bashref.html %changelog * Tue Dec 20 2011 Davide Madrisan 4.2.020-1mamba - update to 4.2.020 * Wed May 04 2011 Silvan Calarco 4.2.000-2mamba - rebuilt with debug package * Thu Feb 17 2011 Davide Madrisan 4.2.000-1mamba - update to 4.2.000 - install builtins.1 manpage - install the file bashref.html included in the source tarball - provide a manpage for sh * Sun Oct 17 2010 Davide Madrisan 4.1.009-1mamba - update to 4.1.009 * Fri Jul 02 2010 Davide Madrisan 4.1.007-1mamba - update to 4.1.007 * Sat Apr 17 2010 Davide Madrisan 4.1.005-1mamba - update to 4.1.005 * Sun Mar 28 2010 Silvan Calarco 4.1.002-1mamba - update to 4.1.002 (fixed specfile for automatic updates: Version field cannot be parametric - added stage1 code for cross compilation * Sat Mar 20 2010 Davide Madrisan 4.1-2mamba - really update to version 4.1 - removed obsolete patches bash-4.0-nnn.patch - update bash-requires patch - provide bashref.html for bash 4.0 instead of outdate documentation files * Fri Jan 01 2010 Automatic Build System 4.1-1mamba - automatic update to 4.1 by autodist * Mon Oct 26 2009 Davide Madrisan 4.0.035-1mamba - update to 4.0p35 * Thu Jun 11 2009 Silvan Calarco 4.0-4mamba - rebuilt with option "--with-curses" to re-enable support for multiline prompt * Tue Mar 24 2009 Silvan Calarco 4.0-3mamba - rebuilt against libreadline 6 * Sun Mar 22 2009 Davide Madrisan 4.0-2mamba - update to 4.0p10 * Sun Mar 01 2009 Davide Madrisan 4.0-1mamba - update to 4.0 * Tue Aug 26 2008 Aleph0 3.2p39-1mamba - update to 3.2p39 * Fri Jun 13 2008 Aleph0 3.2p37-1mamba - update to 3.2p37 - source file `dot-bash_profile' updated * Mon Jun 04 2007 Aleph0 3.2p17-1mamba - update to 3.2p17 * Sun Feb 25 2007 Silvan Calarco 3.2p9-2qilnx - add glibc prereq * Wed Jan 17 2007 Davide Madrisan 3.2p9-1qilnx - update to patch level 9 * Fri Oct 13 2006 Davide Madrisan 3.2-2qilnx - rebuilt against libreadline 5.2 * Thu Oct 12 2006 Davide Madrisan 3.2-1qilnx - update to version 3.2 by autospec * Mon May 15 2006 Davide Madrisan 3.1-2qilnx - added a patch from ALT Linux that enable the command '--rpm-requires' - added all the available official patches (p#1 to 9) * Tue Dec 13 2005 Davide Madrisan 3.1-1qilnx - update to version 3.1 by autospec * Thu Sep 08 2005 Davide Madrisan 3.0-1qilnx - update to version 3.0 by autospec * Sun Sep 04 2005 Silvan Calarco 2.05b-6qilnx - rebuilt with gcc4 - added cross-platform build support * Wed Jul 28 2004 Davide Madrisan 2.05b-5qilnx - added patches from ufficial site - specfile updated * Mon Apr 22 2003 Silvan Calarco 2.05b-4qilnx - removed Prefix variable definition - corrected infodir and mandir locations