130 lines
3.9 KiB
RPMSpec
130 lines
3.9 KiB
RPMSpec
|
#
|
||
|
# spec file for package ghc-bootstrap
|
||
|
#
|
||
|
# Copyright (c) 2014 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
|
||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||
|
# upon. The license for this file, and modifications and additions to the
|
||
|
# file, is the same license as for the pristine package itself (unless the
|
||
|
# license for the pristine package is not an Open Source License, in which
|
||
|
# case the license is the MIT License). An "Open Source License" is a
|
||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||
|
# published by the Open Source Initiative.
|
||
|
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
%ifarch %{ix86}
|
||
|
%define longarch i386
|
||
|
%endif
|
||
|
%ifarch ppc
|
||
|
%define longarch powerpc
|
||
|
%endif
|
||
|
%ifarch ppc64
|
||
|
%define longarch powerpc64
|
||
|
%endif
|
||
|
%ifarch ppc64le
|
||
|
%define longarch powerpc64le
|
||
|
%endif
|
||
|
%ifarch x86_64
|
||
|
%define longarch x86_64
|
||
|
%endif
|
||
|
|
||
|
%global without_hscolour 1
|
||
|
|
||
|
%global debug_package %{nil}
|
||
|
|
||
|
|
||
|
Name: ghc-bootstrap
|
||
|
Version: 7.6.3
|
||
|
Release: 0
|
||
|
Url: http://haskell.org/ghc/dist/%{version}/%{name}-bin-%{version}.tbz2
|
||
|
Summary: Binary distributions of The Glorious Glasgow Haskell Compiler
|
||
|
License: BSD-3-Clause
|
||
|
Group: Development/Languages/Other
|
||
|
Source: ghc-%{version}-%{longarch}-unknown-linux.tar.bz2
|
||
|
Source1: README.openSUSE
|
||
|
# Building binary distributions is currently broken for ppc64le
|
||
|
# use package 'ghc-bin' to bootstrap ppc64le
|
||
|
# this will be fixed in version 7.8.3 and later
|
||
|
ExclusiveArch: %{ix86} ppc ppc64 x86_64
|
||
|
Provides: ghc-compiler = %{version}
|
||
|
Provides: ghc-array
|
||
|
Provides: ghc-base
|
||
|
Provides: ghc-containers
|
||
|
Provides: ghc-deepseq
|
||
|
Provides: ghc-directory
|
||
|
Provides: ghc-filepath
|
||
|
Provides: ghc-haskell98
|
||
|
Provides: ghc-old-locale
|
||
|
Provides: ghc-old-time
|
||
|
Provides: ghc-process
|
||
|
Provides: ghc-time
|
||
|
Provides: ghc-unix
|
||
|
#devel packages
|
||
|
Provides: ghc-array-devel
|
||
|
Provides: ghc-base-devel
|
||
|
Provides: ghc-binary-devel
|
||
|
Provides: ghc-bytestring-devel
|
||
|
Provides: ghc-containers-devel
|
||
|
Provides: ghc-deepseq-devel
|
||
|
Provides: ghc-directory-devel
|
||
|
Provides: ghc-filepath-devel
|
||
|
Provides: ghc-haskell98-devel
|
||
|
Provides: ghc-old-locale-devel
|
||
|
Provides: ghc-old-time-devel
|
||
|
Provides: ghc-pretty-devel
|
||
|
Provides: ghc-process-devel
|
||
|
Provides: ghc-time-devel
|
||
|
Provides: ghc-unix-devel
|
||
|
|
||
|
AutoReq: off
|
||
|
|
||
|
%description
|
||
|
This package contains a binary distribution of "The Glorious Glasgow
|
||
|
Haskell Compilation System". See README.openSUSE on how the tarballs
|
||
|
were produced.
|
||
|
|
||
|
Do not install this package! Install 'ghc' or 'haskell-platform' instead.
|
||
|
|
||
|
Haskell is the standard purely functional programming language; the
|
||
|
current language version is Haskell 98, agreed in December 1998.
|
||
|
|
||
|
GHC is a state-of-the-art programming suite for Haskell. Included is
|
||
|
an optimising compiler generating good code for a variety of
|
||
|
platforms, together with an interactive system for convenient, quick
|
||
|
development. The distribution includes space and time profiling
|
||
|
facilities, a large collection of libraries, and support for various
|
||
|
language extensions, including concurrency, exceptions, and foreign
|
||
|
language interfaces (C, C++, etc).
|
||
|
|
||
|
A wide variety of Haskell related resources (tutorials, libraries,
|
||
|
specifications, documentation, compilers, interprbeters, references,
|
||
|
contact information, links to research groups) are available from the
|
||
|
Haskell home page at <http://www.haskell.org/>.
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n ghc-%{version}
|
||
|
cp %SOURCE1 .
|
||
|
|
||
|
%build
|
||
|
./configure --prefix=%{_prefix}
|
||
|
|
||
|
%install
|
||
|
%makeinstall
|
||
|
|
||
|
%post
|
||
|
ghc-pkg recache
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc README.openSUSE
|
||
|
%{_bindir}/*
|
||
|
%{_prefix}/lib/ghc-%{version}
|
||
|
%{_datadir}/doc/*
|
||
|
|
||
|
%changelog
|