fix the filelist docdir for-loop

epel9
Jens Petersen 14 years ago
parent 85779fa14f
commit ed934fb2e1

@ -32,7 +32,7 @@ echo "%attr(755,root,root) %{pkgdir}/libHS%{pkgnamever}-ghc%{ghc_version}.so" >>
fi\ fi\
%endif\ %endif\
echo "%defattr(-,root,root,-)" > %{basepkg}-devel.files\ echo "%defattr(-,root,root,-)" > %{basepkg}-devel.files\
for dir in %{_docdir}/{ghc-,}%{pkgnamever} for dir in %{_docdir}/{ghc-,}%{pkgnamever}; do\
if [ -d "%{buildroot}${dir}" ]; then\ if [ -d "%{buildroot}${dir}" ]; then\
echo "${dir}" >> %{basepkg}%{?without_shared:-devel}.files\ echo "${dir}" >> %{basepkg}%{?without_shared:-devel}.files\
fi\ fi\

Loading…
Cancel
Save