From: lewie Date: Thu, 18 Jul 2002 13:12:45 +0000 (+0000) Subject: [project @ 2002-07-18 13:12:45 by lewie] X-Git-Tag: Approx_11550_changesets_converted~1831 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=8c721a3a82111368d35160ea00c72a7a58ccfc66;p=ghc-hetmet.git [project @ 2002-07-18 13:12:45 by lewie] %files for the profiling rpm was missing .p_hi files that were nested deeply. Fixed by calculating %files for prof rpm similar to how it is calculated for the main rpm. --- diff --git a/ghc/ghc.spec.in b/ghc/ghc.spec.in index 974712d..df2692e 100644 --- a/ghc/ghc.spec.in +++ b/ghc/ghc.spec.in @@ -169,6 +169,8 @@ cd $RPM_BUILD_ROOT libdir=`echo %{prefix}/lib | sed 's|^/||'` find $libdir ! -type d ! -name '*.p_hi' ! -name '*_p.a' -print | sed 's|^|/|'\ >$dir/rpm-noprof-lib-files +find $libdir ! -type d \( -name '*.p_hi' -or -name '*_p.a' \) -print | sed 's|^|/|'\ + >$dir/rpm-prof-lib-files cd $dir %clean @@ -178,9 +180,7 @@ rm -rf $RPM_BUILD_ROOT %doc ghc/ANNOUNCE ghc/README %{prefix}/bin/* -%files prof -%{prefix}/lib/ghc-%{version}/imports/*/*.p_hi -%{prefix}/lib/ghc-%{version}/libHS*_p.a +%files prof -f rpm-prof-lib-files %files doc %doc docs/