From c595bd8fbce59c879d52d75e4dab507e12bfc082c57def7ec24c057f52fa5269 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Fri, 20 Oct 2006 08:36:07 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc?expand=0&rev=9 --- ghc.spec | 76 +++++++++++++++++++++++++++----------------------------- 1 file changed, 36 insertions(+), 40 deletions(-) diff --git a/ghc.spec b/ghc.spec index f48f434..bfb10f4 100644 --- a/ghc.spec +++ b/ghc.spec @@ -1,22 +1,22 @@ -%define with_html_docs 1 %define with_ps_docs 0 Name: ghc -Version: 6.4.2 +Version: 6.6 Release: 0 Summary: The Glasgow Haskell Compilation system Summary(de): Das Glasgow-Haskell-Compilation-System License: BSD style w/o adv. clause Group: Development/Languages/Haskell Packager: Herbert Graeber -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/ %if %suse_version > 1000 Requires: gmp-devel %endif -BuildRequires: ghc -BuildRequires: happy -BuildRequires: alex +BuildRequires: ghc >= 5.0 +BuildRequires: happy >= 1.15 +BuildRequires: alex >= 2.0 BuildRequires: ncurses-devel %if %suse_version > 1000 BuildRequires: gmp-devel @@ -27,7 +27,6 @@ BuildRequires: readline-devel BuildRequires: xorg-x11-Mesa-devel BuildRequires: freeglut-devel BuildRequires: te_latex -%if %{with_html_docs} BuildRequires: haddock BuildRequires: libxslt BuildRequires: sgml-skel @@ -37,7 +36,6 @@ BuildRequires: docbook-utils BuildRequires: fop BuildRequires: xmltex %endif -%endif Provides: haskell_compiler BuildRoot: /var/tmp/%{name}-%{version}-root Prefix: /usr @@ -90,23 +88,20 @@ the documentation is available online at %prep rm -rf $RPM_BUILD_ROOT -%setup -q +%setup -q -b 1 %build export CFLAGS="$RPM_OPT_FLAGS" -test -f configure || autoreconf ./configure --prefix=%{prefix} --libdir=%{_libdir} --disable-openal --disable-alut \ %ifarch x86_64 amd64 ia32e --enable-libsuffix=64 %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 +make -C docs/ext-core ps +make -C docs/storage-mgt ps %endif %install @@ -125,43 +120,44 @@ rm -rf $RPM_BUILD_ROOT %files -f rpm-noprof-lib-files %defattr(-,root,root) -%doc docs/building/building -%doc docs/docbook-cheat-sheet/docbook-cheat-sheet -%doc ghc/ANNOUNCE -%doc ghc/LICENSE -%doc ghc/README -%{prefix}/bin/ghc -%{prefix}/bin/ghc-%{version} -%{prefix}/bin/ghc-pkg -%{prefix}/bin/ghc-pkg-%{version} -%{prefix}/bin/ghci -%{prefix}/bin/ghci-%{version} -%{prefix}/bin/ghcprof -%{prefix}/bin/hasktags -%{prefix}/bin/hp2ps -%{prefix}/bin/hsc2hs -%{prefix}/bin/runghc -%{prefix}/bin/runhaskell -%{prefix}/bin/stat2resid +%doc ANNOUNCE +%doc HACKING +%doc LICENSE +%doc README +%{_bindir}/ghc +%{_bindir}/ghc-%{version} +%{_bindir}/ghc-pkg +%{_bindir}/ghc-pkg-%{version} +%{_bindir}/ghci +%{_bindir}/ghci-%{version} +%{_bindir}/ghcprof +%{_bindir}/hasktags +%{_bindir}/hp2ps +%{_bindir}/hsc2hs +%{_bindir}/runghc +%{_bindir}/runhaskell %files prof -f rpm-prof-lib-files %defattr(-,root,root) %files doc %defattr(-,root,root) -%if %{with_html_docs} -%doc ghc/docs/users_guide/users_guide -%doc hslibs/doc/hslibs +%doc docs/building/building +%doc docs/docbook-cheat-sheet/docbook-cheat-sheet +%doc docs/users_guide/users_guide +%doc libraries/Cabal/doc/Cabal %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 -%endif +%doc docs/ext-core/core.ps +%doc docs/storage-mgt/ldv.ps +%doc docs/storage-mgt/rp.ps +%doc docs/storage-mgt/sm.ps %endif %changelog +* Mon Oct 16 2006 Herbert Graeber +- update to version 6.6 + * Mon Sep 04 2006 Herbert Graeber - Use docbook-utils for html documentation - Require sgml-skel for build