diff --git a/bash.spec b/bash.spec index 1c9132a55755a2ac135a53126460df291b2bfa39..6581547a7124c5e9662ac975b0016679823055ae 100644 --- a/bash.spec +++ b/bash.spec @@ -47,6 +47,14 @@ Requires: pkgconf-pkg-config %description devel This package contains development files for %{name}. +%package relocation +Summary: Relocation for %{name} +Requires: %{name} = %{version}-%{release} +BuildRequires: native-turbo-tools + +%description relocation +This package contains relocations for %{name}. + %package help Summary: Documents for %{name} Buildarch: noarch @@ -62,12 +70,14 @@ Man pages and other related documents for %{name}. %build autoconf -%configure --with-bash-malloc=no --with-afs +%configure --with-bash-malloc=no --with-afs LDFLAGS="-Wl,--emit-relocs" MFLAGS="CPPFLAGS=-D_GNU_SOURCE -DRECYCLES_PIDS -DDEFAULT_PATH_VALUE='\"/usr/local/bin:/usr/bin\"' `getconf LFS_CFLAGS`" make "$MFLAGS" version.h make "$MFLAGS" -C builtins %make_build "$MFLAGS" +objreloc $RPM_BUILD_DIR/%{name}-%{version}/bash + %install %make_install install-headers ln -sf bash %{buildroot}%{_bindir}/sh @@ -75,6 +85,7 @@ install -pDm 644 %SOURCE1 %{buildroot}/etc/skel/.bashrc install -pDm 644 %SOURCE2 %{buildroot}/etc/skel/.bash_profile install -pDm 644 %SOURCE3 %{buildroot}/etc/skel/.bash_logout install -pDm 644 ./configs/alias.sh %{buildroot}%{_sysconfdir}/profile.d/alias.sh +install -pDm 750 $RPM_BUILD_DIR/%{name}-%{version}/bash.relocation %{buildroot}%{_bindir}/bash.relocation # bug #820192, need to add execable alternatives for regular built-ins for ea in alias bg cd command fc fg getopts hash jobs read type ulimit umask unalias wait @@ -99,6 +110,10 @@ make check %{_bindir}/{hash,getopts,jobs,read,type,ulimit,umask,unalias} %config(noreplace) %{_sysconfdir}/profile.d/alias.sh +%files relocation +%defattr(744,root,root) +%{_bindir}/bash.relocation + %files devel %defattr(-,root,root) %{_includedir}/%{name}