Name: bash Summary: The GNU Bourne Again shell (bash) version %{version} Version: 4.3 Release: 21 Group: System Environment/Shells License: GPLv2+ Url: http://www.gnu.org/software/bash Source0: ftp://ftp.gnu.org/gnu/bash/%{name}-%{version}.tar.gz Source1: ftp://ftp.gnu.org/gnu/bash/%{name}-%{version}.tar.gz.sig # Official upstream patches Patch1: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-001 Patch2: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-002 Patch3: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-003 Patch4: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-004 Patch5: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-005 Patch6: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-006 Patch7: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-007 Patch8: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-008 Patch9: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-009 Patch10: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-010 Patch11: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-011 Patch12: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-012 Patch13: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-013 Patch14: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-014 Patch15: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-015 Patch16: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-016 Patch17: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-017 Patch18: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-018 Patch19: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-019 Patch20: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-020 Patch21: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-021 Patch22: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-022 Patch23: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-023 Patch24: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-024 Patch25: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-025 Patch26: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-026 Patch27: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-027 Patch28: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-028 Patch29: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-029 Patch30: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-030 Patch31: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-031 Patch32: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-032 Patch33: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-033 Patch34: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-034 Patch35: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-035 Patch36: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-036 Patch37: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-037 Patch38: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-038 Patch39: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-039 Patch40: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-040 Patch41: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-041 Patch42: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-042 Patch43: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-043 Patch44: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-044 Patch45: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-045 Patch46: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-046 Patch47: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-047 Patch48: ftp://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-048 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: bison, patch %description The GNU Bourne Again shell (Bash) is a shell or command language interpreter that is compatible 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. This package (bash) contains bash version %{version}, which improves POSIX compliance over previous versions. %prep %setup -q export PATH=/opt/freeware/bin:$PATH # Official upstream patches %patch1 -p0 -b .001 %patch2 -p0 -b .002 %patch3 -p0 -b .003 %patch4 -p0 -b .004 %patch5 -p0 -b .005 %patch6 -p0 -b .006 %patch7 -p0 -b .007 %patch8 -p0 -b .008 %patch9 -p0 -b .009 %patch10 -p0 -b .010 %patch11 -p0 -b .011 %patch12 -p0 -b .012 %patch13 -p0 -b .013 %patch14 -p0 -b .014 %patch15 -p0 -b .015 %patch16 -p0 -b .016 %patch17 -p0 -b .017 %patch18 -p0 -b .018 %patch19 -p0 -b .019 %patch20 -p0 -b .020 %patch21 -p0 -b .021 %patch22 -p0 -b .022 %patch23 -p0 -b .023 %patch24 -p0 -b .024 %patch25 -p0 -b .025 %patch26 -p0 -b .026 %patch27 -p0 -b .027 %patch28 -p0 -b .028 %patch29 -p0 -b .029 %patch30 -p0 -b .030 %patch31 -p0 -b .031 %patch32 -p0 -b .032 %patch33 -p0 -b .033 %patch34 -p0 -b .034 %patch35 -p0 -b .035 %patch36 -p0 -b .036 %patch37 -p0 -b .037 %patch38 -p0 -b .038 %patch39 -p0 -b .039 %patch40 -p0 -b .040 %patch41 -p0 -b .041 %patch42 -p0 -b .042 %patch43 -p0 -b .043 %patch44 -p0 -b .044 %patch45 -p0 -b .045 %patch46 -p0 -b .046 %patch47 -p0 -b .047 %patch48 -p0 -b .048 %build export CC="xlc_r" # avoid inclusion of local directories into the binaries export LDFLAGS="-L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000" ./configure \ --prefix=%{_prefix} \ --infodir=%{_infodir} \ --mandir=%{_mandir} \ --with-included-gettext %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install cp doc/builtins.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/ chmod 0644 ${RPM_BUILD_ROOT}%{_mandir}/man1/* /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : gzip --best ${RPM_BUILD_ROOT}%{_infodir}/*info* rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir mkdir -p ${RPM_BUILD_ROOT}/bin mkdir -p ${RPM_BUILD_ROOT}/usr/bin ln -sf ../..%{_bindir}/bash ${RPM_BUILD_ROOT}/bin/bash ln -sf ../..%{_bindir}/bash ${RPM_BUILD_ROOT}/usr/bin/bash ln -sf ../..%{_prefix}/bin/bashbug ${RPM_BUILD_ROOT}/usr/bin/bashbug { cd ${RPM_BUILD_ROOT} cd bin ln -sf bash bash2 cd ../usr/bin ln -sf bashbug bash2bug } %post if [ ! -f /etc/shells ]; then echo "%{_bindir}/bash" >> /etc/shells else grep -q '^%{_bindir}/bash$' /etc/shells || \ echo "%{_bindir}/bash" >> /etc/shells fi %postun if [ ! -x %{_bindir}/bash ]; then grep -v '^%{_bindir}/bash$' /etc/shells > /etc/shells.rpm && \ mv /etc/shells.rpm /etc/shells fi %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc CHANGES COMPAT NEWS NOTES POSIX %doc doc/FAQ doc/INTRO doc/article.ms doc/article.txt %doc examples/functions/ examples/misc/ %doc examples/scripts/ examples/startup-files/ examples/complete/ %{_bindir}/* %{_infodir}/bash.info* %{_mandir}/man1/* %{_datadir}/locale/*/*/* /bin/bash* /usr/bin/bash* %changelog * Thu Mar 02 2017 Michael Perzl - 4.3-21 - rebuilt without accidental dependency on libiconv * Tue Oct 11 2016 Michael Perzl - 4.3-20 - updated to version 4.3 patch level 48 * Fri Jul 01 2016 Michael Perzl - 4.3-19 - updated to version 4.3 patch level 46 - increased release number to be in sync with bash_64 version again * Sun Aug 16 2015 Michael Perzl - 4.3-17 - updated to version 4.3 patch level 42 * Tue Jul 07 2015 Michael Perzl - 4.3-16 - updated to version 4.3 patch level 39 * Wed May 27 2015 Michael Perzl - 4.3-15 - updated to version 4.3 patch level 38 * Tue Mar 03 2015 Michael Perzl - 4.3-14 - rebuilt without dependency on libiconv - avoid inclusion of local directories into the binaries * Tue Jan 20 2015 Michael Perzl - 4.3-13 - updated to version 4.3 patch level 33 * Sun Oct 05 2014 Michael Perzl - 4.3-12 - updated to version 4.3 patch level 30 * Fri Oct 03 2014 Michael Perzl - 4.3-11 - updated to version 4.3 patch level 29 * Wed Oct 01 2014 Michael Perzl - 4.3-10 - updated to version 4.3 patch level 28 * Mon Sep 29 2014 Michael Perzl - 4.3-9 - updated to version 4.3 patch level 27 * Fri Sep 26 2014 Michael Perzl - 4.3-8 - fixes CVE-2014-7169 by using the published Fedora Linux patches * Wed Sep 24 2014 Michael Perzl - 4.3-7 - updated to version 4.3 patch level 25 - fixes CVE-2014-6271 * Thu Aug 21 2014 Michael Perzl - 4.3-6 - updated to version 4.3 patch level 24 * Fri Aug 15 2014 Michael Perzl - 4.3-5 - updated to version 4.3 patch level 22 * Mon May 19 2014 Michael Perzl - 4.3-4 - updated to version 4.3 patch level 18 * Sun Apr 27 2014 Michael Perzl - 4.3-3 - updated to version 4.3 patch level 11 * Fri Mar 27 2014 Michael Perzl - 4.3-2 - updated to version 4.3 patch level 8 * Wed Feb 26 2014 Michael Perzl - 4.3-1 - updated to version 4.3 * Thu Mar 07 2013 Michael Perzl - 4.2-12 - updated to version 4.2 patch level 45 * Thu Jan 03 2013 Michael Perzl - 4.2-11 - updated to version 4.2 patch level 42 * Sun Nov 04 2012 Michael Perzl - 4.2-10 - updated to version 4.2 patch level 39 * Wed Jul 18 2012 Michael Perzl - 4.2-9 - updated to version 4.2 patch level 37 * Tue Jul 10 2012 Michael Perzl - 4.2-8 - updated to version 4.2 patch level 36 * Wed Jun 13 2012 Michael Perzl - 4.2-7 - updated to version 4.2 patch level 29 * Mon Apr 16 2012 Michael Perzl - 4.2-6 - updated to version 4.2 patch level 24 * Mon May 16 2011 Michael Perzl - 4.2-5 - updated to version 4.2 patch level 10 * Sun Mar 20 2011 Michael Perzl - 4.2-4 - updated to version 4.2 patch level 8 * Tue Mar 01 2011 Michael Perzl - 4.2-3 - updated to version 4.2 patch level 5 * Tue Feb 24 2011 Michael Perzl - 4.2-2 - rebuilt without dependency on libiconv * Tue Feb 15 2011 Michael Perzl - 4.2-1 - updated to version 4.2 * Mon Jan 10 2011 Michael Perzl - 4.1-6 - automatically add entry to /etc/shells * Wed Oct 13 2010 Michael Perzl - 4.1-5 - updated to version 4.1 patch level 9 * Thu May 20 2010 Michael Perzl - 4.1-4 - updated to version 4.1 patch level 7 * Wed Apr 07 2010 Michael Perzl - 4.1-3 - updated to version 4.1 patch level 5 * Tue Jan 19 2010 Michael Perzl - 4.1-2 - updated to version 4.1 patch level 2 * Fri Jan 08 2010 Michael Perzl - 4.1-1 - updated to version 4.1 * Thu Nov 26 2009 Michael Perzl - 4.0-3 - updated to version 4.0 patch level 35 * Tue Jul 07 2009 Michael Perzl - 4.0-2 - updated to version 4.0 patch level 24 * Mon Mar 30 2009 Michael Perzl - 4.0-1 - updated to version 4.0 and patch level 10 * Mon Mar 30 2009 Michael Perzl - 3.2-2 - updated to latest patch level 3.2.48 * Tue Mar 18 2008 Michael Perzl - 3.2-1 - first version for AIX V5.1 and higher