Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
bash.23645
bash.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bash.spec of Package bash.23645
# # spec file for package bash # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %bcond_with import_function %bcond_with sjis Name: bash BuildRequires: audit-devel BuildRequires: bison %if %suse_version > 1020 BuildRequires: autoconf BuildRequires: fdupes %endif %if %suse_version > 1220 BuildRequires: makeinfo %endif BuildRequires: ncurses-devel BuildRequires: patchutils BuildRequires: screen BuildRequires: sed %define bash_vers 4.3 %define rl_vers 6.3 %define extend "" %if %suse_version > 1020 Recommends: bash-lang = %bash_vers # The package bash-completion is a source of # bugs which will hit at most this package #Recommends: bash-completion Suggests: command-not-found Recommends: bash-doc = %bash_vers %endif Version: %{bash_vers} Release: 0 Summary: The GNU Bourne-Again Shell License: GPL-3.0-or-later Group: System/Shells URL: http://www.gnu.org/software/bash/bash.html # Git: http://git.savannah.gnu.org/cgit/bash.git Source0: ftp://ftp.gnu.org/gnu/bash/bash-%{bash_vers}.tar.gz Source1: ftp://ftp.gnu.org/gnu/readline/readline-%{rl_vers}.tar.gz Source2: bash-%{bash_vers}-patches.tar.bz2 Source3: readline-%{rl_vers}-patches.tar.bz2 Source4: run-tests Source5: dot.bashrc Source6: dot.profile Source7: bash-rpmlintrc Source8: baselibs.conf # Remember unsafe method, compare with # http://lists.gnu.org/archive/html/bug-bash/2011-03/msg00070.html # http://lists.gnu.org/archive/html/bug-bash/2011-03/msg00071.html # http://lists.gnu.org/archive/html/bug-bash/2011-03/msg00073.html Source9: bash-4.2-history-myown.dif.bz2 Patch0: bash-%{bash_vers}.dif Patch1: bash-2.03-manual.patch Patch2: bash-4.0-security.patch Patch3: bash-4.3-2.4.4.patch Patch4: bash-3.0-evalexp.patch Patch5: bash-3.0-warn-locale.patch Patch6: bash-4.2-endpw.dif Patch7: bash-4.3-decl.patch Patch8: bash-4.0-async-bnc523667.dif Patch9: bash-4.3-include-unistd.dif Patch10: bash-3.2-printf.patch Patch11: bash-4.3-loadables.dif Patch12: bash-4.1-completion.dif Patch13: bash-4.2-nscdunmap.dif Patch14: bash-4.3-sigrestart.patch # PATCH-FIX-UPSTREAM bnc#382214 -- disabled due bnc#806628 by -DBNC382214=0 Patch15: bash-3.2-longjmp.dif Patch16: bash-4.0-setlocale.dif Patch17: bash-4.3-headers.dif # PATCH-EXTEND-SUSE bnc#828877 -- xterm resizing does not pass to all sub clients Patch18: bash-4.3-winch.dif Patch20: readline-%{rl_vers}.dif Patch21: readline-6.3-input.dif Patch22: readline-6.1-wrap.patch Patch23: readline-5.2-conf.patch Patch24: readline-6.2-metamode.patch Patch25: readline-6.2-endpw.dif Patch27: readline-6.2-xmalloc.dif Patch30: readline-6.3-destdir.patch Patch31: readline-6.3-rltrace.patch Patch40: bash-4.1-bash.bashrc.dif # PATCH-FIX-SUSE For bsc#1065158 add support for broken Japanese locale Shift JIS Patch42: bash-4.3-SJIS.patch Patch46: man2html-no-timestamp.patch Patch47: bash-4.3-perl522.patch # PATCH-FIX-SUSE Patch48: bash-4.3-extra-import-func.patch # PATCH-EXTEND-SUSE Allow root to clean file system if filled up Patch49: bash-4.3-pathtemp.patch # PATCH-FIX-UPSTREAM bsc#971410 -- bash script terminates unexpectedly throwing backtrace Patch50: bash-4.3-async-bnc971410.dif # PATCH-FIX-UPSTREAM bsc#1035371 -- bash syntax error with expr in loops after upgrading to SLES 12 SP2 Patch51: bash-4.3-newline-in-arithmetics.patch # PATCH-FIX-UPSTREAM CVE-2016-9401, bsc#1010845 Patch52: bash-4.3-CVE20169401-simple-segv.patch Patch53: bash-4.3-jobctrl.patch # PATCH-FIX-UPSTREAM bsc#1086247 Patch54: bash-4.3-wait-sigint-handler.patch # PATCH-DISABLED-UPSTREAM bsc#1094121 -- disabled due bsc#1113117 Patch55: bash-4.3-redir.patch # PATCH-FIX-UPSTREAM boo#1107430 -- backport from bash-4.4 to make `T="";echo ">${T//*/ }<"' work Patch56: bash-4.3-boo1107430.dif # PATCH-FIX-UPSTREAM boo#1130324 -- VUL-0: CVE-2019-9924: bash: BASH_CMD is writable in restricted bash shells Patch57: bug1130324-CVE-2019-9924.patch # PATCH-FIX-UPSTREAM bsc#1177369 -- L3: tailf command does destroy terminal/console settings - ref:_00D1igLOd._5001iRTykf:ref Patch58: bsc1177369.patch # PATCH-FIX-UPSTREAM bsc#1192785 -- L3: setuid causing permission denied on popen ref:_00D1igLOd._5001iluzJi:ref Patch59: bash-4.3-boo1192785.patch # PATCH-FIX-UPSTREAM bsc#1197674 -- L3: bash memory leak ref:_00D1igLOd._5001isYGTt:ref Patch60: bsc1197674.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _incdir %{_includedir} %global _ldldir /%{_lib}/bash %global _minsh 0 %{expand: %%global rl_major %(echo %{rl_vers} | sed -r 's/.[0-9]+//g')} %description Bash is an sh-compatible command interpreter that executes commands read from standard input or from a file. Bash incorporates useful features from the Korn and C shells (ksh and csh). Bash is intended to be a conformant implementation of the IEEE Posix Shell and Tools specification (IEEE Working Group 1003.2). %package -n bash-doc Summary: Documentation how to Use the GNU Bourne-Again Shell Group: Documentation/Man Provides: bash:%{_infodir}/bash.info.gz PreReq: %install_info_prereq Version: %{bash_vers} Release: 0 %if %suse_version > 1120 BuildArch: noarch %endif %description -n bash-doc This package contains the documentation for using the bourne shell interpreter Bash. %if %{defined lang_package} %lang_package(bash) %else %package -n bash-lang Summary: Languages for package bash Group: System/Localization Provides: bash-lang = %{bash_vers} Requires: bash = %{bash_vers} %description -n bash-lang Provides translations to the package bash %endif %if 0%suse_version >= 1020 %package -n bash-devel Summary: Include Files mandatory for Development of bash loadable builtins Group: Development/Languages/C and C++ Version: %{bash_vers} Release: 0 %description -n bash-devel This package contains the C header files for writing loadable new builtins for the interpreter Bash. Use -I /usr/include/bash/<version> on the compilers command line. %endif %package -n bash-loadables Summary: Loadable bash builtins Group: System/Shells Version: %{bash_vers} Release: 0 %description -n bash-loadables This package contains the examples for the ready-to-dynamic-load builtins found in the source tar ball of the bash: basename Return non-directory portion of pathname. cut cut(1) replacement. dirname Return directory portion of pathname. finfo Print file info. getconf POSIX.2 getconf utility. head Copy first part of files. id POSIX.2 user identity. ln Make links. logname Print login name of current user. mkdir Make directories. pathchk Check pathnames for validity and portability. print Loadable ksh-93 style print builtin. printenv Minimal builtin clone of BSD printenv(1). push Anyone remember TOPS-20? realpath Canonicalize pathnames, resolving symlinks. rmdir Remove directory. sleep sleep for fractions of a second. strftime Loadable builtin interface to strftime(3). sync Sync the disks by forcing pending filesystem writes to complete. tee Duplicate standard input. tty Return terminal name. uname Print system information. unlink Remove a directory entry. whoami Print out username of current user. %package -n libreadline6 Summary: The Readline Library Group: System/Libraries Provides: bash:/%{_lib}/libreadline.so.%{rl_major} Version: %{rl_vers} Release: 0 %if 0%suse_version > 1020 Recommends: readline-doc = %{version} %endif # bug437293 %ifarch ppc64 Obsoletes: readline-64bit %endif # Provides: readline = %{rl_vers} Obsoletes: readline <= 6.2 %description -n libreadline6 The readline library is used by the Bourne Again Shell (bash, the standard command interpreter) for easy editing of command lines. This includes history and search functionality. %package -n readline-devel Summary: Include Files and Libraries mandatory for Development Group: Development/Libraries/C and C++ Provides: bash:%{_libdir}/libreadline.a Version: %{rl_vers} Release: 0 Requires: libreadline6 = %{rl_vers} Requires: ncurses-devel %if 0%suse_version > 1020 Recommends: readline-doc = %{rl_vers} %endif # bug437293 %ifarch ppc64 Obsoletes: readline-devel-64bit %endif # %description -n readline-devel This package contains all necessary include files and libraries needed to develop applications that require these. %package -n readline-doc Summary: Documentation how to Use and Program with the Readline Library Group: System/Libraries Provides: readline:%{_infodir}/readline.info.gz PreReq: %install_info_prereq Version: %{rl_vers} Release: 0 %if 0%suse_version > 1120 BuildArch: noarch %endif %description -n readline-doc This package contains the documentation for using the readline library as well as programming with the interface of the readline library. %prep %if %{with sjis} echo -e '\033[1m\033[31mWarning: Shift JIS support is enabled\033[m' %else echo -e '\033[1m\032[31mShift JIS support disabled\033[m' %endif %setup -q -n bash-%{bash_vers}%{extend} -b1 -b2 -b3 typeset -i level for patch in ../bash-%{bash_vers}-patches/*; do test -e $patch || break let level=0 || true file=$(lsdiff --files=1 $patch) if test ! -e $file ; then file=${file#*/} let level++ || true fi test -e $file || exit 1 sed -ri '/^\*\*\* \.\./{ s@\.\./bash-%{bash_vers}[^/]*/@@ }' $patch echo Patch $patch patch -s -p$level < $patch done %patch1 -p0 -b .manual %patch2 -p0 -b .security %patch3 -p0 -b .2.4.4 %patch4 -p0 -b .evalexp %patch5 -p0 -b .warnlc #%patch6 -p0 -b .endpw %patch7 -p0 -b .decl %patch8 -p0 -b .async %patch9 -p0 -b .unistd %patch10 -p0 -b .printf %patch11 -p0 -b .plugins %patch12 -p0 -b .completion %patch13 -p0 -b .nscdunmap %patch14 -p0 -b .sigrestart %patch15 -p0 -b .longjmp %patch16 -p0 -b .setlocale %patch17 -p0 -b .headers %patch18 -p0 -b .winch %patch21 -p0 -b .zerotty %patch22 -p0 -b .wrap %patch23 -p0 -b .conf %patch24 -p0 -b .metamode #%patch25 -p0 -b .endpw %patch31 -p0 -b .tmp %patch40 -p0 -b .bashrc %if %{with sjis} %patch42 -p0 -b .sjis %endif %patch46 -p0 -b .notimestamp %patch47 -p0 -b .perl522 %if %{with import_function} %patch48 %endif %patch49 %patch50 %patch51 %patch52 %patch53 -p1 %patch54 -p0 %if 0 %patch55 -p1 %endif %patch56 -p0 %patch57 -p0 %patch58 -p1 %patch59 -p0 %patch60 -p0 %patch0 -p0 -b .0 pushd ../readline-%{rl_vers}%{extend} for patch in ../readline-%{rl_vers}-patches/*; do test -e $patch || break let level=0 || true file=$(lsdiff --files=1 $patch) if test ! -e $file ; then file=${file#*/} let level++ || true fi sed -ri '/^\*\*\* \.\./{ s@\.\./readline-%{rl_vers}[^/]*/@@ }' $patch echo Patch $patch patch -s -p$level < $patch done %patch21 -p2 -b .zerotty %patch22 -p2 -b .wrap %patch23 -p2 -b .conf %patch24 -p2 -b .metamode #%patch25 -p2 -b .endpw %patch31 -p2 -b .tmp %patch27 -p0 -b .xm %patch30 -p0 -b .destdir %patch20 -p0 -b .0 %build LANG=POSIX LC_ALL=$LANG unset LC_CTYPE SCREENDIR=$(mktemp -d ${PWD}/screen.XXXXXX) || exit 1 SCREENRC=${SCREENDIR}/bash export SCREENRC SCREENDIR exec 0< /dev/null SCREENLOG=${SCREENDIR}/log cat > $SCREENRC<<-EOF deflogin off logfile $SCREENLOG logfile flush 1 logtstamp off log on setsid on scrollback 0 silence on utf8 on EOF CPU=$(uname -m 2> /dev/null) HOSTTYPE=${CPU} MACHTYPE=${CPU}-suse-linux export LANG LC_ALL HOSTTYPE MACHTYPE pushd ../readline-%{rl_vers}%{extend} %if 0%suse_version >= 1020 autoconf %endif cflags () { local flag=$1; shift local var=$1; shift test -n "${flag}" -a -n "${var}" || return case "${!var}" in *${flag}*) return esac set -o noclobber case "$flag" in -Wl,*) if echo 'int main () { return 0; }' | \ ${CC:-gcc} -Werror $flag -o /dev/null -xc - > /dev/null 2>&1 ; then eval $var=\${$var:+\$$var\ }$flag fi ;; *) if ${CC:-gcc} -Werror ${flag/#-Wno-/-W} -S -o /dev/null -xc /dev/null > /dev/null 2>&1 ; then eval $var=\${$var:+\$$var\ }$flag fi if ${CXX:-g++} -Werror ${flag/#-Wno-/-W} -S -o /dev/null -xc++ /dev/null > /dev/null 2>&1 ; then eval $var=\${$var:+\$$var\ }$flag fi esac set +o noclobber } LARGEFILE="$(getconf LFS_CFLAGS)" (cat > dyn.map)<<-'EOF' { *; !rl_*stream; }; EOF (cat > rl.map)<<-'EOF' READLINE_6.3 { rl_change_environment; rl_clear_history; rl_executing_key; rl_executing_keyseq; rl_filename_stat_hook; rl_history_substr_search_backward; rl_history_substr_search_forward; rl_input_available_hook; rl_print_last_kbd_macro; rl_signal_event_hook; }; EOF CFLAGS="$RPM_OPT_FLAGS $LARGEFILE -D_GNU_SOURCE -DRECYCLES_PIDS -Wall -g" LDFLAGS="" # # Never ever put -DMUST_UNBLOCK_CHLD herein as this breaks bash # cflags -Wuninitialized CFLAGS cflags -Wextra CFLAGS cflags -Wno-unprototyped-calls CFLAGS cflags -Wno-switch-enum CFLAGS cflags -Wno-unused-variable CFLAGS cflags -Wno-unused-parameter CFLAGS cflags -Wno-parentheses CFLAGS cflags -ftree-loop-linear CFLAGS cflags -pipe CFLAGS cflags -DBNC382214=0 CFLAGS cflags -DIMPORT_FUNCTIONS_DEF=0 CFLAGS cflags -Wl,--as-needed LDFLAGS cflags -Wl,-O2 LDFLAGS cflags -Wl,-rpath,%{_ldldir}/%{bash_vers} LDFLAGS cflags -Wl,--version-script=${PWD}/rl.map LDFLAGS cflags -Wl,--dynamic-list=${PWD}/dyn.map LDFLAGS CC=gcc CC_FOR_BUILD="$CC" CFLAGS_FOR_BUILD="$CFLAGS" LDFLAGS_FOR_BUILD="$LDFLAGS" export CC_FOR_BUILD CFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD CFLAGS LDFLAGS CC ./configure --build=%{_target_cpu}-suse-linux \ --disable-static \ --prefix=%{_prefix} \ --with-curses \ --mandir=%{_mandir} \ --infodir=%{_infodir} \ --docdir=%{_defaultdocdir}/readline \ --libdir=%{_libdir} make make documentation ln -sf shlib/libreadline.so.%{rl_vers} libreadline.so ln -sf shlib/libreadline.so.%{rl_vers} libreadline.so.%{rl_major} ln -sf shlib/libhistory.so.%{rl_vers} libhistory.so ln -sf shlib/libhistory.so.%{rl_vers} libhistory.so.%{rl_major} LDFLAGS=${LDFLAGS/-Wl,--version-script=*rl.map/} LDFLAGS=${LDFLAGS/-Wl,--dynamic-list=*dyn.map/} LDFLAGS_FOR_BUILD="$LDFLAGS" popd # /proc is required for correct configuration test -d /dev/fd || { echo "/proc is not mounted!" >&2; exit 1; } ln -sf ../readline-%{rl_vers} readline LD_RUN_PATH=$PWD/../readline-%{rl_vers} export LD_RUN_PATH CC="gcc -I$PWD -L$PWD/../readline-%{rl_vers}" %if %_minsh cflags -Os CFLAGS # cflags -U_FORTIFY_SOURCE CFLAGS # cflags -funswitch-loops CFLAGS # cflags -ftree-loop-im CFLAGS # cflags -ftree-loop-ivcanon CFLAGS # cflags -fprefetch-loop-arrays CFLAGS # cflags -fno-stack-protector CFLAGS # cflags -fno-unwind-tables CFLAGS # cflags -fno-asynchronous-unwind-tables CFLAGS %endif CC_FOR_BUILD="$CC" CFLAGS_FOR_BUILD="$CFLAGS" export CC_FOR_BUILD CFLAGS_FOR_BUILD CFLAGS LDFLAGS CC %if 0%suse_version > 1020 autoconf %endif # # We have a malloc with our glibc # SYSMALLOC=" --without-gnu-malloc --without-bash-malloc " # # System readline library (comment out it not to be used) # READLINE=" --with-installed-readline " bash support/mkconffiles -v %if %_minsh ./configure --build=%{_target_cpu}-suse-linux \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --infodir=%{_infodir} \ --libdir=%{_libdir} \ --with-curses \ --with-afs \ $SYSMALLOC \ --enable-minimal-config \ --enable-arith-for-command \ --enable-array-variables \ --enable-brace-expansion \ --enable-casemod-attributes \ --enable-casemod-expansion \ --enable-command-timing \ --enable-cond-command \ --enable-cond-regexp \ --enable-coprocesses \ --enable-directory-stack \ --enable-dparen-arithmetic \ --enable-extended-glob \ --enable-job-control \ --enable-net-redirections \ --enable-process-substitution \ --disable-strict-posix-default \ --enable-separate-helpfiles=%{_datadir}/bash/helpfiles \ $READLINE make Program=sh sh make distclean %endif ./configure --build=%{_target_cpu}-suse-linux \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --infodir=%{_infodir} \ --libdir=%{_libdir} \ --docdir=%{_defaultdocdir}/bash \ --with-curses \ --with-afs \ $SYSMALLOC \ --enable-job-control \ --enable-alias \ --enable-readline \ --enable-history \ --enable-bang-history \ --enable-directory-stack \ --enable-process-substitution \ --enable-prompt-string-decoding \ --enable-select \ --enable-help-builtin \ --enable-array-variables \ --enable-brace-expansion \ --enable-command-timing \ --enable-disabled-builtins \ --disable-strict-posix-default \ --enable-multibyte \ --enable-separate-helpfiles=%{_datadir}/bash/helpfiles \ $READLINE make %{?do_profiling:CFLAGS="$CFLAGS %cflags_profile_generate"} \ all printenv recho zecho xcase TMPDIR=$(mktemp -d /tmp/bash.XXXXXXXXXX) || exit 1 > $SCREENLOG tail -q -s 0.5 -f $SCREENLOG & pid=$! env -i HOME=$PWD TERM=$TERM LD_LIBRARY_PATH=$LD_RUN_PATH TMPDIR=$TMPDIR \ SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \ screen -L -D -m make TESTSCRIPT=%{SOURCE4} check kill -TERM $pid make %{?do_profiling:CFLAGS="$CFLAGS %cflags_profile_feedback" clean} all make -C examples/loadables/ make documentation %install pushd ../readline-%{rl_vers}%{extend} make install htmldir=%{_defaultdocdir}/readline \ installdir=%{_defaultdocdir}/readline/examples DESTDIR=%{buildroot} make install-shared libdir=/%{_lib} linkagedir=%{_libdir} DESTDIR=%{buildroot} rm -rf %{buildroot}%{_defaultdocdir}/bash mkdir -p %{buildroot}%{_defaultdocdir}/bash chmod 0755 %{buildroot}/%{_lib}/libhistory.so.%{rl_vers} chmod 0755 %{buildroot}/%{_lib}/libreadline.so.%{rl_vers} rm -vf %{buildroot}/%{_lib}/libhistory.so.%{rl_vers}*old rm -vf %{buildroot}/%{_lib}/libreadline.so.%{rl_vers}*old rm -vf %{buildroot}/%{_lib}/libhistory.so rm -vf %{buildroot}/%{_lib}/libreadline.so ln -sf /%{_lib}/libhistory.so.%{rl_vers} %{buildroot}/%{_libdir}/libhistory.so ln -sf /%{_lib}/libreadline.so.%{rl_vers} %{buildroot}/%{_libdir}/libreadline.so popd make install DESTDIR=%{buildroot} make -C examples/loadables/ install-plugins DESTDIR=%{buildroot} libdir=/%{_lib} make -C examples/loadables/ install-headers DESTDIR=%{buildroot} mkdir -p %{buildroot}/bin mv %{buildroot}%{_bindir}/bash %{buildroot}/bin/ %if %_minsh install sh %{buildroot}/bin/sh ln -sf ../../bin/sh %{buildroot}%{_bindir}/sh %else ln -sf bash %{buildroot}/bin/sh ln -sf ../../bin/bash %{buildroot}%{_bindir}/sh %endif install -m 755 bash %{buildroot}/bin/bash ln -sf ../../bin/bash %{buildroot}%{_bindir}/rbash install -m 644 COMPAT NEWS %{buildroot}%{_defaultdocdir}/bash/ install -m 644 COPYING %{buildroot}%{_defaultdocdir}/bash/ install -m 644 doc/FAQ %{buildroot}%{_defaultdocdir}/bash/ install -m 644 doc/INTRO %{buildroot}%{_defaultdocdir}/bash/ install -m 644 doc/*.html %{buildroot}%{_defaultdocdir}/bash/ install -m 644 doc/builtins.1 %{buildroot}%{_mandir}/man1/bashbuiltins.1 install -m 644 doc/rbash.1 %{buildroot}%{_mandir}/man1/rbash.1 gzip -9f %{buildroot}%{_infodir}/*.inf*[^z] || true mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d sed 's/^|//' > %{buildroot}%{_defaultdocdir}/bash/BUGS <<\EOF Known problems -------------- | This version of bash/readline supports multi byte handling that is e.g. wide character support for UTF-8. This causes problems in geting the current cursor position within the readline runtime library: | bash-%{bash_vers}> LANG=ja_JP bash-%{bash_vers}> echo -n "Hello" bash-%{bash_vers}> | In other words the prompt overwrites the output of the echo comand. The boolean variable byte-oriented set in %{_sysconfdir}/inputrc or $HOME/.inputrc avoids this but disables multi byte handling. EOF # remove unpackaged files rm -fv %{buildroot}%{_libdir}/libhistory.so.* rm -fv %{buildroot}%{_libdir}/libreadline.so.* rm -fv %{buildroot}%{_infodir}/rluserman.info.gz rm -fv %{buildroot}%{_mandir}/man3/history.3* rm -fv %{buildroot}%{_defaultdocdir}/readline/INSTALL mkdir -p %{buildroot}%{_sysconfdir}/skel install -m 644 %{S:5} %{buildroot}%{_sysconfdir}/skel/.bashrc install -m 644 %{S:6} %{buildroot}%{_sysconfdir}/skel/.profile touch -t 199605181720.50 %{buildroot}%{_sysconfdir}/skel/.bash_history chmod 600 %{buildroot}%{_sysconfdir}/skel/.bash_history %find_lang bash %if %suse_version > 1020 %fdupes -s %{buildroot}%{_datadir}/bash/helpfiles %endif %post -n bash-doc %install_info --info-dir=%{_infodir} %{_infodir}/bash.info.gz %preun -n bash-doc %install_info_delete --info-dir=%{_infodir} %{_infodir}/bash.info.gz %post -n libreadline6 -p /sbin/ldconfig %postun -n libreadline6 -p /sbin/ldconfig %post -n readline-doc %install_info --info-dir=%{_infodir} %{_infodir}/history.info.gz %install_info --info-dir=%{_infodir} %{_infodir}/readline.info.gz %preun -n readline-doc %install_info_delete --info-dir=%{_infodir} %{_infodir}/history.info.gz %install_info_delete --info-dir=%{_infodir} %{_infodir}/readline.info.gz %clean LD_LIBRARY_PATH=%{buildroot}/%{_lib} \ ldd -u -r %{buildroot}/bin/bash || true ldd -u -r %{buildroot}/%{_lib}/libreadline.so.* || true %{?buildroot: %{__rm} -rf %{buildroot}} %files %defattr(-,root,root) %config %attr(600,root,root) %{_sysconfdir}/skel/.bash_history %config %attr(644,root,root) %{_sysconfdir}/skel/.bashrc %config %attr(644,root,root) %{_sysconfdir}/skel/.profile %attr(755,root,root) /bin/bash /bin/sh %dir %{_sysconfdir}/bash_completion.d %{_bindir}/bashbug %{_bindir}/rbash %{_bindir}/sh %dir %{_datadir}/bash %dir %{_datadir}/bash/helpfiles %{_datadir}/bash/helpfiles/* %files -n bash-lang -f bash.lang %defattr(-,root,root) %files -n bash-doc %defattr(-,root,root) %doc %{_infodir}/bash.info.gz %doc %{_mandir}/man1/bash.1.gz %doc %{_mandir}/man1/bashbuiltins.1.gz %doc %{_mandir}/man1/bashbug.1.gz %doc %{_mandir}/man1/rbash.1.gz %doc %{_defaultdocdir}/bash/ %if 0%suse_version >= 1020 %files -n bash-devel %defattr(-,root,root) %dir /%{_includedir}/bash/ %dir /%{_includedir}/bash/%{bash_vers}/ %dir /%{_includedir}/bash/%{bash_vers}/builtins/ /%{_incdir}/bash/%{bash_vers}/*.h /%{_incdir}/bash/%{bash_vers}/builtins/*.h %endif %files -n bash-loadables %defattr(-,root,root) %dir %{_ldldir}/ %dir %{_ldldir}/%{bash_vers}/ %{_ldldir}/%{bash_vers}/* %files -n libreadline6 %defattr(-,root,root) /%{_lib}/libhistory.so.%{rl_major} /%{_lib}/libhistory.so.%{rl_vers} /%{_lib}/libreadline.so.%{rl_major} /%{_lib}/libreadline.so.%{rl_vers} %files -n readline-devel %defattr(-,root,root) %{_incdir}/readline/ %{_libdir}/libhistory.so %{_libdir}/libreadline.so %doc %{_mandir}/man3/readline.3.gz %files -n readline-doc %defattr(-,root,root) %doc %{_infodir}/history.info.gz %doc %{_infodir}/readline.info.gz %doc %{_defaultdocdir}/readline/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor