|
|
|
@ -167,7 +167,7 @@ fi\
|
|
|
|
|
%{!?_fileattrsdir:%global _use_internal_dependency_generator 0}\
|
|
|
|
|
%{!?_fileattrsdir:%global __find_requires %{_rpmconfigdir}/ghc-deps.sh %{buildroot}%{ghclibdir}}\
|
|
|
|
|
%cabal_install\
|
|
|
|
|
%ghc_fix_rpaths\
|
|
|
|
|
%ghc_delete_rpaths\
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
# ghc_lib_install [name] [version]
|
|
|
|
@ -178,19 +178,19 @@ fi\
|
|
|
|
|
%cabal_install\
|
|
|
|
|
%cabal_pkg_conf %{?1} %{?2}\
|
|
|
|
|
%ghc_gen_filelists %{?1} %{?2}\
|
|
|
|
|
%ghc_fix_rpaths\
|
|
|
|
|
%ghc_delete_rpaths\
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
# ghc_fix_rpaths
|
|
|
|
|
%ghc_fix_rpaths\
|
|
|
|
|
%if %{undefined disable_ghc_fix_rpaths}\
|
|
|
|
|
echo "running ghc_fix_rpaths:"\
|
|
|
|
|
# ghc_delete_rpaths
|
|
|
|
|
%ghc_delete_rpaths\
|
|
|
|
|
%if %{undefined disable_ghc_delete_rpaths}\
|
|
|
|
|
echo "running ghc_delete_rpaths:"\
|
|
|
|
|
if ! type chrpath > /dev/null; then exit 1; fi\
|
|
|
|
|
for i in $(find %{buildroot} -type f -executable -exec sh -c "file {} | grep -q 'dynamically linked'" \\; -print); do\
|
|
|
|
|
if [ -x "$i" ]; then\
|
|
|
|
|
chrpath -d $i\
|
|
|
|
|
else\
|
|
|
|
|
echo "%%ghc_fix_rpath: no $i executable"\
|
|
|
|
|
echo "%%ghc_delete_rpath: no $i executable"\
|
|
|
|
|
exit 1\
|
|
|
|
|
fi\
|
|
|
|
|
done\
|
|
|
|
|