OBS User unknown 2006-10-20 08:36:07 +00:00 committed by Git OBS Bridge
parent 4ce336d9af
commit c595bd8fbc

View File

@ -1,22 +1,22 @@
%define with_html_docs 1
%define with_ps_docs 0 %define with_ps_docs 0
Name: ghc Name: ghc
Version: 6.4.2 Version: 6.6
Release: 0 Release: 0
Summary: The Glasgow Haskell Compilation system Summary: The Glasgow Haskell Compilation system
Summary(de): Das Glasgow-Haskell-Compilation-System Summary(de): Das Glasgow-Haskell-Compilation-System
License: BSD style w/o adv. clause License: BSD style w/o adv. clause
Group: Development/Languages/Haskell Group: Development/Languages/Haskell
Packager: Herbert Graeber <herbert@graeber-clan.de> Packager: Herbert Graeber <herbert@graeber-clan.de>
Source: http://haskell.org/ghc/dist/%{version}/ghc-%{version}-src.tar.bz2 Source0: http://haskell.org/ghc/dist/%{version}/%{name}-%{version}-src.tar.bz2
Source1: http://haskell.org/ghc/dist/%{version}/%{name}-%{version}-src-extralibs.tar.bz2
URL: http://haskell.org/ghc/ URL: http://haskell.org/ghc/
%if %suse_version > 1000 %if %suse_version > 1000
Requires: gmp-devel Requires: gmp-devel
%endif %endif
BuildRequires: ghc BuildRequires: ghc >= 5.0
BuildRequires: happy BuildRequires: happy >= 1.15
BuildRequires: alex BuildRequires: alex >= 2.0
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
%if %suse_version > 1000 %if %suse_version > 1000
BuildRequires: gmp-devel BuildRequires: gmp-devel
@ -27,7 +27,6 @@ BuildRequires: readline-devel
BuildRequires: xorg-x11-Mesa-devel BuildRequires: xorg-x11-Mesa-devel
BuildRequires: freeglut-devel BuildRequires: freeglut-devel
BuildRequires: te_latex BuildRequires: te_latex
%if %{with_html_docs}
BuildRequires: haddock BuildRequires: haddock
BuildRequires: libxslt BuildRequires: libxslt
BuildRequires: sgml-skel BuildRequires: sgml-skel
@ -37,7 +36,6 @@ BuildRequires: docbook-utils
BuildRequires: fop BuildRequires: fop
BuildRequires: xmltex BuildRequires: xmltex
%endif %endif
%endif
Provides: haskell_compiler Provides: haskell_compiler
BuildRoot: /var/tmp/%{name}-%{version}-root BuildRoot: /var/tmp/%{name}-%{version}-root
Prefix: /usr Prefix: /usr
@ -90,23 +88,20 @@ the documentation is available online at
%prep %prep
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%setup -q %setup -q -b 1
%build %build
export CFLAGS="$RPM_OPT_FLAGS" export CFLAGS="$RPM_OPT_FLAGS"
test -f configure || autoreconf
./configure --prefix=%{prefix} --libdir=%{_libdir} --disable-openal --disable-alut \ ./configure --prefix=%{prefix} --libdir=%{_libdir} --disable-openal --disable-alut \
%ifarch x86_64 amd64 ia32e %ifarch x86_64 amd64 ia32e
--enable-libsuffix=64 --enable-libsuffix=64
%endif %endif
make make
%if %{with_html_docs}
make html make html
%if %{with_ps_docs} %if %{with_ps_docs}
make -C ghc/docs/ext-core ps make -C docs/ext-core ps
make -C ghc/docs/storage-mgt ps make -C docs/storage-mgt ps
%endif
%endif %endif
%install %install
@ -125,43 +120,44 @@ rm -rf $RPM_BUILD_ROOT
%files -f rpm-noprof-lib-files %files -f rpm-noprof-lib-files
%defattr(-,root,root) %defattr(-,root,root)
%doc docs/building/building %doc ANNOUNCE
%doc docs/docbook-cheat-sheet/docbook-cheat-sheet %doc HACKING
%doc ghc/ANNOUNCE %doc LICENSE
%doc ghc/LICENSE %doc README
%doc ghc/README %{_bindir}/ghc
%{prefix}/bin/ghc %{_bindir}/ghc-%{version}
%{prefix}/bin/ghc-%{version} %{_bindir}/ghc-pkg
%{prefix}/bin/ghc-pkg %{_bindir}/ghc-pkg-%{version}
%{prefix}/bin/ghc-pkg-%{version} %{_bindir}/ghci
%{prefix}/bin/ghci %{_bindir}/ghci-%{version}
%{prefix}/bin/ghci-%{version} %{_bindir}/ghcprof
%{prefix}/bin/ghcprof %{_bindir}/hasktags
%{prefix}/bin/hasktags %{_bindir}/hp2ps
%{prefix}/bin/hp2ps %{_bindir}/hsc2hs
%{prefix}/bin/hsc2hs %{_bindir}/runghc
%{prefix}/bin/runghc %{_bindir}/runhaskell
%{prefix}/bin/runhaskell
%{prefix}/bin/stat2resid
%files prof -f rpm-prof-lib-files %files prof -f rpm-prof-lib-files
%defattr(-,root,root) %defattr(-,root,root)
%files doc %files doc
%defattr(-,root,root) %defattr(-,root,root)
%if %{with_html_docs} %doc docs/building/building
%doc ghc/docs/users_guide/users_guide %doc docs/docbook-cheat-sheet/docbook-cheat-sheet
%doc hslibs/doc/hslibs %doc docs/users_guide/users_guide
%doc libraries/Cabal/doc/Cabal
%doc html/* %doc html/*
%if %{with_ps_docs} %if %{with_ps_docs}
%doc ghc/docs/ext-core/core.ps %doc docs/ext-core/core.ps
%doc ghc/docs/storage-mgt/ldv.ps %doc docs/storage-mgt/ldv.ps
%doc ghc/docs/storage-mgt/rp.ps %doc docs/storage-mgt/rp.ps
%doc ghc/docs/storage-mgt/sm.ps %doc docs/storage-mgt/sm.ps
%endif
%endif %endif
%changelog %changelog
* Mon Oct 16 2006 Herbert Graeber <herbert@links2linux.de>
- update to version 6.6
* Mon Sep 04 2006 Herbert Graeber <herbert@links2linux.de> * Mon Sep 04 2006 Herbert Graeber <herbert@links2linux.de>
- Use docbook-utils for html documentation - Use docbook-utils for html documentation
- Require sgml-skel for build - Require sgml-skel for build