|
|
|
@ -136,9 +136,12 @@ find %{buildroot} -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \
|
|
|
|
|
if ! type chrpath > /dev/null; then exit 1; fi\
|
|
|
|
|
PDIR=$(pwd)\
|
|
|
|
|
for i in %*; do\
|
|
|
|
|
PROG=%{buildroot}%{_bindir}/$i\
|
|
|
|
|
case $i in\
|
|
|
|
|
/*) PROG=%{buildroot}$i ;;\
|
|
|
|
|
*) PROG=%{buildroot}%{_bindir}/$i ;;\
|
|
|
|
|
esac\
|
|
|
|
|
if [ -x "$PROG" ]; then\
|
|
|
|
|
RPATH=$(chrpath $PROG | sed -e "s@^$PROG: RPATH=@@")\
|
|
|
|
|
RPATH=$(chrpath $PROG | sed -e "s@^$PROG: RU\?N\?PATH=@@")\
|
|
|
|
|
case $RPATH in\
|
|
|
|
|
*$PDIR*)\
|
|
|
|
|
NEWRPATH=$(echo $RPATH | sed -e "s@$PDIR/dist/build@%{ghclibdir}/%{pkg_name}-%{version}@g")\
|
|
|
|
|