%define build_version 6.4 Name: ghc Version: 6.4 Release: 2mdk Epoch: 0 Summary: Glasgow Haskell Compilation system License: BSD style Group: Development/Other Source: http://www.haskell.org/ghc/dist/%{version}/ghc-%{version}-src.tar.bz2 URL: http://haskell.org/ghc/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gmp-devel, readline-devel, flex, perl, docbook-utils BuildRequires: ghc = %{build_version} #BuildRequires: haddock %description GHC is a state-of-the-art programming suite for Haskell, a purely functional programming language. It includes 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++, etc). %package -n ghc-prof Summary: Profiling libraries for GHC Group: Development/Other Requires: ghc = %{epoch}:%{version}-%{release} %description -n ghc-prof Profiling libraries for Glorious Glasgow Haskell Compilation System (GHC). They should be installed when GHC's profiling subsystem is needed. %define __spec_install_post /usr/lib/rpm/brp-compress %prep %setup -q -n ghc-%{version} %build %ifarch x86_64 echo "GhcUnregisterised=YES" > mk/build.mk echo "SplitObjs=NO" >> mk/build.mk %endif ./configure --prefix=%{_prefix} --libdir=%{_libdir} --with-ghc=ghc-%{build_version} make all %install rm -rf $RPM_BUILD_ROOT make prefix=$RPM_BUILD_ROOT%{_prefix} libdir=$RPM_BUILD_ROOT%{_libdir}/ghc-%{version} install make datadir=$RPM_BUILD_DIR/ghc-%{version} SGMLDocWays="html" NO_HADDOCK_DOCS=YES install-docs SRC_TOP=$PWD rm -f rpm-*.files ( cd $RPM_BUILD_ROOT find .%{_libdir} \( -type f \( -name '*.p_hi' -o -name '*_p.a' \) -fprint $SRC_TOP/rpm-prof.files \) -o \( -not -name 'package.conf' -fprint $SRC_TOP/rpm-ghc.files \) sed -i '/lib$/d' $SRC_TOP/rpm-ghc.files ) # make paths absolute (filter "./usr" to "/usr") perl -pi -e "s|\.%{_prefix}|%{_prefix}|" rpm-*.files %clean rm -rf $RPM_BUILD_ROOT %files -f rpm-ghc.files %defattr(-,root,root,-) %{_bindir}/* %dir %{_libdir}/ghc-%{version} #- TODO move this under /etc or don't flag it as config file %config %{_libdir}/ghc-%{version}/package.conf %doc ghc/ANNOUNCE ghc/LICENSE ghc/README %doc html/* %files -n ghc-prof -f rpm-prof.files %defattr(-,root,root,-) %changelog * Tue Mar 15 2005 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 6.4-2mdk - Rebuild with itself * Fri Mar 11 2005 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 0:6.4-1mdk - New version 6.4 - BuildRequire previous ghc for bootstrapping * Mon Feb 21 2005 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 0:6.2.2-2mdk - Release for Mandrakelinux - Don't build docs with haddock for now - Don't BuildRequires itself for bootstrapping - Reorganize subpackages * Fri Jan 21 2005 Jens Petersen <petersen@haskell.org> - 0:6.2.2-2 - add x86_64 port - build unregistered and without splitobjs - specify libdir to configure and install - rename ghc-prof to ghcXYZ-prof, which obsoletes ghc-prof * Mon Dec 6 2004 Jens Petersen <petersen@haskell.org> - 0:6.2.2-1 - move ghc requires to ghcXYZ * Wed Nov 24 2004 Jens Petersen <petersen@haskell.org> - 0:6.2.2-0.fdr.1 - ghc622 - provide ghc = %%version - require gcc, gmp-devel and readline-devel * Fri Oct 15 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:6.2.2-0.fdr.1 - New Version 6.2.2 * Mon Mar 22 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:6.2.1-0.fdr.1 - New Version 6.2.1 * Tue Dec 16 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:6.2-0.fdr.1 - New Version 6.2 * Tue Dec 16 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:6.0.1-0.fdr.3 - A few minor specfile tweaks * Mon Dec 15 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:6.0.1-0.fdr.2 - Different file list generation * Mon Oct 20 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:6.0.1-0.fdr.1 - First Fedora release - Added generated html docs, so that haddock is not needed * Wed Sep 26 2001 Manuel Chakravarty - small changes for 5.04 * Wed Sep 26 2001 Manuel Chakravarty - split documentation off into a separate package - adapt to new docbook setup in RH7.1 * Mon Apr 16 2001 Manuel Chakravarty - revised for 5.00 - also runs autoconf automagically if no ./configure found * Thu Jun 22 2000 Sven Panne - removed explicit usage of hslibs/docs, it belongs to ghc/docs/set * Sun Apr 23 2000 Manuel Chakravarty - revised for ghc 4.07; added suggestions from Pixel <pixel@mandrakesoft.com> - added profiling package * Tue Dec 7 1999 Manuel Chakravarty - version for use from CVS * Thu Sep 16 1999 Manuel Chakravarty - modified for GHC 4.04, patchlevel 1 (no more 62 tuple stuff); minimises use of patch files - instead emits a build.mk on-the-fly * Sat Jul 31 1999 Manuel Chakravarty - modified for GHC 4.04 * Wed Jun 30 1999 Manuel Chakravarty - some more improvements from vbzoli * Fri Feb 26 1999 Manuel Chakravarty - modified for GHC 4.02 * Thu Dec 24 1998 Zoltan Vorosbaranyi - added BuildRoot - files located in /usr/local/bin, /usr/local/lib moved to /usr/bin, /usr/lib * Tue Jul 28 1998 Manuel Chakravarty - original version