X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fghc.spec.in;h=482dc94a9498fbb164e88edf6bcf04935e7bcd71;hb=ed5abcc97716009f048ca04084226aee2b99b474;hp=dfe6d8f6b94434735ecdc2cd7665330d9c236adc;hpb=6425d879ecc9258dd2fbbce329fc5bdf4d5c9866;p=ghc-hetmet.git diff --git a/ghc/ghc.spec.in b/ghc/ghc.spec.in index dfe6d8f..482dc94 100644 --- a/ghc/ghc.spec.in +++ b/ghc/ghc.spec.in @@ -1,6 +1,6 @@ -# RPM spec file for GHC +# RPM spec file for GHC -*-rpm-spec-*- # -# Copyright [1998..2001] The GHC Team +# Copyright [1998..2002] The GHC Team # # Thanks to Zoltan Vorosbaranyi for suggestions in # earlier versions and Pixel for coding tips. @@ -26,10 +26,10 @@ URL: http://haskell.org/ghc/ BuildRoot: /var/tmp/ghc-%{version}-%{release}-root Requires: gmp-devel Provides: haskell -BuildRequires: autoconf, happy >= 1.9, ghc, stylesheets +BuildRequires: happy >= 1.13, ghc >= 4.08, haddock, docbook-utils %description -Haskell is a standard lazy functional programming language; the +Haskell is the standard purely functional programming language; the current language version is Haskell 98, agreed in December 1998. GHC is a state-of-the-art programming suite for Haskell. Included is @@ -48,14 +48,33 @@ Haskell home page at . %package prof Summary: Profiling libraries for GHC Group: Development/Libraries -Requires: ghc = %{PACKAGE_VERSION} +Requires: ghc = %{PACKAGE_VERSION}-%{release} %description prof Profiling libraries for Glorious Glasgow Haskell Compilation System (GHC). They should be installed when GHC's profiling subsystem is needed. +%package doc +Summary: Documentation for GHC +Group: Documentation + +%description doc +Preformatted documentation for the Glorious Glasgow Haskell Compilation System +(GHC) and its libraries. It should be installed if you like to have local +access to the documentation in PostScript and HTML format. Alternatively, +the documentation is available online at + + http://haskell.org/ghc/documentation.html + %changelog +* 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 @@ -100,7 +119,7 @@ They should be installed when GHC's profiling subsystem is needed. cat >mk/build.mk <$dir/rpm-noprof-lib-files +find $libdir ! -type d \( -name '*.p_hi' -or -name '*_p.a' \) -print | sed 's|^|/|'\ + >$dir/rpm-prof-lib-files cd $dir %clean rm -rf $RPM_BUILD_ROOT %files -f rpm-noprof-lib-files -%doc docs/ -%doc ghc/ANNOUNCE ghc/README ghc/docs/ +%defattr(-,root,root) +%doc %{prefix}/share/doc/ghc-%{version}/ANNOUNCE +%doc %{prefix}/share/doc/ghc-%{version}/README %{prefix}/bin/* -%files prof -%{prefix}/lib/ghc-%{version}/imports/*/*.p_hi -%{prefix}/lib/ghc-%{version}/libHS*_p.a +%files prof -f rpm-prof-lib-files +%defattr(-,root,root) + +%files doc +%defattr(-,root,root) +%doc %{prefix}/share/doc/ghc-%{version}/*.ps +%doc %{prefix}/share/doc/ghc-%{version}/html