Accepting request 283230 from devel:languages:haskell

1

OBS-URL: https://build.opensuse.org/request/show/283230
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc?expand=0&rev=21
This commit is contained in:
Dominique Leuenberger 2015-01-29 08:58:08 +00:00 committed by Git OBS Bridge
commit 04a1817d7b
3 changed files with 1935 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jan 12 14:20:32 UTC 2015 - peter.trommler@ohm-hochschule.de
- add patch 0001-implement-native-code-generator-for-ppc64.patch
* native code generation improved compilation speed
* fewer errors in testsuite than with C back end
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Dec 13 09:36:11 UTC 2014 - peter.trommler@ohm-hochschule.de Sat Dec 13 09:36:11 UTC 2014 - peter.trommler@ohm-hochschule.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package ghc # spec file for package ghc
# #
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,7 +16,7 @@
# #
%global unregisterised_archs ppc64 ppc64le s390 s390s %global unregisterised_archs ppc64le s390 s390s
Name: ghc Name: ghc
Version: 7.8.3 Version: 7.8.3
@ -46,6 +46,9 @@ BuildRequires: docbook-utils
BuildRequires: docbook-xsl-stylesheets BuildRequires: docbook-xsl-stylesheets
BuildRequires: libxslt BuildRequires: libxslt
%endif %endif
# Patch 19 changes build system
BuildRequires: autoconf
BuildRequires: automake
PreReq: update-alternatives PreReq: update-alternatives
Requires: ghc-compiler = %{version}-%{release} Requires: ghc-compiler = %{version}-%{release}
@ -71,6 +74,8 @@ Patch16: D177.patch
Patch17: ghc.git-e18525f.patch Patch17: ghc.git-e18525f.patch
# PATCH-FIX-UPSTREAM D560.patch peter.trommler@ohm-hochschule.de -- Fix loading of PIC register. See https://phabricator.haskell.org/D560. # PATCH-FIX-UPSTREAM D560.patch peter.trommler@ohm-hochschule.de -- Fix loading of PIC register. See https://phabricator.haskell.org/D560.
Patch18: D560.patch Patch18: D560.patch
# PATCH-FEATURE-UPSTREAM 0001-implement-native-code-generator-for-ppc64.patch peter.trommler@ohm-hochschule.de -- Implement native code generator for ppc64. Haskell Trac #9863.
Patch19: 0001-implement-native-code-generator-for-ppc64.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -170,8 +175,12 @@ except the ghc library, which is installed by the toplevel ghc metapackage.
%patch16 -p1 %patch16 -p1
%patch17 -p1 %patch17 -p1
%patch18 -p1 %patch18 -p1
%patch19 -p1
%build %build
# Patch 19 modifies build system
perl boot
# Check if bootstrap is required, i.e. version is different from ghc's version # Check if bootstrap is required, i.e. version is different from ghc's version
# Note: Cannot use ghc_version macro here as we defined version override earlier # Note: Cannot use ghc_version macro here as we defined version override earlier
%if "%version" != "%(ghc --numeric-version)" %if "%version" != "%(ghc --numeric-version)"