X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=bash.spec;h=81d2dc6023ba36dd9621571230329c5216bbe6bb;hb=f0324dcbe50db24b71ee7e4d8a18a02970cf6498;hp=4aec19df9d659719a51eca668070ab9d670c6e29;hpb=678800bca4b0314f38a87bd0a158a363842e0683;p=packages%2Fbash.git diff --git a/bash.spec b/bash.spec index 4aec19d..81d2dc6 100644 --- a/bash.spec +++ b/bash.spec @@ -3,9 +3,10 @@ %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 1 + +# NOTE: when updating patchleve, do not forget to update 'sources' file! +%define ver 4.3 +%define patchlevel 25 %define rel 1 Summary: GNU Bourne Again Shell (bash) Summary(fr.UTF-8): Le shell Bourne Again de GNU @@ -16,7 +17,7 @@ Release: %{rel}%{?with_bash_history:inv} License: GPL Group: Applications/Shells Source0: http://ftp.gnu.org/gnu/bash/%{name}-%{ver}.tar.gz -# Source0-md5: 3fb927c7c33022f1c327f14a81c0d4b0 +# Source0-md5: 81348932d5da294953e15d4814c74dd1 Source1: %{name}rc Source2: %{name}-skel-.bash_logout Source3: %{name}-skel-.bash_profile @@ -35,13 +36,13 @@ Patch9: %{name}-backup_history.patch Patch10: %{name}-act_like_sh.patch Patch11: %{name}-elinks_cont.patch Patch12: %{name}-pl.po-update.patch -%{?patchlevel:%patchset_source -f http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash41-%03g 1 %{patchlevel}} +%patchset_source -f https://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-%03g 1 %{patchlevel} URL: http://www.gnu.org/software/bash/ BuildRequires: autoconf BuildRequires: automake BuildRequires: bison BuildRequires: ncurses-devel >= 5.2 -BuildRequires: readline-devel >= 6.2 +BuildRequires: readline-devel >= 6.3 BuildRequires: rpmbuild(macros) >= 1.462 BuildRequires: sed >= 4.0 BuildRequires: texinfo @@ -49,9 +50,9 @@ BuildRequires: texinfo # Require static library only for static build BuildRequires: glibc-static >= 2.2 BuildRequires: ncurses-static >= 5.2 -BuildRequires: readline-static >= 6.2 +BuildRequires: readline-static >= 6.3 %endif -Requires: readline >= 6.2 +Requires: readline >= 6.3 Requires: setup >= 2.4.6-2 Obsoletes: bash-doc Obsoletes: bash2 @@ -194,6 +195,8 @@ tym pakiecie jest wersja basha skonsolidowana statycznie. %patch11 -p1 %patch12 -p1 +sed -i -e 's#/usr/bin/printf#/bin/printf#g' tests/intl2.sub + %build cp -f /usr/share/automake/config.* support %{__autoconf} @@ -210,13 +213,13 @@ for mode in %{?with_static:static} shared; do --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}