1 # RPM spec file for GHC -*-rpm-spec-*-
3 # Copyright [1998..2004] The GHC Team
5 # Thanks to Zoltan Vorosbaranyi <vbzoli@vbzo.li> for suggestions in
6 # earlier versions and Pixel <pixel@mandrakesoft.com> for coding tips.
8 # This file is subject to the same free software license as GHC.
11 %define version @ProjectVersion@
12 %define release @release@
18 Group: Development/Languages/Haskell
19 URL: http://haskell.org/ghc/
20 Source: http://haskell.org/ghc/dist/%{version}/ghc-%{version}-src.tar.bz2
21 Packager: Sven Panne <sven.panne@aedion.de>
22 BuildRoot: %{_tmppath}/%{name}-%{version}-build
24 Requires: gmp, readline
25 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
27 Summary: The Glasgow Haskell Compiler
30 Haskell is the standard lazy purely functional programming language.
31 The current language version is Haskell 98, agreed in December 1998,
32 with a revised version published in January 2003.
34 GHC is a state-of-the-art programming suite for Haskell. Included is
35 an optimising compiler generating good code for a variety of
36 platforms, together with an interactive system for convenient, quick
37 development. The distribution includes space and time profiling
38 facilities, a large collection of libraries, and support for various
39 language extensions, including concurrency, exceptions, and foreign
40 language interfaces (C, C++, whatever).
42 A wide variety of Haskell related resources (tutorials, libraries,
43 specifications, documentation, compilers, interpreters, references,
44 contact information, links to research groups) are available from the
45 Haskell home page at http://haskell.org/.
49 Krasimir Angelov <ka2_mail@yahoo.com>
50 Manuel Chakravarty <chak@cse.unsw.edu.au>
51 Koen Claessen <koen@cs.chalmers.se>
52 Robert Ennals <Robert.Ennals@cl.cam.ac.uk>
53 Sigbjorn Finne <sof@galconn.com>
54 Gabrielle Keller <keller@cvs.haskell.org>
55 Marcin Kowalczyk <qrczak@knm.org.pl>
56 Jeff Lewis <jeff@galconn.com>
57 Ian Lynagh <igloo@earth.li>
58 Simon Marlow <simonmar@microsoft.com>
59 Sven Panne <sven.panne@aedion.de>
60 Ross Paterson <ross@soi.city.ac.uk>
61 Simon Peyton Jones <simonpj@microsoft.com>
62 Don Stewart <dons@cse.unsw.edu.au>
63 Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
64 Wolfgang Thaller <wolfgang.thaller@gmx.net>
65 Andrew Tolmach <apt@cs.pdx.edu>
66 Keith Wansbrough <Keith.Wansbrough@cl.cam.ac.uk>
67 Michael Weber <michael.weber@post.rwth-aachen.de>
68 plus a dozen helping hands...
71 Requires: ghc = %{version}-%{release}
72 Summary: Profiling libraries for GHC
73 Group: Development/Libraries
76 Profiling libraries for Glorious Glasgow Haskell Compilation System
77 (GHC). They should be installed when GHC's profiling subsystem is
84 test -f configure || autoreconf
85 ./configure --prefix=%{prefix}
88 make -C ghc/docs/ext-core ps
89 make -C ghc/docs/storage-mgt ps
92 make prefix=${RPM_BUILD_ROOT}%{prefix} install
93 make datadir=`pwd` install-docs
95 # generate the file list for lib/ _excluding_ all files needed for profiling
98 # * generating file lists in a BUILD_ROOT spec is a bit tricky: the file list
99 # has to contain complete paths, _but_ without the BUILD_ROOT, we also do
100 # _not_ want have directory names in the list; furthermore, we have to make
101 # sure that any leading / is removed from %{prefix}/lib, as find has to
102 # interpret the argument as a relative path; however, we have to include the
103 # leading / again in the final file list (otherwise, rpm complains)
104 # * isn't there an easier way to do all this?
108 libdir=`echo %{prefix}/lib | sed 's|^/||'`
109 find $libdir ! -type d ! -name '*.p_hi' ! -name '*_p.a' -print | sed 's|^|/|' > $dir/rpm-noprof-lib-files
110 find $libdir ! -type d \( -name '*.p_hi' -or -name '*_p.a' \) -print | sed 's|^|/|' > $dir/rpm-prof-lib-files
114 rm -rf ${RPM_BUILD_ROOT}
116 %files -f rpm-noprof-lib-files
117 %defattr(-,root,root)
118 %doc docs/docbook-cheat-sheet/docbook-cheat-sheet
122 %doc ghc/docs/building/building
123 %doc ghc/docs/ext-core/core.ps
124 %doc ghc/docs/storage-mgt/ldv.ps
125 %doc ghc/docs/storage-mgt/rp.ps
126 %doc ghc/docs/storage-mgt/sm.ps
127 %doc ghc/docs/users_guide/users_guide
128 %doc hslibs/doc/hslibs
130 %doc libraries/Cabal/doc/Cabal
132 %{prefix}/bin/ghc-%{version}
133 %{prefix}/bin/ghc-pkg
134 %{prefix}/bin/ghc-pkg-%{version}
136 %{prefix}/bin/ghci-%{version}
137 %{prefix}/bin/ghcprof
138 %{prefix}/bin/hasktags
142 %{prefix}/bin/runhaskell
143 %{prefix}/bin/stat2resid
145 %files prof -f rpm-prof-lib-files
146 %defattr(-,root,root)