Skip to content
Snippets Groups Projects
Commit 6a5d62b6 authored by sven.panne@aedion.de's avatar sven.panne@aedion.de
Browse files

Synched GHC's .spec file with recent changes

Fixed hsc2hs handling and added hpc binary. Explicitly generate Cabal docs.
Note that the Haddock documentation is currently not in the right place,
this needs more investigation, but at least we can build a valid RPM now.
parent e12bd07b
No related branches found
No related tags found
No related merge requests found
...@@ -86,11 +86,14 @@ test -f configure || sh boot ...@@ -86,11 +86,14 @@ test -f configure || sh boot
./configure --prefix=%{_prefix} --mandir=%{_mandir} ./configure --prefix=%{_prefix} --mandir=%{_mandir}
make %{?jobs:-j%jobs} HTML_DIR_INSTALLED=%{_defaultdocdir}/%{name}/libraries/'$(PACKAGE)' make %{?jobs:-j%jobs} HTML_DIR_INSTALLED=%{_defaultdocdir}/%{name}/libraries/'$(PACKAGE)'
make html make html
make -C libraries doc
( cd libraries/Cabal && docbook2html doc/Cabal.xml --output doc/Cabal )
make -C docs/ext-core ps make -C docs/ext-core ps
make -C docs/storage-mgt ps make -C docs/storage-mgt ps
%install %install
make prefix=${RPM_BUILD_ROOT}%{_prefix} install make prefix=${RPM_BUILD_ROOT}%{_prefix} install
mv ${RPM_BUILD_ROOT}%{_prefix}/bin/hsc2hs ${RPM_BUILD_ROOT}%{_prefix}/bin/hsc2hs-ghc
make datadir=`pwd` mandir=${RPM_BUILD_ROOT}%{_mandir} install-docs make datadir=`pwd` mandir=${RPM_BUILD_ROOT}%{_mandir} install-docs
# generate the file list for lib/ _excluding_ all files needed for profiling # generate the file list for lib/ _excluding_ all files needed for profiling
...@@ -147,8 +150,9 @@ fi ...@@ -147,8 +150,9 @@ fi
%doc docs/storage-mgt/rp.ps %doc docs/storage-mgt/rp.ps
%doc docs/storage-mgt/sm.ps %doc docs/storage-mgt/sm.ps
%doc docs/users_guide/users_guide %doc docs/users_guide/users_guide
%doc html/* %doc docs/index.html
%doc libraries/Cabal/doc/Cabal %doc libraries/Cabal/doc/Cabal
%{_datadir}/ghc
%{_mandir}/man1/ghc.1* %{_mandir}/man1/ghc.1*
%{_prefix}/bin/ghc %{_prefix}/bin/ghc
%{_prefix}/bin/ghc-%{version} %{_prefix}/bin/ghc-%{version}
...@@ -159,7 +163,9 @@ fi ...@@ -159,7 +163,9 @@ fi
%{_prefix}/bin/ghcprof %{_prefix}/bin/ghcprof
%{_prefix}/bin/hasktags %{_prefix}/bin/hasktags
%{_prefix}/bin/hp2ps %{_prefix}/bin/hp2ps
%{_prefix}/bin/hpc
%{_prefix}/bin/hsc2hs-ghc %{_prefix}/bin/hsc2hs-ghc
%{_prefix}/bin/hsc2hs-%{version}
%{_prefix}/bin/runghc %{_prefix}/bin/runghc
%files prof -f rpm-prof-lib-files %files prof -f rpm-prof-lib-files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment