# This file is subject to the same free software license as GHC.
%define name ghc
-%define version @version@
+%define version @ProjectVersion@
%define release @release@
Name: %{name}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Prefix: %{_prefix}
Requires: gmp, readline
-BuildRequires: alex >= 2.0, happy >= 1.14, ghc >= 5, haddock, docbook-dtd, docbook-xsl-stylesheets, libxslt, libxml2, fop, xmltex, dvips, gmp, readline-devel
+BuildRequires: alex >= 2.0, happy >= 1.15, ghc >= 5, haddock, docbook-dtd, docbook-xsl-stylesheets, libxslt, libxml2, fop, xmltex, dvips, gmp, readline-devel, mesaglut-devel
Provides: haskell
Summary: The Glasgow Haskell Compiler
(GHC). They should be installed when GHC's profiling subsystem is
needed.
-%package doc
-Summary: Documentation for GHC
-Group: Documentation
-
-%description doc
-Preformatted documentation for the Glorious Glasgow Haskell
-Compilation System (GHC) and its libraries. It should be installed if
-you like to have local access to the documentation in PostScript and
-HTML format. Alternatively, the documentation is available online at
-
- http://haskell.org/ghc/documentation.html
-
%prep
%setup
%build
test -f configure || autoreconf
-./configure --prefix=%{prefix} --enable-hopengl
+./configure --prefix=%{prefix}
make
-make ps html
+make html
+make -C ghc/docs/ext-core ps
+make -C ghc/docs/storage-mgt ps
%install
make prefix=${RPM_BUILD_ROOT}%{prefix} install
%files -f rpm-noprof-lib-files
%defattr(-,root,root)
+%doc docs/docbook-cheat-sheet/docbook-cheat-sheet
%doc ghc/ANNOUNCE
%doc ghc/LICENSE
%doc ghc/README
+%doc ghc/docs/building/building
+%doc ghc/docs/ext-core/core.ps
+%doc ghc/docs/storage-mgt/ldv.ps
+%doc ghc/docs/storage-mgt/rp.ps
+%doc ghc/docs/storage-mgt/sm.ps
+%doc ghc/docs/users_guide/users_guide
+%doc hslibs/doc/hslibs
+%doc html/*
+%doc libraries/Cabal/doc/Cabal
%{prefix}/bin/ghc
%{prefix}/bin/ghc-%{version}
%{prefix}/bin/ghc-pkg
%{prefix}/bin/hp2ps
%{prefix}/bin/hsc2hs
%{prefix}/bin/runghc
+%{prefix}/bin/runhaskell
%{prefix}/bin/stat2resid
%files prof -f rpm-prof-lib-files
%defattr(-,root,root)
-
-%files doc
-%defattr(-,root,root)
-%doc docs/building/building
-%doc docs/building/building.ps
-%doc docs/docbook-cheat-sheet/docbook-cheat-sheet
-%doc docs/docbook-cheat-sheet/docbook-cheat-sheet.ps
-%doc ghc/docs/ext-core/core.ps
-%doc ghc/docs/storage-mgt/ldv.ps
-%doc ghc/docs/storage-mgt/rp.ps
-%doc ghc/docs/storage-mgt/sm.ps
-%doc ghc/docs/users_guide/users_guide
-%doc ghc/docs/users_guide/users_guide.ps
-%doc hslibs/doc/hslibs
-%doc hslibs/doc/hslibs.ps
-%doc html/*