summaryrefslogtreecommitdiff
path: root/ghc.spec.in
diff options
context:
space:
mode:
authorsven.panne@aedion.de <unknown>2007-09-01 17:51:24 +0000
committersven.panne@aedion.de <unknown>2007-09-01 17:51:24 +0000
commit3765a389871dc63fae795498a8900ee8bc2301c3 (patch)
tree7ccf629a96511b5ac26e2024db98cecd4f45d657 /ghc.spec.in
parent87c631be70d0a6d29b621f9a46b8d465c275ad86 (diff)
downloadhaskell-3765a389871dc63fae795498a8900ee8bc2301c3.tar.gz
Use DESTDIR for installation
Diffstat (limited to 'ghc.spec.in')
-rw-r--r--ghc.spec.in7
1 files changed, 3 insertions, 4 deletions
diff --git a/ghc.spec.in b/ghc.spec.in
index 6133f36af6..d5d87d0000 100644
--- a/ghc.spec.in
+++ b/ghc.spec.in
@@ -84,7 +84,7 @@ needed.
%build
test -f configure || sh boot
./configure --prefix=%{_prefix} --mandir=%{_mandir}
-make %{?jobs:-j%jobs} HTML_DIR_INSTALLED=%{_defaultdocdir}/%{name}/libraries/'$(PACKAGE)'
+make %{?jobs:-j%jobs}
make html
make -C libraries doc
( cd libraries/Cabal && docbook2html doc/Cabal.xml --output doc/Cabal )
@@ -92,9 +92,8 @@ make -C docs/ext-core ps
make -C docs/storage-mgt ps
%install
-make prefix=${RPM_BUILD_ROOT}%{_prefix} install
+make DESTDIR=${RPM_BUILD_ROOT} install install-docs
mv ${RPM_BUILD_ROOT}%{_prefix}/bin/hsc2hs ${RPM_BUILD_ROOT}%{_prefix}/bin/hsc2hs-ghc
-make datadir=`pwd` mandir=${RPM_BUILD_ROOT}%{_mandir} install-docs
# generate the file list for lib/ _excluding_ all files needed for profiling
# only
@@ -152,7 +151,7 @@ fi
%doc docs/users_guide/users_guide
%doc docs/index.html
%doc libraries/Cabal/doc/Cabal
-%{_datadir}/ghc
+%{_datadir}/doc/ghc
%{_mandir}/man1/ghc.1*
%{_prefix}/bin/ghc
%{_prefix}/bin/ghc-%{version}