This commit is contained in:
parent
d57af1c99b
commit
140cb50825
52
ghc.spec
52
ghc.spec
@ -1,3 +1,6 @@
|
||||
%define with_html_docs 1
|
||||
%define with_ps_docs 0
|
||||
|
||||
Name: ghc
|
||||
Version: 6.4.2
|
||||
Release: 0
|
||||
@ -8,33 +11,33 @@ Group: Development/Languages/Haskell
|
||||
Packager: Herbert Graeber <herbert@graeber-clan.de>
|
||||
Source: http://haskell.org/ghc/dist/%{version}/ghc-%{version}-src.tar.bz2
|
||||
URL: http://haskell.org/ghc/
|
||||
%if %suse_version <= 1000
|
||||
Requires: gmp
|
||||
%else
|
||||
%if %suse_version > 1000
|
||||
Requires: gmp-devel
|
||||
%endif
|
||||
Requires: ncurses
|
||||
Requires: readline
|
||||
BuildRequires: ghc
|
||||
BuildRequires: happy
|
||||
BuildRequires: alex
|
||||
BuildRequires: ghc
|
||||
BuildRequires: haddock
|
||||
BuildRequires: libxslt
|
||||
BuildRequires: docbook-utils
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
BuildRequires: fop
|
||||
BuildRequires: xmltex
|
||||
BuildRequires: ncurses-devel
|
||||
%if %suse_version <= 1000
|
||||
BuildRequires: gmp
|
||||
%else
|
||||
%if %suse_version > 1000
|
||||
BuildRequires: gmp-devel
|
||||
%else
|
||||
BuildRequires: gmp
|
||||
%endif
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: xorg-x11-Mesa-devel
|
||||
BuildRequires: freeglut-devel
|
||||
BuildRequires: te_latex
|
||||
Provides: haskell
|
||||
%if %{with_html_docs}
|
||||
BuildRequires: haddock
|
||||
BuildRequires: libxslt
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
%if %{with_ps_docs}
|
||||
BuildRequires: docbook-utils
|
||||
BuildRequires: fop
|
||||
BuildRequires: xmltex
|
||||
%endif
|
||||
%endif
|
||||
Provides: haskell_compiler
|
||||
BuildRoot: /var/tmp/%{name}-%{version}-root
|
||||
Prefix: /usr
|
||||
|
||||
@ -97,9 +100,13 @@ test -f configure || autoreconf
|
||||
%endif
|
||||
|
||||
make
|
||||
%if %{with_html_docs}
|
||||
make html
|
||||
%if %{with_ps_docs}
|
||||
make -C ghc/docs/ext-core ps
|
||||
make -C ghc/docs/storage-mgt ps
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%install
|
||||
make prefix=$RPM_BUILD_ROOT%{_prefix} libdir=$RPM_BUILD_ROOT%{_libdir}/%{name}-%{version} install
|
||||
@ -141,15 +148,22 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%if %{with_html_docs}
|
||||
%doc ghc/docs/users_guide/users_guide
|
||||
%doc hslibs/doc/hslibs
|
||||
%doc html/*
|
||||
%if %{with_ps_docs}
|
||||
%doc ghc/docs/ext-core/core.ps
|
||||
%doc ghc/docs/storage-mgt/ldv.ps
|
||||
%doc ghc/docs/storage-mgt/rp.ps
|
||||
%doc ghc/docs/storage-mgt/sm.ps
|
||||
%doc ghc/docs/users_guide/users_guide
|
||||
%doc hslibs/doc/hslibs
|
||||
%doc html/*
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Tue Aug 29 2006 - Herbert Graeber <herbert@links2linux.de>
|
||||
- Disabled ps documentation (no fop without java)
|
||||
|
||||
* Mon Aug 28 2006 - Herbert Graeber <herbert@links2linux.de>
|
||||
- Move to the SUSE Build Service
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user