]> TLD Linux GIT Repositories - packages/ghc.git/commitdiff
- from PLD, TLDized
authorMarcin Krol <hawk@tld-linux.org>
Sat, 21 Oct 2017 10:17:22 +0000 (10:17 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Sat, 21 Oct 2017 10:17:22 +0000 (10:17 +0000)
ghc-pkgdir.patch [new file with mode: 0644]
ghc-tld.patch [new file with mode: 0644]
ghc-use-ld.bfd.patch [new file with mode: 0644]
ghc-winpaths.patch [new file with mode: 0644]
ghc.spec [new file with mode: 0644]

diff --git a/ghc-pkgdir.patch b/ghc-pkgdir.patch
new file mode 100644 (file)
index 0000000..ed415e7
--- /dev/null
@@ -0,0 +1,20 @@
+--- ghc-6.12.3/libraries/Cabal/Cabal/Distribution/Simple/InstallDirs.hs~       2010-06-09 20:10:19.000000000 +0200
++++ ghc-6.12.3/libraries/Cabal/Cabal/Distribution/Simple/InstallDirs.hs        2010-08-26 21:28:52.969002660 +0200
+@@ -205,7 +205,7 @@
+ -- users to be able to configure @--libdir=\/usr\/lib64@ for example but
+ -- because by default we want to support installing multiple versions of
+ -- packages and building the same package for multiple compilers we append the
+--- libsubdir to get: @\/usr\/lib64\/$pkgid\/$compiler@.
++-- libsubdir to get: @\/usr\/lib64\/$compiler\/$pkgid@.
+ --
+ -- An additional complication is the need to support relocatable packages on
+ -- systems which support such things, like Windows.
+@@ -236,7 +236,7 @@
+            JHC    -> "$compiler"
+            LHC    -> "$compiler"
+            UHC    -> "$pkgid"
+-           _other -> "$pkgid" </> "$compiler",
++           _other -> "$compiler" </> "$pkgid",
+       dynlibdir    = "$libdir",
+       libexecdir   = case buildOS of
+         Windows   -> "$prefix" </> "$pkgid"
diff --git a/ghc-tld.patch b/ghc-tld.patch
new file mode 100644 (file)
index 0000000..5fe4800
--- /dev/null
@@ -0,0 +1,43 @@
+--- ghc-7.6.1/aclocal.m4.orig  2012-09-04 19:10:14.000000000 +0200
++++ ghc-7.6.1/aclocal.m4       2012-09-27 19:18:53.993056656 +0200
+@@ -154,7 +154,7 @@
+ [
+     checkArch() {
+         case [$]1 in
+-        i386)
++        i386|i486|i586|i686)
+             test -z "[$]2" || eval "[$]2=ArchX86"
+             ;;
+         x86_64)
+@@ -185,7 +185,7 @@
+     checkVendor() {
+         case [$]1 in
+-        dec|unknown|hp|apple|next|sun|sgi|ibm)
++        tld|dec|unknown|hp|apple|next|sun|sgi|ibm)
+             ;;
+         *)
+             echo "Unknown vendor [$]1"
+--- ghc-6.12.1/libraries/terminfo/configure.ac~        2009-09-15 08:09:05.000000000 +0200
++++ ghc-6.12.1/libraries/terminfo/configure.ac 2010-04-08 16:43:45.040705349 +0200
+@@ -13,7 +13,8 @@
+     [curses_libraries=NONE])
+-TERMINFO_INCLUDE_DIRS=
++TERMINFO_INCLUDE_DIRS=/usr/include/ncursesw
++CPPFLAGS="-I/usr/include/ncursesw $CPPFLAGS"
+ TERMINFO_LIB_DIRS=
+ if test "x$curses_libraries" != "xNONE"; then
+   LDFLAGS="-L$curses_libraries $LDFLAGS"
+--- ghc-7.2.1/driver/split/ghc-split.lprl~     2011-08-07 19:10:05.000000000 +0200
++++ ghc-7.2.1/driver/split/ghc-split.lprl      2011-09-26 11:13:36.907176266 +0200
+@@ -225,7 +225,7 @@
+                             if $TargetPlatform =~ /-apple-darwin/m;
+     return(&process_asm_block_m68k($str))  if $TargetPlatform =~ /^m68k-/m;
+     return(&process_asm_block_sparc($str)) if $TargetPlatform =~ /^sparc-/m;
+-    return(&process_asm_block_iX86($str))  if $TargetPlatform =~ /^i[34]86-/m;
++    return(&process_asm_block_iX86($str))  if $TargetPlatform =~ /^i[3456]86-/m;
+     return(&process_asm_block_x86_64($str))  if $TargetPlatform =~ /^x86_64-/m;
+     return(&process_asm_block_alpha($str)) if $TargetPlatform =~ /^alpha-/m;
+     return(&process_asm_block_hppa($str))  if $TargetPlatform =~ /^hppa/m;
diff --git a/ghc-use-ld.bfd.patch b/ghc-use-ld.bfd.patch
new file mode 100644 (file)
index 0000000..3501462
--- /dev/null
@@ -0,0 +1,11 @@
+--- ghc-7.6.3/libraries/Cabal/Cabal/Distribution/Simple/Program/Builtin.hs~    2013-04-18 23:32:04.000000000 +0200
++++ ghc-7.6.3/libraries/Cabal/Cabal/Distribution/Simple/Program/Builtin.hs     2013-05-31 11:01:32.228834060 +0200
+@@ -255,7 +255,7 @@
+ greencardProgram = simpleProgram "greencard"
+ ldProgram :: Program
+-ldProgram = simpleProgram "ld"
++ldProgram = simpleProgram "ld.bfd"
+ tarProgram :: Program
+ tarProgram = simpleProgram "tar"
diff --git a/ghc-winpaths.patch b/ghc-winpaths.patch
new file mode 100644 (file)
index 0000000..8239af3
--- /dev/null
@@ -0,0 +1,64 @@
+diff -ur ghc-7.2.1-winpaths/docs/users_guide/ghci.xml ghc-7.2.1/docs/users_guide/ghci.xml
+--- ghc-7.2.1-winpaths/docs/users_guide/ghci.xml       2011-09-26 17:55:05.824214356 +0200
++++ ghc-7.2.1/docs/users_guide/ghci.xml        2011-08-07 19:10:05.000000000 +0200
+@@ -126,7 +126,7 @@
+     directory of the shell from which it was started.  If you started
+     GHCi from the &ldquo;Start&rdquo; menu in Windows, then the
+     current directory is probably something like
+-    <filename>C:\Documents and Settings\<replaceable>user
++    <filename>C:\\Documents and Settings\\<replaceable>user
+     name</replaceable></filename>.</para> </footnote> then we will
+     need to change to the right directory in GHCi:</para>
+diff -ur ghc-7.2.1-winpaths/docs/users_guide/packages.xml ghc-7.2.1/docs/users_guide/packages.xml
+--- ghc-7.2.1-winpaths/docs/users_guide/packages.xml   2011-09-26 17:56:23.484450567 +0200
++++ ghc-7.2.1/docs/users_guide/packages.xml    2011-08-07 19:10:05.000000000 +0200
+@@ -396,7 +396,7 @@
+           systems this will be
+           <filename>$HOME/.ghc/<replaceable>arch</replaceable>-<replaceable>os</replaceable>-<replaceable>version</replaceable>/package.conf.d</filename>, and on
+           Windows it will be something like
+-          <filename>C:\Documents&nbsp;And&nbsp;Settings\<replaceable>user</replaceable>\ghc\package.conf.d</filename>.
++          <filename>C:\\Documents&nbsp;And&nbsp;Settings\\<replaceable>user</replaceable>\\ghc\\package.conf.d</filename>.
+           The <literal>ghc-pkg</literal> tool knows where this file should be
+           located, and will create it if it doesn't exist (see <xref linkend="package-management" />).</para>
+       </listitem>
+diff -ur ghc-7.2.1-winpaths/docs/users_guide/using.xml ghc-7.2.1/docs/users_guide/using.xml
+--- ghc-7.2.1-winpaths/docs/users_guide/using.xml      2011-09-26 17:58:56.791496986 +0200
++++ ghc-7.2.1/docs/users_guide/using.xml       2011-08-07 19:10:05.000000000 +0200
+@@ -72,7 +72,7 @@
+       by directory separators).  For example, the
+       module <literal>Data.Person</literal> would be in the
+       file <filename>Data/Person.hs</filename> on Unix/Linux/Mac,
+-      or <filename>Data\Person.hs</filename> on Windows.
++      or <filename>Data\\Person.hs</filename> on Windows.
+     </para>
+   </sect1>
+diff -ur ghc-7.2.1-winpaths/docs/users_guide/win32-dlls.xml ghc-7.2.1/docs/users_guide/win32-dlls.xml
+--- ghc-7.2.1-winpaths/docs/users_guide/win32-dlls.xml 2011-09-26 17:58:03.182366314 +0200
++++ ghc-7.2.1/docs/users_guide/win32-dlls.xml  2011-08-07 19:10:05.000000000 +0200
+@@ -14,7 +14,7 @@
+ Be aware of that <command>ghc</command> and <command>ghci</command> do
+ require filenames containing spaces to be escaped using quotes:
+ <programlisting>
+-  c:\ghc\bin\ghci "c:\\Program Files\\Haskell\\Project.hs"
++  c:\\ghc\\bin\\ghci "c:\\Program Files\\Haskell\\Project.hs"
+ </programlisting>
+ If the quotes are left off in the above command, <command>ghci</command> will
+ interpret the filename as two, "c:\\Program" and "Files\\Haskell\\Project.hs".
+@@ -134,13 +134,13 @@
+ unix-style API on top of the windows libraries, to facilitate ports of
+ unix software to windows. To this end, they introduce a unix-style
+ directory hierarchy under some root directory (typically
+-<filename>/</filename> is <filename>C:\cygwin\</filename>). Moreover,
++<filename>/</filename> is <filename>C:\\cygwin\\</filename>). Moreover,
+ everything built against the cygwin API (including the cygwin tools
+ and programs compiled with cygwin's ghc) will see / as the root of
+ their file system, happily pretending to work in a typical unix
+ environment, and finding things like <filename>/bin</filename> and <filename>/usr/include</filename> without
+ ever explicitly bothering with their actual location on the windows
+-system (probably <filename>C:\cygwin\bin</filename> and <filename>C:\cygwin\usr\include</filename>).
++system (probably <filename>C:\\cygwin\\bin</filename> and <filename>C:\\cygwin\\usr\\include</filename>).
+ </para>
+ </sect2>
diff --git a/ghc.spec b/ghc.spec
new file mode 100644 (file)
index 0000000..4e35a3b
--- /dev/null
+++ b/ghc.spec
@@ -0,0 +1,967 @@
+#
+# NOTE
+# - happy, alex needed only when using darcs checkout or regenerating parsers
+#   http://hackage.haskell.org/trac/ghc/wiki/Building/Prerequisites
+#
+# - http://hackage.haskell.org/trac/ghc/wiki/Building/Porting
+#
+# TODO:
+#      - teach ghc toolchain to always use ld.bfd,
+#        or fix ld.gold to be usable for anything else than c/c++
+#
+# Conditional build:
+%bcond_with    bootstrap       # use foreign (non-rpm) ghc to bootstrap (extra 140MB to download)
+%bcond_with    unregistered    # non-registerised interpreter (use for build problems/new arches)
+%bcond_without doc             # don't build documentation (requires haddock)
+
+# included ghc package versions:
+%define                gpv_Cabal               1.16.0
+%define                gpv_array               0.4.0.1
+%define                gpv_base                4.6.0.1
+%define                gpv_bin_package_db      0.0.0.0
+%define                gpv_binary              0.5.1.1
+%define                gpv_bytestring          0.10.0.2
+%define                gpv_containers          0.5.0.0
+%define                gpv_deepseq             1.3.0.1
+%define                gpv_directory           1.2.0.1
+%define                gpv_filepath            1.3.0.1
+%define                gpv_ghc_prim            0.3.0.0
+%define                gpv_haskell2010         1.1.1.0
+%define                gpv_haskell98           2.0.0.2
+%define                gpv_hoopl               3.9.0.0
+%define                gpv_hpc                 0.6.0.0
+%define                gpv_integer_gmp         0.5.0.0
+%define                gpv_old_locale          1.0.0.5
+%define                gpv_old_time            1.1.0.1
+%define                gpv_pretty              1.1.1.0
+%define                gpv_process             1.1.0.2
+%define                gpv_template_haskell    2.8.0.0
+%define                gpv_time                1.4.0.1
+%define                gpv_unix                2.6.0.1
+
+Summary:       Glasgow Haskell Compilation system
+Summary(pl.UTF-8):     System kompilacji Glasgow Haskell
+Name:          ghc
+Version:       7.6.3
+Release:       7
+License:       BSD-like w/o adv. clause
+Group:         Development/Languages
+Source0:       http://haskell.org/ghc/dist/%{version}/%{name}-%{version}-src.tar.bz2
+# Source0-md5: 986d1f90ca30d60f7b2820d75c6b8ea7
+%if %{with bootstrap}
+Source3:       http://haskell.org/ghc/dist/%{version}/%{name}-%{version}-i386-unknown-linux.tar.bz2
+# Source3-md5: 37019b712ec6e5fb0732c27fb43667ee
+Source4:       http://haskell.org/ghc/dist/%{version}/%{name}-%{version}-x86_64-unknown-linux.tar.bz2
+# Source4-md5: 5c142b86355cfd390cd36c292e416db5
+%endif
+Patch0:                %{name}-tld.patch
+Patch1:                %{name}-pkgdir.patch
+Patch2:                %{name}-winpaths.patch
+Patch3:                %{name}-use-ld.bfd.patch
+URL:           http://haskell.org/ghc/
+BuildRequires: OpenAL-devel
+BuildRequires: OpenGL-GLU-devel
+BuildRequires: OpenGL-devel
+BuildRequires: OpenGL-glut-devel
+%{!?with_bootstrap:BuildRequires:      alex >= 2.0}
+BuildRequires: freealut-devel
+%{!?with_bootstrap:BuildRequires:      ghc >= 6.8}
+BuildRequires: gmp-devel
+%{!?with_bootstrap:BuildRequires:      happy >= 1.16}
+BuildRequires: ncurses-devel
+BuildRequires: readline-devel
+BuildRequires: rpmbuild(macros) >= 1.607
+BuildRequires: sed >= 4.0
+%if %{with doc}
+BuildRequires: dblatex
+BuildRequires: docbook-dtd42-xml
+BuildRequires: docbook-style-xsl
+BuildRequires: libxml2-progs
+BuildRequires: libxslt-progs
+BuildRequires: texlive
+BuildRequires: texlive-dvips
+BuildRequires: texlive-fonts-rsfs
+BuildRequires: texlive-format-pdflatex
+BuildRequires: texlive-latex
+BuildRequires: texlive-latex-bibtex
+BuildRequires: texlive-latex-other
+BuildRequires: texlive-makeindex
+BuildRequires: texlive-tex4ht
+BuildRequires: texlive-xetex
+#For generating documentation in PDF: fop or xmltex
+%endif
+Suggests:      ghc-haskell-platform
+Provides:      ghc-Cabal = %{gpv_Cabal}
+Provides:      ghc-array = %{gpv_array}
+Provides:      ghc-base = %{gpv_base}
+Provides:      ghc-bin-package-db = %{gpv_bin_package_db}
+Provides:      ghc-binary = %{gpv_binary}
+Provides:      ghc-bytestring = %{gpv_bytestring}
+Provides:      ghc-containers = %{gpv_containers}
+Provides:      ghc-deepseq = %{gpv_deepseq}
+Provides:      ghc-directory = %{gpv_directory}
+Provides:      ghc-filepath = %{gpv_filepath}
+Provides:      ghc-ghc-prim = %{gpv_ghc_prim}
+Provides:      ghc-haskell2010 = %{gpv_haskell2010}
+Provides:      ghc-haskell98 = %{gpv_haskell98}
+Provides:      ghc-hoopl = %{gpv_hoopl}
+Provides:      ghc-hpc = %{gpv_hpc}
+Provides:      ghc-integer-gmp = %{gpv_integer_gmp}
+Provides:      ghc-old-locale = %{gpv_old_locale}
+Provides:      ghc-old-time = %{gpv_old_time}
+Provides:      ghc-pretty = %{gpv_pretty}
+Provides:      ghc-process = %{gpv_process}
+Provides:      ghc-template-haskell = %{gpv_template_haskell}
+Provides:      ghc-time = %{gpv_time}
+Provides:      ghc-unix = %{gpv_unix}
+Provides:      haddock
+Obsoletes:     haddock
+ExclusiveArch: %{ix86} %{x8664}
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# use ld.bfd
+%define                specflags       -fuse-ld=bfd
+
+# There is nothing that may or should be compressed
+%define                _noautocompressdoc      *
+
+%description
+Haskell is the standard lazy purely functional programming language.
+The current language version is Haskell 98, agreed in December 1998,
+with a revised version published in January 2003.
+
+GHC is a state-of-the-art programming suite for Haskell. Included is
+an optimising compiler generating good code for a variety of
+platforms, together with an interactive system for convenient, quick
+development. The distribution includes space and time profiling
+facilities, a large collection of libraries, and support for various
+language extensions, including concurrency, exceptions, and foreign
+language interfaces (C, C++, whatever).
+
+A wide variety of Haskell related resources (tutorials, libraries,
+specifications, documentation, compilers, interpreters, references,
+contact information, links to research groups) are available from the
+Haskell home page at <http://haskell.org/>.
+
+%description -l pl.UTF-8
+Haskell to standardowy leniwy i czysto funkcyjny język programowania.
+Bieżącą wersją języka jest Haskell 98, uzgodniony w grudniu 1998, ze
+zmodyfikowaną wersją opublikowaną w styczniu 2003.
+
+GHC to dojrzałe i nowoczesne środowisko do programowania w Haskellu.
+Zawiera optymalizujący kompilator generujący dobry kod dla różnych
+platform, wraz z interakcyjnym systemem do wygodnego
+eksperymentowania. Dystrybucja zawiera narzędzia do profilowania
+zużycia pamięci i czasu, sporą kolekcję bibliotek i wsparcie dla
+różnych rozszerzeń języka, w tym współbieżności, wyjątków i łączenia z
+innymi językami (np. C albo C++).
+
+Różnorodne zasoby związane z Haskellem (podręczniki, biblioteki,
+specyfikacje, dokumentacja, kompilatory, interpretery, literatura,
+informacje kontaktowe, odsyłacze do grup naukowo-badawczych) są
+dostępne ze strony domowej Haskella pod <http://haskell.org/>.
+
+%package prof
+Summary:       Profiling libraries for GHC
+Summary(pl.UTF-8):     Biblioteki profilujące dla GHC
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Provides:      ghc-Cabal-prof = %{gpv_Cabal}
+Provides:      ghc-array-prof = %{gpv_array}
+Provides:      ghc-base-prof = %{gpv_base}
+Provides:      ghc-bin-package-db-prof = %{gpv_bin_package_db}
+Provides:      ghc-binary-prof = %{gpv_binary}
+Provides:      ghc-bytestring-prof = %{gpv_bytestring}
+Provides:      ghc-containers-prof = %{gpv_containers}
+Provides:      ghc-deepseq-prof = %{gpv_deepseq}
+Provides:      ghc-directory-prof = %{gpv_directory}
+Provides:      ghc-filepath-prof = %{gpv_filepath}
+Provides:      ghc-ghc-prim-prof = %{gpv_ghc_prim}
+Provides:      ghc-haskell2010-prof = %{gpv_haskell2010}
+Provides:      ghc-haskell98-prof = %{gpv_haskell98}
+Provides:      ghc-hoopl-prof = %{gpv_hoopl}
+Provides:      ghc-hpc-prof = %{gpv_hpc}
+Provides:      ghc-integer-gmp-prof = %{gpv_integer_gmp}
+Provides:      ghc-old-locale-prof = %{gpv_old_locale}
+Provides:      ghc-old-time-prof = %{gpv_old_time}
+Provides:      ghc-pretty-prof = %{gpv_pretty}
+Provides:      ghc-process-prof = %{gpv_process}
+Provides:      ghc-template-haskell-prof = %{gpv_template_haskell}
+Provides:      ghc-time-prof = %{gpv_time}
+Provides:      ghc-unix-prof = %{gpv_unix}
+
+%description prof
+Profiling libraries for Glorious Glasgow Haskell Compilation System
+(GHC). They should be installed when GHC's profiling subsystem is
+needed.
+
+%description prof -l pl.UTF-8
+Biblioteki profilujące dla GHC. Powinny być zainstalowane kiedy
+potrzebujemy systemu profilującego z GHC.
+
+%package doc
+Summary:       Documentation for GHC
+Summary(pl.UTF-8):     Dokumentacja do GHC
+Group:         Documentation
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
+
+%description doc
+Documentation for GHC.
+
+%description doc -l pl.UTF-8
+Dokumentacja do GHC.
+
+%prep
+%setup -q
+%if %{with bootstrap}
+%ifarch %{ix86}
+%{__tar} -xjf %{SOURCE3}
+%endif
+%ifarch %{x8664}
+%{__tar} -xjf %{SOURCE4}
+%endif
+mv %{name}-%{version} binsrc
+%endif
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+%build
+# use ld.bfd
+install -d our-ld
+ln -s %{_bindir}/ld.bfd our-ld/ld
+export PATH=$(pwd)/our-ld:$PATH
+
+%{__autoconf}
+cd libraries/terminfo
+%{__autoconf}
+cd -
+
+cat <<'EOF' > mk/build.mk
+#GhcStage1HcOpts += -O0 -Wall
+#GhcStage2HcOpts += -O0 -Wall
+#SRC_HC_OPTS      += -lffi -O0 -H64m
+#GhcHcOpts        += -Rghc-timing
+#GhcLibHcOpts     += -O -dcore-lint -keep-hc-files
+#SplitObjs        += NO
+PlatformSupportsSharedLibs = YES
+HADDOCK_DOCS        = %{!?with_doc:NO}%{?with_doc:YES}
+LATEX_DOCS          = %{!?with_doc:NO}%{?with_doc:YES}
+BUILD_DOCBOOK_HTMLS = %{!?with_doc:NO}%{?with_doc:YES}
+BUILD_DOCBOOK_PDFS  = %{!?with_doc:NO}%{?with_doc:YES}
+XSLTPROC_OPTS       += --nonet
+EOF
+
+%if %{with unregistered}
+# An unregisterised build is one that compiles via vanilla C only
+# http://hackage.haskell.org/trac/ghc/wiki/Building/Unregisterised
+cat <<'EOF' >> mk/build.mk
+GhcUnregisterised=YES
+GhcWithNativeCodeGen=NO
+SplitObjs=NO
+EOF
+%endif
+
+top=$(pwd)
+%if %{with bootstrap}
+# we need to first install the tarball somewhere, as seems the programs don't
+# work out of the path otherwise
+if [ ! -f .bindist.install.mark ]; then
+       top=$(pwd)
+       cd binsrc
+       ./configure \
+               --prefix=$top/bindist
+       %{__make} install \
+               LATEX_DOCS=NO \
+               HADDOCK_DOCS=NO
+       cd ..
+
+       touch .bindist.install.mark
+fi
+
+PATH=$top/bindist/bin:$PATH:%{_prefix}/local/bin
+%endif
+
+%configure \
+       CONF_GCC_LINKER_OPTS_STAGE0="-fuse-ld=bfd" \
+       CONF_GCC_LINKER_OPTS_STAGE1="-fuse-ld=bfd" \
+       CONF_GCC_LINKER_OPTS_STAGE2="-fuse-ld=bfd" \
+       --target=%{_target_platform} \
+       --prefix=%{_prefix} \
+       --with-gcc="%{__cc}" \
+       --with-ld=/usr/bin/ld.bfd \
+       --with-nm=/usr/bin/nm \
+%if %{with bootstrap}
+       GhcPkgCmd=$top/bindist/bin/ghc-pkg \
+%endif
+%if %{with bootstrap2}
+       --with-ghc=$top/bindist/bin/ghc \
+%endif
+%if %{with bootstrap1}
+       --with-hc=$PWD/bindist/bin/ghc \
+       --with-ghc=$PWD/bindist/ghc/dist-stage2/build/ghc/ghc \
+       --with-hc=$PWD/bindist/ghc/dist-stage2/build/ghc/ghc \
+%endif
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+rm -rf docs-root
+
+%{__make} -j1 install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+mv -f $RPM_BUILD_ROOT%{_docdir}/%{name} docs-root
+
+# fix paths to docs in package list
+sed -i -e 's|%{_datadir}/doc/%{name}|%{_docdir}/%{name}-%{version}|g' $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/package.conf.d/*.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%ghc_pkg_recache
+
+%postun
+if [ "$1" != 0 ]; then
+       %ghc_pkg_recache
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc ANNOUNCE README
+%attr(755,root,root) %{_bindir}/ghc
+%attr(755,root,root) %{_bindir}/ghc-%{version}
+%attr(755,root,root) %{_bindir}/ghc-pkg
+%attr(755,root,root) %{_bindir}/ghc-pkg-%{version}
+%attr(755,root,root) %{_bindir}/ghci
+%attr(755,root,root) %{_bindir}/ghci-%{version}
+%attr(755,root,root) %{_bindir}/haddock
+%attr(755,root,root) %{_bindir}/haddock-ghc-%{version}
+%attr(755,root,root) %{_bindir}/hp2ps
+%attr(755,root,root) %{_bindir}/hpc
+%attr(755,root,root) %{_bindir}/hsc2hs
+%attr(755,root,root) %{_bindir}/runghc
+%attr(755,root,root) %{_bindir}/runghc-%{version}
+%attr(755,root,root) %{_bindir}/runhaskell
+%dir %{_libdir}/ghc-%{version}
+%attr(755,root,root) %{_libdir}/ghc-%{version}/ghc
+%attr(755,root,root) %{_libdir}/ghc-%{version}/ghc-pkg
+%attr(755,root,root) %{_libdir}/ghc-%{version}/ghc-split
+%if %{with doc}
+%attr(755,root,root) %{_libdir}/ghc-%{version}/haddock
+%endif
+%attr(755,root,root) %{_libdir}/ghc-%{version}/hsc2hs
+%attr(755,root,root) %{_libdir}/ghc-%{version}/runghc
+%attr(755,root,root) %{_libdir}/ghc-%{version}/unlit
+%{_libdir}/ghc-%{version}/libHSrts.a
+%{_libdir}/ghc-%{version}/libHSrts_debug.a
+%{_libdir}/ghc-%{version}/libHSrts_l.a
+%{_libdir}/ghc-%{version}/libHSrts_thr.a
+%{_libdir}/ghc-%{version}/libHSrts_thr_debug.a
+%{_libdir}/ghc-%{version}/libHSrts_thr_l.a
+%{_libdir}/ghc-%{version}/ghc*-usage.txt
+%{_libdir}/ghc-%{version}/settings
+%{_libdir}/ghc-%{version}/template-hsc.h
+%{_libdir}/ghc-%{version}/include
+%if %{with doc}
+%{_libdir}/ghc-%{version}/html
+%dir %{_libdir}/ghc-%{version}/latex
+%{_libdir}/ghc-%{version}/latex/haddock.sty
+%endif
+%dir %{_libdir}/ghc-%{version}/package.conf.d
+%ghost %{_libdir}/ghc-%{version}/package.conf.d/package.cache
+%{_mandir}/man1/ghc.1*
+
+%{_libdir}/ghc-%{version}/package.conf.d/Cabal-%{gpv_Cabal}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/array-%{gpv_array}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/base-%{gpv_base}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/bin-package-db-%{gpv_bin_package_db}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/binary-%{gpv_binary}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/builtin_rts.conf
+%{_libdir}/ghc-%{version}/package.conf.d/bytestring-%{gpv_bytestring}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/containers-%{gpv_containers}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/deepseq-%{gpv_deepseq}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/directory-%{gpv_directory}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/filepath-%{gpv_filepath}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/ghc-%{version}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/ghc-prim-%{gpv_ghc_prim}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/haskell2010-%{gpv_haskell2010}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/haskell98-%{gpv_haskell98}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/hoopl-%{gpv_hoopl}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/hpc-%{gpv_hpc}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/integer-gmp-%{gpv_integer_gmp}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/old-locale-%{gpv_old_locale}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/old-time-%{gpv_old_time}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/pretty-%{gpv_pretty}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/process-%{gpv_process}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/template-haskell-%{gpv_template_haskell}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/time-%{gpv_time}-*.conf
+%{_libdir}/ghc-%{version}/package.conf.d/unix-%{gpv_unix}-*.conf
+
+%dir %{_libdir}/ghc-%{version}/Cabal-*
+%{_libdir}/ghc-%{version}/Cabal-*/HSCabal-%{gpv_Cabal}.o
+%{_libdir}/ghc-%{version}/Cabal-*/libHSCabal-%{gpv_Cabal}.a
+%{_libdir}/ghc-%{version}/Cabal-*/*.hi
+%dir %{_libdir}/ghc-%{version}/Cabal-*/Distribution
+%{_libdir}/ghc-%{version}/Cabal-*/Distribution/*.hi
+%dir %{_libdir}/ghc-%{version}/Cabal-*/Distribution/Compat
+%{_libdir}/ghc-%{version}/Cabal-*/Distribution/Compat/*.hi
+%dir %{_libdir}/ghc-%{version}/Cabal-*/Distribution/PackageDescription
+%{_libdir}/ghc-%{version}/Cabal-*/Distribution/PackageDescription/*.hi
+%dir %{_libdir}/ghc-%{version}/Cabal-*/Distribution/Simple
+%{_libdir}/ghc-%{version}/Cabal-*/Distribution/Simple/*.hi
+%dir %{_libdir}/ghc-%{version}/Cabal-*/Distribution/Simple/Build
+%{_libdir}/ghc-%{version}/Cabal-*/Distribution/Simple/Build/*.hi
+%dir %{_libdir}/ghc-%{version}/Cabal-*/Distribution/Simple/GHC
+%{_libdir}/ghc-%{version}/Cabal-*/Distribution/Simple/GHC/*.hi
+%dir %{_libdir}/ghc-%{version}/Cabal-*/Distribution/Simple/PreProcess
+%{_libdir}/ghc-%{version}/Cabal-*/Distribution/Simple/PreProcess/*.hi
+%dir %{_libdir}/ghc-%{version}/Cabal-*/Distribution/Simple/Program
+%{_libdir}/ghc-%{version}/Cabal-*/Distribution/Simple/Program/*.hi
+%dir %{_libdir}/ghc-%{version}/Cabal-*/Language
+%dir %{_libdir}/ghc-%{version}/Cabal-*/Language/Haskell
+%{_libdir}/ghc-%{version}/Cabal-*/Language/Haskell/*.hi
+
+%dir %{_libdir}/ghc-%{version}/array-*
+%{_libdir}/ghc-%{version}/array-*/HSarray-%{gpv_array}.o
+%{_libdir}/ghc-%{version}/array-*/libHSarray-%{gpv_array}.a
+%dir %{_libdir}/ghc-%{version}/array-*/Data
+%{_libdir}/ghc-%{version}/array-*/Data/*.hi
+%dir %{_libdir}/ghc-%{version}/array-*/Data/Array
+%{_libdir}/ghc-%{version}/array-*/Data/Array/*.hi
+%dir %{_libdir}/ghc-%{version}/array-*/Data/Array/IO
+%{_libdir}/ghc-%{version}/array-*/Data/Array/IO/*.hi
+%dir %{_libdir}/ghc-%{version}/array-*/Data/Array/MArray
+%{_libdir}/ghc-%{version}/array-*/Data/Array/MArray/*.hi
+%dir %{_libdir}/ghc-%{version}/array-*/Data/Array/ST
+%{_libdir}/ghc-%{version}/array-*/Data/Array/ST/*.hi
+%dir %{_libdir}/ghc-%{version}/array-*/Data/Array/Storable
+%{_libdir}/ghc-%{version}/array-*/Data/Array/Storable/*.hi
+
+%dir %{_libdir}/ghc-%{version}/base-*
+%{_libdir}/ghc-%{version}/base-*/HSbase-%{gpv_base}.o
+%{_libdir}/ghc-%{version}/base-*/libHSbase-%{gpv_base}.a
+%{_libdir}/ghc-%{version}/base-*/include
+%{_libdir}/ghc-%{version}/base-*/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Control
+%{_libdir}/ghc-%{version}/base-*/Control/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Control/Concurrent
+%{_libdir}/ghc-%{version}/base-*/Control/Concurrent/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Control/Exception
+%{_libdir}/ghc-%{version}/base-*/Control/Exception/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Control/Monad
+%{_libdir}/ghc-%{version}/base-*/Control/Monad/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Control/Monad/ST
+%{_libdir}/ghc-%{version}/base-*/Control/Monad/ST/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Control/Monad/ST/Lazy
+%{_libdir}/ghc-%{version}/base-*/Control/Monad/ST/Lazy/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Data
+%{_libdir}/ghc-%{version}/base-*/Data/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Data/STRef
+%{_libdir}/ghc-%{version}/base-*/Data/STRef/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Data/Typeable
+%{_libdir}/ghc-%{version}/base-*/Data/Typeable/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Debug
+%{_libdir}/ghc-%{version}/base-*/Debug/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Foreign
+%{_libdir}/ghc-%{version}/base-*/Foreign/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Foreign/C
+%{_libdir}/ghc-%{version}/base-*/Foreign/C/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Foreign/ForeignPtr
+%{_libdir}/ghc-%{version}/base-*/Foreign/ForeignPtr/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Foreign/Marshal
+%{_libdir}/ghc-%{version}/base-*/Foreign/Marshal/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/GHC
+%{_libdir}/ghc-%{version}/base-*/GHC/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/GHC/Conc
+%{_libdir}/ghc-%{version}/base-*/GHC/Conc/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/GHC/IO
+%{_libdir}/ghc-%{version}/base-*/GHC/IO/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/GHC/IO/Encoding
+%{_libdir}/ghc-%{version}/base-*/GHC/IO/Encoding/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/GHC/Event
+%{_libdir}/ghc-%{version}/base-*/GHC/Event/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/GHC/Fingerprint
+%{_libdir}/ghc-%{version}/base-*/GHC/Fingerprint/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/GHC/Float
+%{_libdir}/ghc-%{version}/base-*/GHC/Float/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/GHC/IO/Handle
+%{_libdir}/ghc-%{version}/base-*/GHC/IO/Handle/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/System
+%{_libdir}/ghc-%{version}/base-*/System/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/System/Console
+%{_libdir}/ghc-%{version}/base-*/System/Console/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/System/Environment
+%{_libdir}/ghc-%{version}/base-*/System/Environment/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/System/IO
+%{_libdir}/ghc-%{version}/base-*/System/IO/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/System/Mem
+%{_libdir}/ghc-%{version}/base-*/System/Mem/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/System/Posix
+%{_libdir}/ghc-%{version}/base-*/System/Posix/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Text
+%{_libdir}/ghc-%{version}/base-*/Text/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Text/ParserCombinators
+%{_libdir}/ghc-%{version}/base-*/Text/ParserCombinators/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Text/Read
+%{_libdir}/ghc-%{version}/base-*/Text/Read/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Text/Show
+%{_libdir}/ghc-%{version}/base-*/Text/Show/*.hi
+%dir %{_libdir}/ghc-%{version}/base-*/Unsafe
+%{_libdir}/ghc-%{version}/base-*/Unsafe/*.hi
+
+%dir %{_libdir}/ghc-%{version}/bin-package-db-*
+%{_libdir}/ghc-%{version}/bin-package-db-*/HSbin-package-db-%{gpv_bin_package_db}.o
+%{_libdir}/ghc-%{version}/bin-package-db-*/libHSbin-package-db-%{gpv_bin_package_db}.a
+%dir %{_libdir}/ghc-%{version}/bin-package-db-*/Distribution
+%dir %{_libdir}/ghc-%{version}/bin-package-db-*/Distribution/InstalledPackageInfo
+%{_libdir}/ghc-%{version}/bin-package-db-*/Distribution/InstalledPackageInfo/*.hi
+
+%dir %{_libdir}/ghc-%{version}/binary-*
+%{_libdir}/ghc-%{version}/binary-*/HSbinary-%{gpv_binary}.o
+%{_libdir}/ghc-%{version}/binary-*/libHSbinary-%{gpv_binary}.a
+%dir %{_libdir}/ghc-%{version}/binary-*/Data
+%{_libdir}/ghc-%{version}/binary-*/Data/*.hi
+%dir %{_libdir}/ghc-%{version}/binary-*/Data/Binary
+%{_libdir}/ghc-%{version}/binary-*/Data/Binary/*.hi
+%dir %{_libdir}/ghc-%{version}/binary-*/Data/Binary/Builder
+%{_libdir}/ghc-%{version}/binary-*/Data/Binary/Builder/*.hi
+
+%dir %{_libdir}/ghc-%{version}/bytestring-*
+%{_libdir}/ghc-%{version}/bytestring-*/HSbytestring-%{gpv_bytestring}.o
+%{_libdir}/ghc-%{version}/bytestring-*/libHSbytestring-%{gpv_bytestring}.a
+%{_libdir}/ghc-%{version}/bytestring-*/include
+%dir %{_libdir}/ghc-%{version}/bytestring-*/Data
+%{_libdir}/ghc-%{version}/bytestring-*/Data/*.hi
+%dir %{_libdir}/ghc-%{version}/bytestring-*/Data/ByteString
+%{_libdir}/ghc-%{version}/bytestring-*/Data/ByteString/*.hi
+%dir %{_libdir}/ghc-%{version}/bytestring-*/Data/ByteString/Lazy
+%{_libdir}/ghc-%{version}/bytestring-*/Data/ByteString/Lazy/*.hi
+%dir %{_libdir}/ghc-%{version}/bytestring-*/Data/ByteString/Lazy/Builder
+%{_libdir}/ghc-%{version}/bytestring-*/Data/ByteString/Lazy/Builder/*.hi
+%dir %{_libdir}/ghc-%{version}/bytestring-*/Data/ByteString/Lazy/Builder/BasicEncoding
+%{_libdir}/ghc-%{version}/bytestring-*/Data/ByteString/Lazy/Builder/BasicEncoding/*.hi
+%dir %{_libdir}/ghc-%{version}/bytestring-*/Data/ByteString/Lazy/Builder/BasicEncoding/Internal
+%{_libdir}/ghc-%{version}/bytestring-*/Data/ByteString/Lazy/Builder/BasicEncoding/Internal/*.hi
+
+%dir %{_libdir}/ghc-%{version}/containers-*
+%{_libdir}/ghc-%{version}/containers-*/HScontainers-%{gpv_containers}.o
+%{_libdir}/ghc-%{version}/containers-*/libHScontainers-%{gpv_containers}.a
+%dir %{_libdir}/ghc-%{version}/containers-*/Data
+%{_libdir}/ghc-%{version}/containers-*/Data/*.hi
+%dir %{_libdir}/ghc-%{version}/containers-*/Data/IntMap
+%{_libdir}/ghc-%{version}/containers-*/Data/IntMap/*.hi
+%dir %{_libdir}/ghc-%{version}/containers-*/Data/IntSet
+%{_libdir}/ghc-%{version}/containers-*/Data/IntSet/*.hi
+%dir %{_libdir}/ghc-%{version}/containers-*/Data/Map
+%{_libdir}/ghc-%{version}/containers-*/Data/Map/*.hi
+%dir %{_libdir}/ghc-%{version}/containers-*/Data/Set
+%{_libdir}/ghc-%{version}/containers-*/Data/Set/*.hi
+
+%dir %{_libdir}/ghc-%{version}/deepseq-*
+%{_libdir}/ghc-%{version}/deepseq-*/HSdeepseq-%{gpv_deepseq}.o
+%{_libdir}/ghc-%{version}/deepseq-*/libHSdeepseq-%{gpv_deepseq}.a
+%dir %{_libdir}/ghc-%{version}/deepseq-*/Control
+%{_libdir}/ghc-%{version}/deepseq-*/Control/*.hi
+
+%dir %{_libdir}/ghc-%{version}/directory-*
+%{_libdir}/ghc-%{version}/directory-*/HSdirectory-%{gpv_directory}.o
+%{_libdir}/ghc-%{version}/directory-*/libHSdirectory-%{gpv_directory}.a
+%{_libdir}/ghc-%{version}/directory-*/include
+%dir %{_libdir}/ghc-%{version}/directory-*/System
+%{_libdir}/ghc-%{version}/directory-*/System/*.hi
+
+%dir %{_libdir}/ghc-%{version}/filepath-*
+%{_libdir}/ghc-%{version}/filepath-*/HSfilepath-%{gpv_filepath}.o
+%{_libdir}/ghc-%{version}/filepath-*/libHSfilepath-%{gpv_filepath}.a
+%dir %{_libdir}/ghc-%{version}/filepath-*/System
+%{_libdir}/ghc-%{version}/filepath-*/System/*.hi
+%dir %{_libdir}/ghc-%{version}/filepath-*/System/FilePath
+%{_libdir}/ghc-%{version}/filepath-*/System/FilePath/*.hi
+
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}
+%{_libdir}/ghc-%{version}/ghc-%{version}/libHSghc-%{version}.a
+%{_libdir}/ghc-%{version}/ghc-%{version}/include
+%{_libdir}/ghc-%{version}/ghc-%{version}/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/Hoopl
+%{_libdir}/ghc-%{version}/ghc-%{version}/Hoopl/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/Llvm
+%{_libdir}/ghc-%{version}/ghc-%{version}/Llvm/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/LlvmCodeGen
+%{_libdir}/ghc-%{version}/ghc-%{version}/LlvmCodeGen/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/PPC
+%{_libdir}/ghc-%{version}/ghc-%{version}/PPC/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/SPARC
+%{_libdir}/ghc-%{version}/ghc-%{version}/SPARC/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/SPARC/CodeGen
+%{_libdir}/ghc-%{version}/ghc-%{version}/SPARC/CodeGen/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/X86
+%{_libdir}/ghc-%{version}/ghc-%{version}/X86/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc
+%{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/Graph
+%{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/Graph/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/Linear
+%{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/Linear/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/Linear/PPC
+%{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/Linear/PPC/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/Linear/SPARC
+%{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/Linear/SPARC/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/Linear/X86
+%{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/Linear/X86/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise
+%{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/Builtins
+%{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/Builtins/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/Generic
+%{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/Generic/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/Monad
+%{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/Monad/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/Type
+%{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/Type/*.hi
+%dir %{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/Utils
+%{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/Utils/*.hi
+
+%dir %{_libdir}/ghc-%{version}/ghc-prim-*
+%{_libdir}/ghc-%{version}/ghc-prim-*/HSghc-prim-%{gpv_ghc_prim}.o
+%{_libdir}/ghc-%{version}/ghc-prim-*/libHSghc-prim-%{gpv_ghc_prim}.a
+%dir %{_libdir}/ghc-%{version}/ghc-prim-*/GHC
+%{_libdir}/ghc-%{version}/ghc-prim-*/GHC/*.hi
+
+%dir %{_libdir}/ghc-%{version}/haskell2010-*
+%{_libdir}/ghc-%{version}/haskell2010-*/HShaskell2010-%{gpv_haskell2010}.o
+%{_libdir}/ghc-%{version}/haskell2010-*/libHShaskell2010-%{gpv_haskell2010}.a
+%{_libdir}/ghc-%{version}/haskell2010-*/*.hi
+%dir %{_libdir}/ghc-%{version}/haskell2010-*/Control
+%{_libdir}/ghc-%{version}/haskell2010-*/Control/*.hi
+%dir %{_libdir}/ghc-%{version}/haskell2010-*/Data
+%{_libdir}/ghc-%{version}/haskell2010-*/Data/*.hi
+%dir %{_libdir}/ghc-%{version}/haskell2010-*/Foreign
+%{_libdir}/ghc-%{version}/haskell2010-*/Foreign/*.hi
+%dir %{_libdir}/ghc-%{version}/haskell2010-*/Foreign/C
+%{_libdir}/ghc-%{version}/haskell2010-*/Foreign/C/*.hi
+%dir %{_libdir}/ghc-%{version}/haskell2010-*/Foreign/Marshal
+%{_libdir}/ghc-%{version}/haskell2010-*/Foreign/Marshal/*.hi
+%dir %{_libdir}/ghc-%{version}/haskell2010-*/System
+%{_libdir}/ghc-%{version}/haskell2010-*/System/*.hi
+%dir %{_libdir}/ghc-%{version}/haskell2010-*/System/IO
+%{_libdir}/ghc-%{version}/haskell2010-*/System/IO/*.hi
+
+%dir %{_libdir}/ghc-%{version}/haskell98-*
+%{_libdir}/ghc-%{version}/haskell98-*/HShaskell98-%{gpv_haskell98}.o
+%{_libdir}/ghc-%{version}/haskell98-*/libHShaskell98-%{gpv_haskell98}.a
+%{_libdir}/ghc-%{version}/haskell98-*/*.hi
+
+%dir %{_libdir}/ghc-%{version}/hoopl-*
+%{_libdir}/ghc-%{version}/hoopl-*/HShoopl-%{gpv_hoopl}.o
+%{_libdir}/ghc-%{version}/hoopl-*/libHShoopl-%{gpv_hoopl}.a
+%dir %{_libdir}/ghc-%{version}/hoopl-*/Compiler
+%{_libdir}/ghc-%{version}/hoopl-*/Compiler/*.hi
+%dir %{_libdir}/ghc-%{version}/hoopl-*/Compiler/Hoopl
+%{_libdir}/ghc-%{version}/hoopl-*/Compiler/Hoopl/*.hi
+%dir %{_libdir}/ghc-%{version}/hoopl-*/Compiler/Hoopl/Passes
+%{_libdir}/ghc-%{version}/hoopl-*/Compiler/Hoopl/Passes/*.hi
+
+%dir %{_libdir}/ghc-%{version}/hpc-*
+%{_libdir}/ghc-%{version}/hpc-*/HShpc-%{gpv_hpc}.o
+%{_libdir}/ghc-%{version}/hpc-*/libHShpc-%{gpv_hpc}.a
+%dir %{_libdir}/ghc-%{version}/hpc-*/Trace
+%dir %{_libdir}/ghc-%{version}/hpc-*/Trace/Hpc
+%{_libdir}/ghc-%{version}/hpc-*/Trace/Hpc/*.hi
+
+%dir %{_libdir}/ghc-%{version}/integer-gmp-*
+%{_libdir}/ghc-%{version}/integer-gmp-*/HSinteger-gmp-%{gpv_integer_gmp}.o
+%{_libdir}/ghc-%{version}/integer-gmp-*/libHSinteger-gmp-%{gpv_integer_gmp}.a
+%dir %{_libdir}/ghc-%{version}/integer-gmp-*/GHC
+%{_libdir}/ghc-%{version}/integer-gmp-*/GHC/*.hi
+%dir %{_libdir}/ghc-%{version}/integer-gmp-*/GHC/Integer
+%{_libdir}/ghc-%{version}/integer-gmp-*/GHC/Integer/*.hi
+%dir %{_libdir}/ghc-%{version}/integer-gmp-*/GHC/Integer/GMP
+%{_libdir}/ghc-%{version}/integer-gmp-*/GHC/Integer/GMP/*.hi
+%dir %{_libdir}/ghc-%{version}/integer-gmp-*/GHC/Integer/Logarithms
+%{_libdir}/ghc-%{version}/integer-gmp-*/GHC/Integer/Logarithms/*.hi
+
+%dir %{_libdir}/ghc-%{version}/old-locale-*
+%{_libdir}/ghc-%{version}/old-locale-*/HSold-locale-%{gpv_old_locale}.o
+%{_libdir}/ghc-%{version}/old-locale-*/libHSold-locale-%{gpv_old_locale}.a
+%dir %{_libdir}/ghc-%{version}/old-locale-*/System
+%{_libdir}/ghc-%{version}/old-locale-*/System/*.hi
+
+%dir %{_libdir}/ghc-%{version}/old-time-*
+%{_libdir}/ghc-%{version}/old-time-*/HSold-time-%{gpv_old_time}.o
+%{_libdir}/ghc-%{version}/old-time-*/libHSold-time-%{gpv_old_time}.a
+%{_libdir}/ghc-%{version}/old-time-*/include
+%dir %{_libdir}/ghc-%{version}/old-time-*/System
+%{_libdir}/ghc-%{version}/old-time-*/System/*.hi
+
+%dir %{_libdir}/ghc-%{version}/pretty-*
+%{_libdir}/ghc-%{version}/pretty-*/HSpretty-%{gpv_pretty}.o
+%{_libdir}/ghc-%{version}/pretty-*/libHSpretty-%{gpv_pretty}.a
+%dir %{_libdir}/ghc-%{version}/pretty-*/Text
+%{_libdir}/ghc-%{version}/pretty-*/Text/*.hi
+%dir %{_libdir}/ghc-%{version}/pretty-*/Text/PrettyPrint
+%{_libdir}/ghc-%{version}/pretty-*/Text/PrettyPrint/*.hi
+
+%dir %{_libdir}/ghc-%{version}/process-*
+%{_libdir}/ghc-%{version}/process-*/HSprocess-%{gpv_process}.o
+%{_libdir}/ghc-%{version}/process-*/libHSprocess-%{gpv_process}.a
+%{_libdir}/ghc-%{version}/process-*/include
+%dir %{_libdir}/ghc-%{version}/process-*/System
+%{_libdir}/ghc-%{version}/process-*/System/*.hi
+%dir %{_libdir}/ghc-%{version}/process-*/System/Process
+%{_libdir}/ghc-%{version}/process-*/System/Process/*.hi
+
+%dir %{_libdir}/ghc-%{version}/template-haskell-*
+%{_libdir}/ghc-%{version}/template-haskell-*/HStemplate-haskell-%{gpv_template_haskell}.o
+%{_libdir}/ghc-%{version}/template-haskell-*/libHStemplate-haskell-%{gpv_template_haskell}.a
+%dir %{_libdir}/ghc-%{version}/template-haskell-*/Language
+%dir %{_libdir}/ghc-%{version}/template-haskell-*/Language/Haskell
+%{_libdir}/ghc-%{version}/template-haskell-*/Language/Haskell/*.hi
+%dir %{_libdir}/ghc-%{version}/template-haskell-*/Language/Haskell/TH
+%{_libdir}/ghc-%{version}/template-haskell-*/Language/Haskell/TH/*.hi
+
+%dir %{_libdir}/ghc-%{version}/time-*
+%{_libdir}/ghc-%{version}/time-*/HStime-%{gpv_time}.o
+%{_libdir}/ghc-%{version}/time-*/libHStime-%{gpv_time}.a
+%{_libdir}/ghc-%{version}/time-*/include
+%dir %{_libdir}/ghc-%{version}/time-*/Data
+%{_libdir}/ghc-%{version}/time-*/Data/*.hi
+%dir %{_libdir}/ghc-%{version}/time-*/Data/Time
+%{_libdir}/ghc-%{version}/time-*/Data/Time/*.hi
+%dir %{_libdir}/ghc-%{version}/time-*/Data/Time/Calendar
+%{_libdir}/ghc-%{version}/time-*/Data/Time/Calendar/*.hi
+%dir %{_libdir}/ghc-%{version}/time-*/Data/Time/Clock
+%{_libdir}/ghc-%{version}/time-*/Data/Time/Clock/*.hi
+%dir %{_libdir}/ghc-%{version}/time-*/Data/Time/Format
+%{_libdir}/ghc-%{version}/time-*/Data/Time/Format/*.hi
+%dir %{_libdir}/ghc-%{version}/time-*/Data/Time/LocalTime
+%{_libdir}/ghc-%{version}/time-*/Data/Time/LocalTime/*.hi
+
+%dir %{_libdir}/ghc-%{version}/unix-*
+%{_libdir}/ghc-%{version}/unix-*/HSunix-%{gpv_unix}.o
+%{_libdir}/ghc-%{version}/unix-*/libHSunix-%{gpv_unix}.a
+%{_libdir}/ghc-%{version}/unix-*/include
+%dir %{_libdir}/ghc-%{version}/unix-*/System
+%{_libdir}/ghc-%{version}/unix-*/System/*.hi
+%dir %{_libdir}/ghc-%{version}/unix-*/System/Posix
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/*.hi
+%dir %{_libdir}/ghc-%{version}/unix-*/System/Posix/ByteString
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/ByteString/*.hi
+%dir %{_libdir}/ghc-%{version}/unix-*/System/Posix/Directory
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/Directory/*.hi
+%dir %{_libdir}/ghc-%{version}/unix-*/System/Posix/DynamicLinker
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/DynamicLinker/*.hi
+%dir %{_libdir}/ghc-%{version}/unix-*/System/Posix/DynamicLinker/Module
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/DynamicLinker/Module/*.hi
+%dir %{_libdir}/ghc-%{version}/unix-*/System/Posix/Env
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/Env/*.hi
+%dir %{_libdir}/ghc-%{version}/unix-*/System/Posix/Files
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/Files/*.hi
+%dir %{_libdir}/ghc-%{version}/unix-*/System/Posix/IO
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/IO/*.hi
+%dir %{_libdir}/ghc-%{version}/unix-*/System/Posix/Process
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/Process/*.hi
+%dir %{_libdir}/ghc-%{version}/unix-*/System/Posix/Signals
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/Signals/*.hi
+%dir %{_libdir}/ghc-%{version}/unix-*/System/Posix/Temp
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/Temp/*.hi
+%dir %{_libdir}/ghc-%{version}/unix-*/System/Posix/Terminal
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/Terminal/*.hi
+
+%files prof
+%defattr(644,root,root,755)
+%{_libdir}/ghc-%{version}/libHSrts_p.a
+%{_libdir}/ghc-%{version}/libHSrts_thr_p.a
+
+%{_libdir}/ghc-%{version}/Cabal-*/libHSCabal-%{gpv_Cabal}_p.a
+%{_libdir}/ghc-%{version}/Cabal-*/*.p_hi
+%{_libdir}/ghc-%{version}/Cabal-*/Distribution/*.p_hi
+%{_libdir}/ghc-%{version}/Cabal-*/Distribution/Compat/*.p_hi
+%{_libdir}/ghc-%{version}/Cabal-*/Distribution/PackageDescription/*.p_hi
+%{_libdir}/ghc-%{version}/Cabal-*/Distribution/Simple/*.p_hi
+%{_libdir}/ghc-%{version}/Cabal-*/Distribution/Simple/Build/*.p_hi
+%{_libdir}/ghc-%{version}/Cabal-*/Distribution/Simple/GHC/*.p_hi
+%{_libdir}/ghc-%{version}/Cabal-*/Distribution/Simple/PreProcess/*.p_hi
+%{_libdir}/ghc-%{version}/Cabal-*/Distribution/Simple/Program/*.p_hi
+%{_libdir}/ghc-%{version}/Cabal-*/Language/Haskell/*.p_hi
+
+%{_libdir}/ghc-%{version}/array-*/libHSarray-%{gpv_array}_p.a
+%{_libdir}/ghc-%{version}/array-*/Data/*.p_hi
+%{_libdir}/ghc-%{version}/array-*/Data/Array/*.p_hi
+%{_libdir}/ghc-%{version}/array-*/Data/Array/IO/*.p_hi
+%{_libdir}/ghc-%{version}/array-*/Data/Array/MArray/*.p_hi
+%{_libdir}/ghc-%{version}/array-*/Data/Array/ST/*.p_hi
+%{_libdir}/ghc-%{version}/array-*/Data/Array/Storable/*.p_hi
+
+%{_libdir}/ghc-%{version}/base-*/libHSbase-%{gpv_base}_p.a
+%{_libdir}/ghc-%{version}/base-*/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Control/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Control/Concurrent/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Control/Exception/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Control/Monad/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Control/Monad/ST/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Control/Monad/ST/Lazy/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Data/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Data/STRef/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Data/Typeable/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Debug/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Foreign/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Foreign/C/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Foreign/Marshal/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Foreign/ForeignPtr/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/GHC/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/GHC/Conc/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/GHC/Event/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/GHC/Fingerprint/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/GHC/Float/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/GHC/IO/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/GHC/IO/Encoding/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/GHC/IO/Handle/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/System/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/System/Console/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/System/Environment/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/System/IO/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/System/Mem/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/System/Posix/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Text/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Text/ParserCombinators/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Text/Read/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Text/Show/*.p_hi
+%{_libdir}/ghc-%{version}/base-*/Unsafe/*.p_hi
+
+%{_libdir}/ghc-%{version}/bin-package-db-*/libHSbin-package-db-%{gpv_bin_package_db}_p.a
+%{_libdir}/ghc-%{version}/bin-package-db-*/Distribution/InstalledPackageInfo/*.p_hi
+
+%{_libdir}/ghc-%{version}/binary-*/libHSbinary-%{gpv_binary}_p.a
+%{_libdir}/ghc-%{version}/binary-*/Data/*.p_hi
+%{_libdir}/ghc-%{version}/binary-*/Data/Binary/*.p_hi
+%{_libdir}/ghc-%{version}/binary-*/Data/Binary/Builder/*.p_hi
+
+%{_libdir}/ghc-%{version}/bytestring-*/libHSbytestring-%{gpv_bytestring}_p.a
+%{_libdir}/ghc-%{version}/bytestring-*/Data/*.p_hi
+%{_libdir}/ghc-%{version}/bytestring-*/Data/ByteString/*.p_hi
+%{_libdir}/ghc-%{version}/bytestring-*/Data/ByteString/Lazy/*.p_hi
+%{_libdir}/ghc-%{version}/bytestring-*/Data/ByteString/Lazy/Builder/*.p_hi
+%{_libdir}/ghc-%{version}/bytestring-*/Data/ByteString/Lazy/Builder/BasicEncoding/*.p_hi
+%{_libdir}/ghc-%{version}/bytestring-*/Data/ByteString/Lazy/Builder/BasicEncoding/Internal/*.p_hi
+
+%{_libdir}/ghc-%{version}/containers-*/libHScontainers-%{gpv_containers}_p.a
+%{_libdir}/ghc-%{version}/containers-*/Data/*.p_hi
+%{_libdir}/ghc-%{version}/containers-*/Data/IntMap/*.p_hi
+%{_libdir}/ghc-%{version}/containers-*/Data/IntSet/*.p_hi
+%{_libdir}/ghc-%{version}/containers-*/Data/Map/*.p_hi
+%{_libdir}/ghc-%{version}/containers-*/Data/Set/*.p_hi
+
+%{_libdir}/ghc-%{version}/deepseq-*/libHSdeepseq-%{gpv_deepseq}_p.a
+%{_libdir}/ghc-%{version}/deepseq-*/Control/*.p_hi
+
+%{_libdir}/ghc-%{version}/directory-*/libHSdirectory-%{gpv_directory}_p.a
+%{_libdir}/ghc-%{version}/directory-*/System/*.p_hi
+
+%{_libdir}/ghc-%{version}/filepath-*/libHSfilepath-%{gpv_filepath}_p.a
+%{_libdir}/ghc-%{version}/filepath-*/System/*.p_hi
+%{_libdir}/ghc-%{version}/filepath-*/System/FilePath/*.p_hi
+
+%{_libdir}/ghc-%{version}/ghc-%{version}/libHSghc-%{version}_p.a
+%{_libdir}/ghc-%{version}/ghc-%{version}/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/Hoopl/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/Llvm/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/LlvmCodeGen/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/PPC/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/Graph/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/Linear/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/Linear/PPC/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/Linear/SPARC/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/RegAlloc/Linear/X86/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/SPARC/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/SPARC/CodeGen/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/Builtins/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/Generic/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/Monad/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/Type/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/Vectorise/Utils/*.p_hi
+%{_libdir}/ghc-%{version}/ghc-%{version}/X86/*.p_hi
+
+%{_libdir}/ghc-%{version}/ghc-prim-*/libHSghc-prim-%{gpv_ghc_prim}_p.a
+%{_libdir}/ghc-%{version}/ghc-prim-*/GHC/*.p_hi
+
+%{_libdir}/ghc-%{version}/haskell2010-*/libHShaskell2010-%{gpv_haskell2010}_p.a
+%{_libdir}/ghc-%{version}/haskell2010-*/*.p_hi
+%{_libdir}/ghc-%{version}/haskell2010-*/Control/*.p_hi
+%{_libdir}/ghc-%{version}/haskell2010-*/Data/*.p_hi
+%{_libdir}/ghc-%{version}/haskell2010-*/Foreign/*.p_hi
+%{_libdir}/ghc-%{version}/haskell2010-*/Foreign/C/*.p_hi
+%{_libdir}/ghc-%{version}/haskell2010-*/Foreign/Marshal/*.p_hi
+%{_libdir}/ghc-%{version}/haskell2010-*/System/*.p_hi
+%{_libdir}/ghc-%{version}/haskell2010-*/System/IO/*.p_hi
+
+%{_libdir}/ghc-%{version}/haskell98-*/libHShaskell98-%{gpv_haskell98}_p.a
+%{_libdir}/ghc-%{version}/haskell98-*/*.p_hi
+
+%{_libdir}/ghc-%{version}/hoopl-*/libHShoopl-%{gpv_hoopl}_p.a
+%{_libdir}/ghc-%{version}/hoopl-*/Compiler/*.p_hi
+%{_libdir}/ghc-%{version}/hoopl-*/Compiler/Hoopl/*.p_hi
+%{_libdir}/ghc-%{version}/hoopl-*/Compiler/Hoopl/Passes/*.p_hi
+
+%{_libdir}/ghc-%{version}/hpc-*/libHShpc-%{gpv_hpc}_p.a
+%{_libdir}/ghc-%{version}/hpc-*/Trace/Hpc/*.p_hi
+
+%{_libdir}/ghc-%{version}/integer-gmp-*/libHSinteger-gmp-%{gpv_integer_gmp}_p.a
+%{_libdir}/ghc-%{version}/integer-gmp-*/GHC/*.p_hi
+%{_libdir}/ghc-%{version}/integer-gmp-*/GHC/Integer/*.p_hi
+%{_libdir}/ghc-%{version}/integer-gmp-*/GHC/Integer/GMP/*.p_hi
+%{_libdir}/ghc-%{version}/integer-gmp-*/GHC/Integer/Logarithms/*.p_hi
+
+%{_libdir}/ghc-%{version}/old-locale-*/libHSold-locale-%{gpv_old_locale}_p.a
+%{_libdir}/ghc-%{version}/old-locale-*/System/*.p_hi
+
+%{_libdir}/ghc-%{version}/old-time-*/libHSold-time-%{gpv_old_time}_p.a
+%{_libdir}/ghc-%{version}/old-time-*/System/*.p_hi
+
+%{_libdir}/ghc-%{version}/pretty-*/libHSpretty-%{gpv_pretty}_p.a
+%{_libdir}/ghc-%{version}/pretty-*/Text/*.p_hi
+%{_libdir}/ghc-%{version}/pretty-*/Text/PrettyPrint/*.p_hi
+
+%{_libdir}/ghc-%{version}/process-*/libHSprocess-%{gpv_process}_p.a
+%{_libdir}/ghc-%{version}/process-*/System/*.p_hi
+%{_libdir}/ghc-%{version}/process-*/System/Process/*.p_hi
+
+%{_libdir}/ghc-%{version}/template-haskell-*/libHStemplate-haskell-%{gpv_template_haskell}_p.a
+%{_libdir}/ghc-%{version}/template-haskell-*/Language/Haskell/*.p_hi
+%{_libdir}/ghc-%{version}/template-haskell-*/Language/Haskell/TH/*.p_hi
+
+%{_libdir}/ghc-%{version}/time-*/libHStime-%{gpv_time}_p.a
+%{_libdir}/ghc-%{version}/time-*/Data/*.p_hi
+%{_libdir}/ghc-%{version}/time-*/Data/Time/*.p_hi
+%{_libdir}/ghc-%{version}/time-*/Data/Time/Calendar/*.p_hi
+%{_libdir}/ghc-%{version}/time-*/Data/Time/Clock/*.p_hi
+%{_libdir}/ghc-%{version}/time-*/Data/Time/Format/*.p_hi
+%{_libdir}/ghc-%{version}/time-*/Data/Time/LocalTime/*.p_hi
+
+%{_libdir}/ghc-%{version}/unix-*/libHSunix-%{gpv_unix}_p.a
+%{_libdir}/ghc-%{version}/unix-*/System/*.p_hi
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/*.p_hi
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/ByteString/*.p_hi
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/Directory/*.p_hi
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/DynamicLinker/*.p_hi
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/DynamicLinker/Module/*.p_hi
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/Env/*.p_hi
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/Files/*.p_hi
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/IO/*.p_hi
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/Process/*.p_hi
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/Signals/*.p_hi
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/Temp/*.p_hi
+%{_libdir}/ghc-%{version}/unix-*/System/Posix/Terminal/*.p_hi
+
+%if %{with doc}
+%files doc
+%defattr(644,root,root,755)
+%doc docs/comm docs-root/{html,*.pdf}
+%endif