fix the filelist docdir for-loop

This commit is contained in:
Jens Petersen 2011-01-22 23:38:19 +10:00
parent 85779fa14f
commit ed934fb2e1
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ echo "%attr(755,root,root) %{pkgdir}/libHS%{pkgnamever}-ghc%{ghc_version}.so" >>
fi\
%endif\
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\
echo "${dir}" >> %{basepkg}%{?without_shared:-devel}.files\
fi\