name = bash
version = 4.2
-release = 7
+release = 10
groups = System/Tools
url = http://www.gnu.org/software/bash/
autoconf
automake
bison
+ filesystem >= 002
ncurses-devel
readline-devel
+ texinfo
end
prepare_cmds
end
configure_options += \
- --bindir=/bin \
--without-bash-malloc \
--with-installed-readline
#end
install_cmds
- mkdir -pv %{BUILDROOT}/{bin,etc/profile.d,root}
+ mkdir -pv %{BUILDROOT}/{etc/profile.d,root}
# Bash startup files
cp -vf %{DIR_SOURCE}/dot_bash_logout %{BUILDROOT}/root/.bash_logout
# /etc/profile.d
cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d
- ln -svf bash %{BUILDROOT}/bin/sh
+ ln -svf bash %{BUILDROOT}%{bindir}/sh
end
end
package %{name}
groups += Base Build
- prerequires = coreutils
requires
+ coreutils
/etc/bashrc
/etc/profile
end
+ provides
+ /bin/bash
+ /bin/sh
+ end
+
+ conflicts
+ filesystem < 002
+ end
+
script posttransin
# Create /etc/shells, if it does not exist.
[ -f "/etc/shells" ] || touch /etc/shells