Added ghc man page to RPM
[ghc-hetmet.git] / ghc.spec.in
index 1c83f72..b31d0aa 100644 (file)
@@ -82,7 +82,7 @@ needed.
 
 %build
 test -f configure || autoreconf
-./configure --prefix=%{_prefix}
+./configure --prefix=%{_prefix} --mandir=%{_mandir}
 make
 make html
 make -C docs/ext-core ps
@@ -90,7 +90,7 @@ make -C docs/storage-mgt ps
 
 %install
 make prefix=${RPM_BUILD_ROOT}%{_prefix} install
-make datadir=`pwd` install-docs
+make datadir=`pwd` mandir=${RPM_BUILD_ROOT}%{_mandir} install-docs
 
 # generate the file list for lib/ _excluding_ all files needed for profiling
 # only
@@ -120,6 +120,7 @@ rm -rf ${RPM_BUILD_ROOT}
 %doc LICENSE
 %doc README
 %doc docs/building/building
+%doc docs/comm
 %doc docs/ext-core/core.ps
 %doc docs/storage-mgt/ldv.ps
 %doc docs/storage-mgt/rp.ps
@@ -127,6 +128,7 @@ rm -rf ${RPM_BUILD_ROOT}
 %doc docs/users_guide/users_guide
 %doc html/*
 %doc libraries/Cabal/doc/Cabal
+%{_mandir}/man1/ghc.1*
 %{_prefix}/bin/ghc
 %{_prefix}/bin/ghc-%{version}
 %{_prefix}/bin/ghc-pkg