diff --git a/bash.spec b/bash.spec index 545e62f22977bee4bbcc95ea5634e1d25c2e35f3..df3060991ad3e796e21cf165e37cb3691ae8a566 100644 --- a/bash.spec +++ b/bash.spec @@ -1,6 +1,6 @@ Name: bash Version: 5.0 -Release: 17 +Release: 18 Summary: It is the Bourne Again Shell License: GPLv3 URL: https://www.gnu.org/software/bash @@ -88,6 +88,40 @@ autoconf %install %make_install install-headers + +# make manpages for bash builtins as per suggestion in DOC/README +pushd doc +sed -e ' +/^\.SH NAME/, /\\- bash built-in commands, see \\fBbash\\fR(1)$/{ +/^\.SH NAME/d +s/^bash, // +s/\\- bash built-in commands, see \\fBbash\\fR(1)$// +s/,//g +b +} +d +' builtins.1 > man.pages +for i in echo pwd test kill; do + sed -i -e "s,$i,,g" man.pages + sed -i -e "s, , ,g" man.pages +done + +install -p -m 644 builtins.1 %{buildroot}%{_mandir}/man1/builtins.1 + +for i in `cat man.pages` ; do + echo .so man1/builtins.1 > %{buildroot}%{_mandir}/man1/$i.1 + chmod 0644 %{buildroot}%{_mandir}/man1/$i.1 +done +popd + +# Link bash man page to sh so that man sh works. +ln -s bash.1 %{buildroot}%{_mandir}/man1/sh.1 + +# Not for printf, true and false (conflict with coreutils) +rm -f %{buildroot}/%{_mandir}/man1/printf.1 +rm -f %{buildroot}/%{_mandir}/man1/true.1 +rm -f %{buildroot}/%{_mandir}/man1/false.1 + ln -sf bash %{buildroot}%{_bindir}/sh install -pDm 644 %SOURCE1 %{buildroot}/etc/skel/.bashrc install -pDm 644 %SOURCE2 %{buildroot}/etc/skel/.bash_profile @@ -129,9 +163,16 @@ make check %doc %{_docdir}/%{name}/* %{_infodir}/%{name}.info* %{_mandir}/man1/*.gz +%{_mandir}/*/..1* %exclude %{_infodir}/dir %changelog +* Fri Aug 26 2022 yueyuankun - 5.0-18 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:add manpages + * Fri Aug 12 2022 panxiaohe - 5.0-17 - fix bugfix-Forbidden-non-root-user-to-clear-history.patch