%bcond_with bash_history # build with additional history in /var/log/bash_hist ;)
%bcond_without tests # do not perform "make test"
#
-%define ver 4.1
-%define patchlevel 9
+%define ver 4.2
+#%%define patchlevel 1
%define rel 1
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)
Name: bash
-Version: %{ver}.%{patchlevel}
+Version: %{ver}%{?patchlevel:.%{patchlevel}}
Release: %{rel}%{?with_bash_history:inv}
License: GPL
Group: Applications/Shells
Source0: http://ftp.gnu.org/gnu/bash/%{name}-%{ver}.tar.gz
-# Source0-md5: 9800d8724815fd84994d9be65ab5e7b8
+# Source0-md5: 3fb927c7c33022f1c327f14a81c0d4b0
Source1: %{name}rc
Source2: %{name}-skel-.%{name}_logout
Source3: %{name}-skel-.%{name}_profile
Patch9: %{name}-backup_history.patch
Patch10: %{name}-act_like_sh.patch
Patch11: %{name}-elinks_cont.patch
-%patchset_source -f http://ftp.gnu.org/gnu/bash/bash-4.1-patches/bash41-%03g 1 %{patchlevel}
+%{?patchlevel:%patchset_source -f http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash41-%03g 1 %{patchlevel}}
URL: http://www.gnu.org/software/bash/
BuildRequires: autoconf
BuildRequires: automake
%prep
%setup -q -n %{name}-%{ver} -a5
# official patches
-%patchset_patch 1 %{patchlevel}
+%{?patchlevel:%patchset_patch 1 %{patchlevel}}
%patch0 -p1
%patch1 -p1
%patch2 -p1