SPECS: ghc.spec - Finished build & install scripts - Generate html...

qrczak qrczak at pld-linux.org
Wed Feb 21 14:36:28 CET 2007


Author: qrczak                       Date: Wed Feb 21 13:36:28 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- Finished build & install scripts
- Generate html documentation of libraries with haddock
  (--without doc to turn off)
- Updated BR, description, and files list
- Release 1

---- Files affected:
SPECS:
   ghc.spec (1.61 -> 1.62) 

---- Diffs:

================================================================
Index: SPECS/ghc.spec
diff -u SPECS/ghc.spec:1.61 SPECS/ghc.spec:1.62
--- SPECS/ghc.spec:1.61	Tue Feb 13 08:16:45 2007
+++ SPECS/ghc.spec	Wed Feb 21 14:36:23 2007
@@ -2,12 +2,13 @@
 #
 # Conditional build:
 %bcond_with	bootstrap	# use foreign (non-rpm) ghc to bootstrap
+%bcond_without	doc		# don't build documentation (requires haddock)
 #
 Summary:	Glasgow Haskell Compilation system
 Summary(pl.UTF-8):	System kompilacji Glasgow Haskell
 Name:		ghc
 Version:	6.6
-Release:	0.1
+Release:	1
 License:	BSD-like w/o adv. clause
 Group:		Development/Languages
 Source0:	http://haskell.org/ghc/dist/%{version}/%{name}-%{version}-src.tar.bz2
@@ -15,57 +16,108 @@
 Patch0:		%{name}-ac.patch
 Patch1:		%{name}-tinfo.patch
 URL:		http://haskell.org/ghc/
-BuildRequires:	alex >= 2.0
+BuildRequires:	OpenGL-GLU-devel
+%{!?with_bootstrap:BuildRequires:	alex >= 2.0}
 BuildRequires:	autoconf
-BuildRequires:	docbook-style-dsssl
-BuildRequires:	docbook-style-xsl
-%{!?with_bootstrap:BuildRequires:	ghc >= 4.0.8}
+%{!?with_doc:BuildRequires:	docbook-dtd42-xml}
+%{!?with_doc:BuildRequires:	docbook-style-xsl}
+%{!?with_bootstrap:BuildRequires:	ghc}
 BuildRequires:	gmp-devel
-BuildRequires:	happy >= 1.10
-BuildRequires:	jadetex
+%{!?with_doc:BuildRequires:	haddock}
+%{!?with_bootstrap:BuildRequires:	happy >= 1.15}
+%{!?with_doc:BuildRequires:	libxslt-progs}
 BuildRequires:	ncurses-devel
-BuildRequires:	libxslt-progs
-BuildRequires:	openjade
 BuildRequires:	readline-devel
 BuildRequires:	rpmbuild(macros) >= 1.213
-BuildRequires:	sgml-common
-BuildRequires:	tetex-dvips
-BuildRequires:	tetex-format-latex
-BuildRequires:	tetex-latex-bibtex
-BuildRequires:	tetex-metafont
+%{!?with_doc:BuildRequires:	tetex}
+%{!?with_doc:BuildRequires:	tetex-dvips}
+#For generating documentation in PDF: fop or xmltex
 Provides:	haskell
 # there is no more ghc ports in PLD
 ExclusiveArch:	%{ix86} %{x8664} alpha ppc sparc
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-The Glorious Glasgow Haskell Compilation System (GHC) is a robust,
-fully-featured, optimising compiler for the functional programming
-language Haskell 98. GHC compiles Haskell to either native code or C.
-It implements numerous experimental language extensions to Haskell,
-including concurrency, a foreign language interface, several
-type-system extensions, exceptions, and so on. GHC comes with a
-generational garbage collector, a space and time profiler, and a
-comprehensive set of libraries. This package includes HTML and PS
-versions of the SGML-based documentation for GHC. They are also
-available online at http://www.haskell.org/ghc/.
-
-Haskell 98 is "the" standard lazy functional programming language.
-More info plus the language definition is at http://www.haskell.org/.
+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/.
+
+Authors:
+--------
+    Krasimir Angelov <ka2_mail at yahoo.com>
+    Manuel Chakravarty <chak at cse.unsw.edu.au>
+    Koen Claessen <koen at cs.chalmers.se>
+    Robert Ennals <Robert.Ennals at cl.cam.ac.uk>
+    Sigbjorn Finne <sof at galconn.com>
+    Gabrielle Keller <keller at cvs.haskell.org>
+    Marcin Kowalczyk <qrczak at knm.org.pl>
+    Jeff Lewis <jeff at galconn.com>
+    Ian Lynagh <igloo at earth.li>
+    Simon Marlow <simonmar at microsoft.com>
+    Sven Panne <sven.panne at aedion.de>
+    Ross Paterson <ross at soi.city.ac.uk>
+    Simon Peyton Jones <simonpj at microsoft.com>
+    Don Stewart <dons at cse.unsw.edu.au>
+    Volker Stolz <stolz at i2.informatik.rwth-aachen.de>
+    Wolfgang Thaller <wolfgang.thaller at gmx.net>
+    Andrew Tolmach <apt at cs.pdx.edu>
+    Keith Wansbrough <Keith.Wansbrough at cl.cam.ac.uk>
+    Michael Weber <michael.weber at post.rwth-aachen.de>
+    plus a dozen helping hands...
 
 %description -l pl.UTF-8
-Sławny Glasgow Haskell Compilation System (GHC) to mocny, w pełni
-funkcjonalny, optymalizujący kompilator funkcyjnego języka
-programowania Haskell 98. GHC kompiluje Haskella do kodu natywnego lub
-do C. Ma zaimplementowanych wiele eksperymentalnych rozszerzeń języka,
-w tym współbieżność, interfejs do innych języków, rozszerzenia systemu
-typów, wyjątki itd. GHC zawiera garbage collector, profiler, obszerny
-zestaw bibliotek. Ten pakiet zawiera wersje HTML i PostScriptową
-dokumentacji bazowanej na SGML-u. Są one dostępne także online pod
-<http://www.haskell.org/ghc/>.
-
-Haskell 98 to standardowy leniwy funkcyjny język programowania. Więcej
-informacji oraz definicja języka pod <http://www.haskell.org/>.
+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/.
+
+Authorzy:
+---------
+    Krasimir Angelov <ka2_mail at yahoo.com>
+    Manuel Chakravarty <chak at cse.unsw.edu.au>
+    Koen Claessen <koen at cs.chalmers.se>
+    Robert Ennals <Robert.Ennals at cl.cam.ac.uk>
+    Sigbjorn Finne <sof at galconn.com>
+    Gabrielle Keller <keller at cvs.haskell.org>
+    Marcin Kowalczyk <qrczak at knm.org.pl>
+    Jeff Lewis <jeff at galconn.com>
+    Ian Lynagh <igloo at earth.li>
+    Simon Marlow <simonmar at microsoft.com>
+    Sven Panne <sven.panne at aedion.de>
+    Ross Paterson <ross at soi.city.ac.uk>
+    Simon Peyton Jones <simonpj at microsoft.com>
+    Don Stewart <dons at cse.unsw.edu.au>
+    Volker Stolz <stolz at i2.informatik.rwth-aachen.de>
+    Wolfgang Thaller <wolfgang.thaller at gmx.net>
+    Andrew Tolmach <apt at cs.pdx.edu>
+    Keith Wansbrough <Keith.Wansbrough at cl.cam.ac.uk>
+    Michael Weber <michael.weber at post.rwth-aachen.de>
+    oraz wiele pomocnych dłoni...
 
 %package prof
 Summary:	Profiling libraries for GHC
@@ -88,48 +140,51 @@
 %patch1 -p1
 
 %build
-cd libraries/readline/
-%{__autoconf}
-cd ../..
-
-cp -f /usr/share/automake/config.sub .
+%{?with_bootstrap:PATH=$PATH:/usr/local/bin}
 %{__autoconf}
 %configure \
-	--with-gcc="%{__cc}" \
-	--disable-openal
+	--prefix=%{_prefix} \
+	--with-gcc="%{__cc}"
 
 %{__make}
-%{__make} -C docs html
-%{__make} -C ghc/docs html
-%{__make} -C hslibs/doc html
+%if %{with doc}
+%{__make} html
+%{__make} -C docs/ext-core ps
+%{__make} -C docs/storage-mgt ps
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-%{__make} install-dirs install \
+%{__make} install \
 	bindir=$RPM_BUILD_ROOT%{_bindir} \
-	prefix=$RPM_BUILD_ROOT%{_prefix} \
+	datadir=$RPM_BUILD_ROOT%{_datadir}/%{name}-%{version} \
 	libdir=$RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}
 
+rm -rf html
+%{__make} install-docs datadir=`pwd`
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ghc/{ANNOUNCE,README}
-%doc ghc/docs/users_guide/users_guide
-%doc hslibs/doc/hslibs
+%doc ANNOUNCE README
+%if %{with doc}
+%doc docs/users_guide/users_guide docs/comm
+%doc docs/ext-core/core.ps docs/storage-mgt/*.ps
+%doc libraries/html-docs
+%doc html libraries/Cabal/doc/Cabal
+%endif
 %attr(755,root,root) %{_bindir}/*
-%{_libdir}/ghc-%{version}/icons
 %dir %{_libdir}/ghc-%{version}
+%{_libdir}/ghc-%{version}/hslibs-imports
+%{_libdir}/ghc-%{version}/icons
 %{_libdir}/ghc-%{version}/include
 %{_libdir}/ghc-%{version}/imports
 %exclude %{_libdir}/ghc-%{version}/imports/*.p_hi
 %exclude %{_libdir}/ghc-%{version}/imports/*/*.p_hi
 %exclude %{_libdir}/ghc-%{version}/imports/*/*/*.p_hi
 %exclude %{_libdir}/ghc-%{version}/imports/*/*/*/*.p_hi
-%{_libdir}/ghc-%{version}/hslibs-imports
-%exclude %{_libdir}/ghc-%{version}/hslibs-imports/*/*.p_hi
 %attr(755,root,root) %{_libdir}/ghc-%{version}/cgprof
 %attr(755,root,root) %{_libdir}/ghc-%{version}/ghc-%{version}
 %attr(755,root,root) %{_libdir}/ghc-%{version}/ghc-asm
@@ -137,8 +192,8 @@
 %attr(755,root,root) %{_libdir}/ghc-%{version}/ghc-split
 %attr(755,root,root) %{_libdir}/ghc-%{version}/hsc2hs-bin
 %attr(755,root,root) %{_libdir}/ghc-%{version}/unlit
-%{_libdir}/ghc-%{version}/*.prl
-%{_libdir}/ghc-%{version}/libHS*[!p].a
+%{_libdir}/ghc-%{version}/libHS*.a
+%exclude %{_libdir}/ghc-%{version}/libHS*_p.a
 %ifarch %{ix86} %{x8664} ppc ppc64 sparc sparcv9 sparc64
 %{_libdir}/ghc-%{version}/HS*.o
 %endif
@@ -152,7 +207,6 @@
 %{_libdir}/ghc-%{version}/imports/*/*.p_hi
 %{_libdir}/ghc-%{version}/imports/*/*/*.p_hi
 %{_libdir}/ghc-%{version}/imports/*/*/*/*.p_hi
-%{_libdir}/ghc-%{version}/hslibs-imports/*/*.p_hi
 %{_libdir}/ghc-%{version}/libHS*_p.a
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -161,6 +215,13 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.62  2007/02/21 13:36:23  qrczak
+- Finished build & install scripts
+- Generate html documentation of libraries with haddock
+  (--without doc to turn off)
+- Updated BR, description, and files list
+- Release 1
+
 Revision 1.61  2007/02/13 07:16:45  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ghc.spec?r1=1.61&r2=1.62&f=u



More information about the pld-cvs-commit mailing list