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

View File

@ -1,6 +1,7 @@
#
# 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
#
# 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/
#
# To bootstrap a new version of ghc, uncomment the following:
#%%global ghc_bootstrapping 1
#%%{?ghc_bootstrap}
%global ghc_bootstrapping 1
%{?ghc_bootstrap}
%global without_hscolour 1
#%%global without_manual 1
%global debug_package %{nil}
#%%global debug_package %{nil}
Name: ghc
Version: 7.4.1
Release: 1
Group: Development/Languages/Other
License: BSD-3-Clause
Release: 0
Url: http://haskell.org/ghc/dist/%{version}/%{name}-%{version}-src.tar.bz2
Summary: The Glorious Glasgow Haskell Compiler
License: BSD-3-Clause
Group: Development/Languages/Other
# Remove after initial bootstrap
%if %{defined without_binary_ghc}
@ -43,61 +44,59 @@ BuildRequires: ghc-compiler = %version
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-directory-devel
BuildREquires: ghc-haskell98-devel
BuildRequires: ghc-pretty-devel
BuildRequires: ghc-haskell98-devel
BuildRequires: ghc-pretty-devel
BuildRequires: ghc-process-devel
# These are needed so OBS will keep those packages
# Alternatively a Keep: line could be added to prjconf
%if 0%{?opensuse_bs}
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-unix-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-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}
BuildRequires: ghc-containers
BuildRequires: ghc-base
BuildRequires: ghc-haskell98
BuildRequires: ghc-array
BuildRequires: ghc-random
BuildRequires: ghc-time
BuildRequires: ghc-process
BuildRequires: ghc-directory
BuildRequires: ghc-unix
BuildRequires: ghc-old-time
BuildRequires: ghc-old-locale
BuildRequires: ghc-filepath
BuildRequires: ghc-base
BuildRequires: ghc-containers
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
# Remove after initial bootstrap
%endif
#end bootstrap
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: ghc-rpm-macros >= 0.91
BuildRequires: glibc-devel
BuildRequires: gmp-devel
BuildRequires: libffi-devel
BuildRequires: ncurses-devel
BuildRequires: gcc
BuildRequires: pkg-config
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: glibc-devel
%if %{undefined without_manual}
BuildRequires: libxslt
BuildRequires: docbook-xsl-stylesheets
BuildRequires: docbook-utils
BuildRequires: docbook-xsl-stylesheets
BuildRequires: libxslt
%endif
%if %{undefined without_haddock} && %{undefined without_hscolour}
BuildRequires: hscolour
%endif
PreReq: update-alternatives
Requires: ghc-compiler = %{version}-%{release}
Requires: ghc-libraries = %{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
# remove after initial bootstrap
# Binary distributions for initial bootstrap
@ -138,11 +137,10 @@ contact information, links to research groups) are available from the
Haskell home page at <http://www.haskell.org/>.
%package compiler
Summary: GHC compiler and utilities
License: BSD-3-Clause
Group: Development/Languages/Other
Requires: gcc
Requires: ghc-base-devel
Summary: GHC compiler and utilities
Group: Development/Languages/Other
Requires: gcc
Requires: ghc-base-devel
Requires(post): update-alternatives
Requires(postun): update-alternatives
@ -197,14 +195,13 @@ To install all of GHC install package ghc.
%global version %{ghc_version_override}
%package libraries
Summary: GHC development libraries meta package
License: BSD-3-Clause
Group: Development/Libraries/Other
Requires: ghc-compiler = %{version}-%{release}
Obsoletes: ghc-devel < %{version}-%{release}
Provides: ghc-devel = %{version}-%{release}
Obsoletes: ghc-prof < %{version}-%{release}
Provides: ghc-prof = %{version}-%{release}
Summary: GHC development libraries meta package
Group: Development/Libraries/Other
Requires: ghc-compiler = %{version}-%{release}
Obsoletes: ghc-devel < %{version}-%{release}
Provides: ghc-devel = %{version}-%{release}
Obsoletes: ghc-prof < %{version}-%{release}
Provides: ghc-prof = %{version}-%{release}
%{?ghc_packages_list:Requires: %(echo %{ghc_packages_list} | sed -e "s/\([^ ]*\)-\([^ ]*\)/ghc-\1-devel = \2-%{release},/g")}
%description libraries