add new bootstrapping mode using ghc_bootstrap (ghc-rpm-macros-0.13.5)

- BR same ghc version unless ghc_bootstrapping defined
- use ghc_check_bootstrap
- put dyn before p in GhcLibWays
This commit is contained in:
Jens Petersen 2011-06-17 18:19:04 +09:00
parent 012f178446
commit 19346d4500

View File

@ -1,17 +1,10 @@
# Shared haskell libraries are supported for x86* archs # Shared haskell libraries are supported for x86* archs
# (disabled for other archs in ghc-rpm-macros) # (disabled for other archs in ghc-rpm-macros)
# bootstrap build skips shared and prof libs, documentation, and testsuite # to bootstrap a new version of ghc, uncomment the following:
%if %{defined ghc_bootstrap} #%%global ghc_bootstrapping 1
# test builds can made faster and smaller by disabling profiled libraries #%%{?ghc_bootstrap}
# (currently libHSrts_thr_p.a breaks no prof build) #%%global without_hscolour 1
%global ghc_without_shared 1
%global without_prof 1
%global without_haddock 1
# docbook manuals (users_guide, etc)
%global without_manual 1
%global without_testsuite 1
%endif
# archs that use system libffi # archs that use system libffi
%global libffi_archs %{ix86} x86_64 %global libffi_archs %{ix86} x86_64
@ -53,8 +46,8 @@ Obsoletes: ghc-dph-prim-par < 0.5, ghc-dph-prim-par-devel < 0.5, ghc-dph-prim-pa
Obsoletes: ghc-dph-prim-seq < 0.5, ghc-dph-prim-seq-devel < 0.5, ghc-dph-prim-seq-prof < 0.5 Obsoletes: ghc-dph-prim-seq < 0.5, ghc-dph-prim-seq-devel < 0.5, ghc-dph-prim-seq-prof < 0.5
Obsoletes: ghc-dph-seq < 0.5, ghc-dph-seq-devel < 0.5, ghc-dph-seq-prof < 0.5 Obsoletes: ghc-dph-seq < 0.5, ghc-dph-seq-devel < 0.5, ghc-dph-seq-prof < 0.5
Obsoletes: ghc-feldspar-language < 0.4, ghc-feldspar-language-devel < 0.4, ghc-feldspar-language-prof < 0.4 Obsoletes: ghc-feldspar-language < 0.4, ghc-feldspar-language-devel < 0.4, ghc-feldspar-language-prof < 0.4
BuildRequires: ghc %{!?ghc_bootstrap: = %{version}} BuildRequires: ghc %{!?ghc_bootstrapping: = %{version}}
BuildRequires: ghc-rpm-macros >= 0.13 BuildRequires: ghc-rpm-macros >= 0.13.4
BuildRequires: gmp-devel, libffi-devel BuildRequires: gmp-devel, libffi-devel
BuildRequires: ghc-directory-devel, ghc-process-devel, ghc-pretty-devel, ghc-containers-devel, ghc-haskell98-devel, ghc-bytestring-devel BuildRequires: ghc-directory-devel, ghc-process-devel, ghc-pretty-devel, ghc-containers-devel, ghc-haskell98-devel, ghc-bytestring-devel
# for internal terminfo # for internal terminfo
@ -65,7 +58,7 @@ Requires: ghc-base-devel
%if %{undefined without_manual} %if %{undefined without_manual}
BuildRequires: libxslt, docbook-style-xsl BuildRequires: libxslt, docbook-style-xsl
%endif %endif
%if %{undefined without_hscolour} %if %{undefined without_haddock} && %{undefined without_hscolour}
BuildRequires: hscolour BuildRequires: hscolour
%endif %endif
%if %{undefined without_testsuite} %if %{undefined without_testsuite}
@ -179,10 +172,12 @@ rm -r ghc-tarballs/libffi
%build %build
%ghc_check_bootstrap
# http://hackage.haskell.org/trac/ghc/wiki/Platforms # http://hackage.haskell.org/trac/ghc/wiki/Platforms
# cf https://github.com/gentoo-haskell/gentoo-haskell/tree/master/dev-lang/ghc # cf https://github.com/gentoo-haskell/gentoo-haskell/tree/master/dev-lang/ghc
cat > mk/build.mk << EOF cat > mk/build.mk << EOF
GhcLibWays = v %{!?without_prof:p} %{!?ghc_without_shared:dyn} GhcLibWays = v %{!?ghc_without_shared:dyn} %{!?without_prof:p}
%if %{defined without_haddock} %if %{defined without_haddock}
HADDOCK_DOCS = NO HADDOCK_DOCS = NO
%endif %endif
@ -385,10 +380,11 @@ fi
%changelog %changelog
* Fri Jun 17 2011 Jens Petersen <petersen@redhat.com> - 7.0.4-26 * Fri Jun 17 2011 Jens Petersen <petersen@redhat.com> - 7.0.4-26
- add ghc_bootstrap build mode using: ghc_without_shared, without_prof, - BR same ghc version unless ghc_bootstrapping defined
without_haddock, without_manual, without_testsuite
- add libffi_archs - add libffi_archs
- use ghc-rpm-macros-0.13.4 for ghc_check_bootstrap
- drop the quick build profile - drop the quick build profile
- put dyn before p in GhcLibWays
* Thu Jun 16 2011 Jens Petersen <petersen@redhat.com> - 7.0.4-25 * Thu Jun 16 2011 Jens Petersen <petersen@redhat.com> - 7.0.4-25
- update to 7.0.4 bugfix release - update to 7.0.4 bugfix release