1 # RPM spec file for GHC
3 # Copyright [1998..1999] Manuel M. T. Chakravarty <chak@acm.org>
4 # Thanks to Zoltan Vorosbaranyi <vbzoli@vbzo.li> for help with earlier
7 # This file is subject to the same free software license as GHC.
9 # Values for @version@ and @patchlevel@ are set by the `configure' script.
10 # SNAP releases are CVS snapshots. Official releases should replace SNAP by
11 # an appropriate release numbers (they are usually numbered starting from 1).
13 %define version @version@
14 %define patchlevel @patchlevel@
18 Summary: Glasgow Haskell Compilation system
22 Copyright: BSD style w/o adv. clause
23 Group: Development/Languages
24 Source: http://haskell.org/ghc/dist/%{version}/ghc-%{version}-src.tar.gz
25 URL: http://haskell.org/ghc/
26 BuildRoot: /var/tmp/ghc-%{version}-%{release}-root
27 Packager: Manuel M. T. Chakravarty <chak@is.tsukuba.ac.jp>
31 The Glorious Glasgow Haskell Compilation System (GHC) is a robust,
32 fully-featured, optimising compiler for the functional programming
33 language Haskell 98. GHC compiles Haskell to either native code or
34 C. It implements numerous experimental language extensions to Haskell,
35 including concurrency, a foreign language interface, several
36 type-system extensions, exceptions, and so on. GHC comes with a
37 generational garbage collector, a space and time profiler, and a
38 comprehensive set of libraries. This package includes HTML and PS
39 versions of the SGML-based documentation for GHC. They are also available
40 online at http://www.haskell.org/ghc/.
42 Haskell 98 is "the" standard lazy functional programming language.
43 More info plus the language definition is at http://www.haskell.org/.
45 ** This package does not include libraries for profiling **
49 * Tue Dec 7 1999 Manuel Chakravarty
50 - version for use from CVS
52 * Thu Sep 16 1999 Manuel Chakravarty
53 - modified for GHC 4.04, patchlevel 1 (no more 62 tuple stuff); minimises use
54 of patch files - instead emits a build.mk on-the-fly
56 * Sat Jul 31 1999 Manuel Chakravarty
57 - modified for GHC 4.04
59 * Wed Jun 30 1999 Manuel Chakravarty
60 - some more improvements from vbzoli
62 * Fri Feb 26 1999 Manuel Chakravarty
63 - modified for GHC 4.02
65 * Thu Dec 24 1998 Zoltan Vorosbaranyi
67 - files located in /usr/local/bin, /usr/local/lib moved to /usr/bin, /usr/lib
69 * Tue Jul 28 1998 Manuel Chakravarty
75 # generate our own `build.mk'
77 # * this is a kludge, to be used until the `configure' script is improved
79 cat >mk/build.mk <<END
80 GhcHcOpts = -O -dcore-lint -H24m
83 GhcLibHcOpts = -O -H24m -split-objs -odir \$*
84 GhcLibsWithReadline = YES
91 ./configure --prefix=%{prefix} --libdir=%{prefix}/lib/ghc-%{version}
93 make -C glafp-utils sgmlverb
96 make -C ghc/docs/users_guide ps html
97 make -C ghc/docs/libraries ps html
100 # compress the non-html docs
102 for j in docs ghc/docs; do
105 for i in ps dvi sgml vsgml verb idx; do
106 find . -name '*.'$i -exec gzip -9 '{}' ';' -print
110 rm -rf $RPM_BUILD_ROOT
111 make prefix=$RPM_BUILD_ROOT%{prefix}\
112 libdir=$RPM_BUILD_ROOT%{prefix}/lib/ghc-%{version} install
115 rm -rf $RPM_BUILD_ROOT
118 %doc ghc/ANNOUNCE ghc/PATCHLEVEL ghc/README docs/ ghc/docs/ CONTRIB/
120 %{prefix}/bin/ghc-%{version}
123 %{prefix}/bin/stat2resid
124 %{prefix}/lib/ghc-%{version}/