[project @ 2002-09-15 19:38:28 by lewie]
authorlewie <unknown>
Sun, 15 Sep 2002 19:38:28 +0000 (19:38 +0000)
committerlewie <unknown>
Sun, 15 Sep 2002 19:38:28 +0000 (19:38 +0000)
Ergh!  Don't mix `%doc <relativepathname>' with `%doc <absolutepathname>'
where <absolutepathname> is the standard doc directory (i.e. the same place
where the <relativepathname> files will be copied).
The <relativepathname> version has the hidden side effect of removing
the contents of the doc directory first (and thus your carefully installed
files).  The whole distinction which makes a special case for relative
paths is a crock in the first place ;-)

ghc/ghc.spec.in

index a8f9098..1e3ab95 100644 (file)
@@ -139,6 +139,8 @@ rm -rf $RPM_BUILD_ROOT
 make prefix=$RPM_BUILD_ROOT%{prefix} install-dirs
 
 make prefix=$RPM_BUILD_ROOT%{prefix} install
+mkdir -p $RPM_BUILD_ROOT%{prefix}/share/doc/ghc-%{version}
+cp ghc/ANNOUNCE ghc/README $RPM_BUILD_ROOT%{prefix}/share/doc/ghc-%{version}
 
 make prefix=$RPM_BUILD_ROOT%{prefix} datadir=$RPM_BUILD_ROOT%{prefix}/share/doc/ghc-%{version} SGMLDocWays="html ps" install-docs
 
@@ -166,10 +168,12 @@ cd $dir
 rm -rf $RPM_BUILD_ROOT
 
 %files -f rpm-noprof-lib-files
-%doc ghc/ANNOUNCE ghc/README
+%doc %{prefix}/share/doc/ghc-%{version}/ANNOUNCE
+%doc %{prefix}/share/doc/ghc-%{version}/README
 %{prefix}/bin/*
 
 %files prof -f rpm-prof-lib-files
 
 %files doc
-%doc %{prefix}/share/doc/ghc-%{version}
+%doc %{prefix}/share/doc/ghc-%{version}/*.ps
+%doc %{prefix}/share/doc/ghc-%{version}/html