-#
# Conditional build:
%bcond_without static # don't build static version
%bcond_with bash_history # build with additional history in /var/log/bash_hist ;)
%bcond_without tests # do not perform "make test"
%define ver 4.2
-%define patchlevel 37
-%define rel 1
+%define patchlevel 45
+%define rel 2
Summary: GNU Bourne Again Shell (bash)
Summary(fr.UTF-8): Le shell Bourne Again de GNU
Summary(pl.UTF-8): Powłoka GNU Bourne Again Shell (bash)
Patch11: %{name}-elinks_cont.patch
Patch12: %{name}-pl.po-update.patch
Patch13: %{name}-format-string.patch
-%{?patchlevel:%patchset_source -f http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-%03g 1 %{patchlevel}}
+Patch14: %{name}-4.2-missing_closes.patch
+%patchset_source -f http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-%03g 1 %{patchlevel}
URL: http://www.gnu.org/software/bash/
BuildRequires: autoconf
BuildRequires: automake
%patch11 -p1
%patch12 -p1
%patch13 -p1
+%patch14 -p1
%build
cp -f /usr/share/automake/config.* support
--enable-dparen-arithmetic \
--enable-separate-helpfiles \
--without-bash-malloc \
- `[ "$mode" = "static" ] && echo "--enable-static-link"` \
+ $([ "$mode" = "static" ] && echo "--enable-static-link") \
--with-installed-readline
%{__make} \
DEFS="-DHAVE_CONFIG_H -D_GNU_SOURCE"
-[ "$mode" = "static" ] && mv -f bash bash.static || :
+[ "$mode" = "static" ] && mv -f bash bash.static
done
%{?with_tests:%{__make} tests}