a27a4fd132
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-bootstrap?expand=0&rev=23
178 lines
4.9 KiB
RPMSpec
178 lines
4.9 KiB
RPMSpec
#
|
|
# spec file for package ghc-bootstrap
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 s390
|
|
%define longarch s390
|
|
%endif
|
|
%ifarch s390x
|
|
%define longarch s390x
|
|
%endif
|
|
%ifarch aarch64
|
|
%define longarch aarch64
|
|
%endif
|
|
%ifarch %{arm}
|
|
%define longarch armv7
|
|
%endif
|
|
%ifarch x86_64
|
|
%define longarch x86_64
|
|
%endif
|
|
|
|
%ifarch s390 s390x
|
|
%define sysname ibm
|
|
%endif
|
|
%ifarch x86_64 %{ix86} aarch64 %{arm}
|
|
%define sysname deb8
|
|
%endif
|
|
%ifarch ppc64 ppc64le
|
|
%define sysname unknown
|
|
%endif
|
|
|
|
Name: ghc-bootstrap
|
|
Version: 8.2.1
|
|
Release: 0
|
|
Url: https://build.opensuse.org/package/view_file/devel:languages:haskell:bootstrap
|
|
Summary: Binary distributions of The Glorious Glasgow Haskell Compiler
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Other
|
|
Source1: README.openSUSE
|
|
Source2: LICENSE
|
|
Source10: ghc-8.2.1-i386-deb8-linux.tar.xz
|
|
Source12: ghc-8.2.1-powerpc64-unknown-linux.tar.xz
|
|
Source13: ghc-8.2.1-powerpc64le-unknown-linux.tar.xz
|
|
Source14: ghc-8.2.1-x86_64-deb8-linux.tar.xz
|
|
Source16: ghc-8.2.1-s390x-ibm-linux.tar.xz
|
|
Source17: ghc-8.2.1-aarch64-deb8-linux.tar.xz
|
|
Source18: ghc-8.2.1-armv7-deb8-linux.tar.xz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: fdupes
|
|
BuildRequires: gmp-devel
|
|
BuildRequires: libncurses5
|
|
%ifarch aarch64 %{arm}
|
|
BuildRequires: binutils-gold
|
|
Requires: binutils-gold
|
|
%endif
|
|
Requires: gmp-devel
|
|
Requires: libncurses5
|
|
|
|
ExclusiveArch: %{ix86} ppc64 ppc64le x86_64 s390x aarch64 %{arm}
|
|
Provides: ghc-bootstrap-devel
|
|
|
|
Conflicts: ghc
|
|
Conflicts: ghc-compiler
|
|
Conflicts: ghc-Cabal-devel
|
|
Conflicts: ghc-array-devel
|
|
Conflicts: ghc-base-devel
|
|
Conflicts: ghc-binary-devel
|
|
Conflicts: ghc-bytestring-devel
|
|
Conflicts: ghc-containers-devel
|
|
Conflicts: ghc-deepseq-devel
|
|
Conflicts: ghc-directory-devel
|
|
Conflicts: ghc-filepath-devel
|
|
Conflicts: ghc-ghc-devel
|
|
Conflicts: ghc-haskeline-devel
|
|
Conflicts: ghc-haskell2010-devel
|
|
Conflicts: ghc-haskell98-devel
|
|
Conflicts: ghc-hoopl-devel
|
|
Conflicts: ghc-hpc-devel
|
|
Conflicts: ghc-old-locale-devel
|
|
Conflicts: ghc-old-time-devel
|
|
Conflicts: ghc-pretty-devel
|
|
Conflicts: ghc-process-devel
|
|
Conflicts: ghc-template-haskell-devel
|
|
Conflicts: ghc-terminfo-devel
|
|
Conflicts: ghc-time-devel
|
|
Conflicts: ghc-transformers-devel
|
|
Conflicts: ghc-unix-devel
|
|
Conflicts: ghc-xhtml-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, interpreters, references,
|
|
contact information, links to research groups) are available from the
|
|
Haskell home page at <http://www.haskell.org/>.
|
|
|
|
|
|
%prep
|
|
cp %SOURCE1 .
|
|
cp %SOURCE2 .
|
|
cp %SOURCE10 .
|
|
cp %SOURCE12 .
|
|
cp %SOURCE13 .
|
|
cp %SOURCE14 .
|
|
cp %SOURCE16 .
|
|
cp %SOURCE17 .
|
|
cp %SOURCE18 .
|
|
|
|
%build
|
|
tar Jxf ghc-%{version}-%{longarch}-%{sysname}-linux.tar.xz
|
|
cd ghc-%{version}
|
|
./configure --prefix=%{_prefix}
|
|
|
|
%install
|
|
cd ghc-%{version}
|
|
%makeinstall
|
|
%fdupes -s %{buildroot}
|
|
|
|
%post
|
|
ghc-pkg recache
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README.openSUSE
|
|
%doc LICENSE
|
|
%{_bindir}/*
|
|
%{_prefix}/lib/ghc-%{version}
|
|
%{_datadir}/doc/*
|
|
|
|
%ifarch %{ix86} x86_64 aarch64 %{arm}
|
|
%{_mandir}/man1/ghc.1*
|
|
%endif
|
|
|
|
%changelog
|