use upstream paths for libHS*.so unless _ghcdynlibdir

epel9
Jens Petersen 2 years ago
parent 3c68a12dbb
commit c6ebe00c11

@ -98,11 +98,11 @@ echo "%%license %{pkgnamever}/$i" >> %{basepkg}.files\
done\ done\
fi\ fi\
%endif\ %endif\
for i in %{buildroot}%{?_ghcdynlibdir}%{!?_ghcdynlibdir:%{ghclibplatform}}/libHS%{pkgnamever}-*ghc%{ghc_version}.so; do\ for i in %{buildroot}%{?_ghcdynlibdir}%{!?_ghcdynlibdir:%ghclibplatform%{!?with_hadrian:/%{pkgnamever}}}/libHS%{pkgnamever}-*ghc%{ghc_version}.so; do\
if [ -x "$i" ]; then\ if [ -x "$i" ]; then\
echo $i >> %{basepkg}.files\ echo $i >> %{basepkg}.files\
else\ else\
echo %{buildroot}%{?_ghcdynlibdir}%{!?_ghcdynlibdir:%{ghclibplatform}}/libHS%{pkgnamever}-*ghc%{ghc_version}.so not found\ echo %{buildroot}%{?_ghcdynlibdir}%{!?_ghcdynlibdir:$pkgdir}/libHS%{pkgnamever}-*ghc%{ghc_version}.so not found\
%if 0%{!-m:1}\ %if 0%{!-m:1}\
exit 1\ exit 1\
%endif\ %endif\

Loading…
Cancel
Save