|
|
|
@ -158,7 +158,7 @@ if [ -d "%{ghclibdir}/lib" ]; then\
|
|
|
|
|
subsubdir=/lib\
|
|
|
|
|
fi\
|
|
|
|
|
%endif\
|
|
|
|
|
if [ -z "$(ls %{buildroot}%{ghcliblib}${subsubdir}/package.conf.d/%{pkgnamever}*.conf)" ]; then\
|
|
|
|
|
if [ ! -f %{buildroot}%{ghcliblib}${subsubdir}/package.conf.d/%{pkgnamever}*.conf ]; then\
|
|
|
|
|
echo "%{buildroot}%{ghcliblib}${subsubdir}/package.conf.d/%{pkgnamever}*.conf not found"\
|
|
|
|
|
exit 1\
|
|
|
|
|
fi\
|
|
|
|
@ -182,9 +182,14 @@ exit 1\
|
|
|
|
|
%endif\
|
|
|
|
|
fi\
|
|
|
|
|
done\
|
|
|
|
|
pkgdir="%{ghcliblib}${subsubdir}%{?with_hadrian:/%{ghcplatform}}/%{pkgnamever}"\
|
|
|
|
|
if [ -d "%{buildroot}${pkgdir}" ]; then\
|
|
|
|
|
find %{buildroot}${pkgdir} -type d -fprintf %{basepkg}-devel.files '%%%%dir %p\\n' -o \\( -name '*.p_hi' -o -name 'libHS*_p.a' \\) -fprint %{basepkg}-prof.files -o -fprint %{basepkg}-devel.files\
|
|
|
|
|
pkgdir="%{buildroot}%{ghcliblib}${subsubdir}%{?with_hadrian:/%{ghcplatform}}/%{pkgnamever}"\
|
|
|
|
|
%if %[v"%{ghc_version}" > v"9.8"]\
|
|
|
|
|
if [ ! -d ${pkgdir} ]; then\
|
|
|
|
|
pkgdir="${pkgdir}-*"\
|
|
|
|
|
fi\
|
|
|
|
|
%endif\
|
|
|
|
|
if [ -d ${pkgdir} ]; then\
|
|
|
|
|
find ${pkgdir} -type d -fprintf %{basepkg}-devel.files '%%%%dir %p\\n' -o \\( -name '*.p_hi' -o -name 'libHS*_p.a' \\) -fprint %{basepkg}-prof.files -o -fprint %{basepkg}-devel.files\
|
|
|
|
|
else\
|
|
|
|
|
rm -f %{basepkg}-devel.files %{basepkg}-prof.files\
|
|
|
|
|
touch %{basepkg}-devel.files %{basepkg}-prof.files\
|
|
|
|
|