From 1fbeffc0e8f81823db5b580686a8caccf0f784b7 Mon Sep 17 00:00:00 2001 From: lewie Date: Sun, 15 Sep 2002 19:38:28 +0000 Subject: [PATCH] [project @ 2002-09-15 19:38:28 by lewie] Ergh! Don't mix `%doc ' with `%doc ' where is the standard doc directory (i.e. the same place where the files will be copied). The 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 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ghc/ghc.spec.in b/ghc/ghc.spec.in index a8f9098..1e3ab95 100644 --- a/ghc/ghc.spec.in +++ b/ghc/ghc.spec.in @@ -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 -- 1.7.10.4