From ed934fb2e1a73d7b6e37fe7d47c6193c0593dd75 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 22 Jan 2011 23:38:19 +1000 Subject: [PATCH] fix the filelist docdir for-loop --- ghc-rpm-macros.ghc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc-rpm-macros.ghc b/ghc-rpm-macros.ghc index 95982c8..6b2b45e 100644 --- a/ghc-rpm-macros.ghc +++ b/ghc-rpm-macros.ghc @@ -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\