Accepting request 140491 from devel:languages:haskell

Do not disable debug packages as that breaks Factory builds. Set bootstrapping flags for faster build. That gives us all we need to do self-bootstrapping as the next step.

OBS-URL: https://build.opensuse.org/request/show/140491
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc?expand=0&rev=2
This commit is contained in:
Stephan Kulow 2012-11-08 06:59:23 +00:00 committed by Git OBS Bridge
commit cc25c937fd
2 changed files with 48 additions and 46 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Nov 6 14:41:06 UTC 2012 - peter.trommler@ohm-hochschule.de
- generate debug packages for Factory
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Oct 14 07:41:59 UTC 2012 - peter.trommler@ohm-hochschule.de Sun Oct 14 07:41:59 UTC 2012 - peter.trommler@ohm-hochschule.de

View File

@ -1,6 +1,7 @@
# #
# spec file for package ghc # spec file for package ghc
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011, 2012 Peter Trommler peter.trommler@ohm-hochschule.de # Copyright (c) 2011, 2012 Peter Trommler peter.trommler@ohm-hochschule.de
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@ -15,22 +16,22 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# To bootstrap a new version of ghc, uncomment the following: # To bootstrap a new version of ghc, uncomment the following:
#%%global ghc_bootstrapping 1 %global ghc_bootstrapping 1
#%%{?ghc_bootstrap} %{?ghc_bootstrap}
%global without_hscolour 1 %global without_hscolour 1
#%%global without_manual 1 #%%global without_manual 1
%global debug_package %{nil} #%%global debug_package %{nil}
Name: ghc Name: ghc
Version: 7.4.1 Version: 7.4.1
Release: 1 Release: 0
Group: Development/Languages/Other
License: BSD-3-Clause
Url: http://haskell.org/ghc/dist/%{version}/%{name}-%{version}-src.tar.bz2 Url: http://haskell.org/ghc/dist/%{version}/%{name}-%{version}-src.tar.bz2
Summary: The Glorious Glasgow Haskell Compiler Summary: The Glorious Glasgow Haskell Compiler
License: BSD-3-Clause
Group: Development/Languages/Other
# Remove after initial bootstrap # Remove after initial bootstrap
%if %{defined without_binary_ghc} %if %{defined without_binary_ghc}
@ -43,61 +44,59 @@ BuildRequires: ghc-compiler = %version
BuildRequires: ghc-bytestring-devel BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel BuildRequires: ghc-containers-devel
BuildRequires: ghc-directory-devel BuildRequires: ghc-directory-devel
BuildREquires: ghc-haskell98-devel BuildRequires: ghc-haskell98-devel
BuildRequires: ghc-pretty-devel BuildRequires: ghc-pretty-devel
BuildRequires: ghc-process-devel BuildRequires: ghc-process-devel
# These are needed so OBS will keep those packages # These are needed so OBS will keep those packages
# Alternatively a Keep: line could be added to prjconf # Alternatively a Keep: line could be added to prjconf
%if 0%{?opensuse_bs} %if 0%{?opensuse_bs}
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-unix-devel
BuildRequires: ghc-array-devel BuildRequires: ghc-array-devel
BuildRequires: ghc-old-locale-devel
BuildRequires: ghc-old-time-devel
BuildRequires: ghc-random-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-binary-devel BuildRequires: ghc-binary-devel
BuildRequires: ghc-deepseq-devel BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-old-locale-devel
BuildRequires: ghc-old-time-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-unix-devel
%if %{undefined without_hscolour} %if %{undefined without_hscolour}
BuildRequires: ghc-containers
BuildRequires: ghc-base
BuildRequires: ghc-haskell98
BuildRequires: ghc-array BuildRequires: ghc-array
BuildRequires: ghc-random BuildRequires: ghc-base
BuildRequires: ghc-time BuildRequires: ghc-containers
BuildRequires: ghc-process
BuildRequires: ghc-directory
BuildRequires: ghc-unix
BuildRequires: ghc-old-time
BuildRequires: ghc-old-locale
BuildRequires: ghc-filepath
BuildRequires: ghc-deepseq BuildRequires: ghc-deepseq
BuildRequires: ghc-directory
BuildRequires: ghc-filepath
BuildRequires: ghc-haskell98
BuildRequires: ghc-old-locale
BuildRequires: ghc-old-time
BuildRequires: ghc-process
BuildRequires: ghc-time
BuildRequires: ghc-unix
%endif %endif
%endif %endif
# Remove after initial bootstrap # Remove after initial bootstrap
%endif %endif
#end bootstrap #end bootstrap
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: ghc-rpm-macros >= 0.91 BuildRequires: ghc-rpm-macros >= 0.91
BuildRequires: glibc-devel
BuildRequires: gmp-devel BuildRequires: gmp-devel
BuildRequires: libffi-devel BuildRequires: libffi-devel
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: gcc
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: glibc-devel
%if %{undefined without_manual} %if %{undefined without_manual}
BuildRequires: libxslt
BuildRequires: docbook-xsl-stylesheets
BuildRequires: docbook-utils BuildRequires: docbook-utils
BuildRequires: docbook-xsl-stylesheets
BuildRequires: libxslt
%endif %endif
%if %{undefined without_haddock} && %{undefined without_hscolour} %if %{undefined without_haddock} && %{undefined without_hscolour}
BuildRequires: hscolour BuildRequires: hscolour
%endif %endif
PreReq: update-alternatives PreReq: update-alternatives
Requires: ghc-compiler = %{version}-%{release} Requires: ghc-compiler = %{version}-%{release}
Requires: ghc-libraries = %{version}-%{release}
Requires: ghc-ghc-devel = %{version}-%{release} Requires: ghc-ghc-devel = %{version}-%{release}
Requires: ghc-libraries = %{version}-%{release}
Source: http://haskell.org/ghc/dist/%{version}/%{name}-%{version}-src.tar.bz2 Source: http://haskell.org/ghc/dist/%{version}/%{name}-%{version}-src.tar.bz2
# remove after initial bootstrap # remove after initial bootstrap
# Binary distributions for initial bootstrap # Binary distributions for initial bootstrap
@ -139,7 +138,6 @@ Haskell home page at <http://www.haskell.org/>.
%package compiler %package compiler
Summary: GHC compiler and utilities Summary: GHC compiler and utilities
License: BSD-3-Clause
Group: Development/Languages/Other Group: Development/Languages/Other
Requires: gcc Requires: gcc
Requires: ghc-base-devel Requires: ghc-base-devel
@ -198,7 +196,6 @@ To install all of GHC install package ghc.
%package libraries %package libraries
Summary: GHC development libraries meta package Summary: GHC development libraries meta package
License: BSD-3-Clause
Group: Development/Libraries/Other Group: Development/Libraries/Other
Requires: ghc-compiler = %{version}-%{release} Requires: ghc-compiler = %{version}-%{release}
Obsoletes: ghc-devel < %{version}-%{release} Obsoletes: ghc-devel < %{version}-%{release}