From da1a4b571def047ea72ea555ff4d1b1ca607d60c0f581f172492bd8885d8587f Mon Sep 17 00:00:00 2001 From: Peter Trommler Date: Sun, 14 Sep 2014 17:43:08 +0000 Subject: [PATCH] Accepting request 249159 from devel:languages:haskell:compiler Coolo needs this package to bootstrap ghc for openSUSE 13.2 OBS-URL: https://build.opensuse.org/request/show/249159 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-bootstrap?expand=0&rev=1 --- .gitattributes | 23 ++++ .gitignore | 1 + README.openSUSE | 12 ++ ghc-7.6.3-i386-unknown-linux.tar.bz2 | 3 + ghc-7.6.3-powerpc-unknown-linux.tar.bz2 | 3 + ghc-7.6.3-powerpc64-unknown-linux.tar.bz2 | 3 + ghc-7.6.3-x86_64-unknown-linux.tar.bz2 | 3 + ghc-bootstrap.changes | 5 + ghc-bootstrap.spec | 129 ++++++++++++++++++++++ 9 files changed, 182 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 README.openSUSE create mode 100644 ghc-7.6.3-i386-unknown-linux.tar.bz2 create mode 100644 ghc-7.6.3-powerpc-unknown-linux.tar.bz2 create mode 100644 ghc-7.6.3-powerpc64-unknown-linux.tar.bz2 create mode 100644 ghc-7.6.3-x86_64-unknown-linux.tar.bz2 create mode 100644 ghc-bootstrap.changes create mode 100644 ghc-bootstrap.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/README.openSUSE b/README.openSUSE new file mode 100644 index 0000000..8306fb4 --- /dev/null +++ b/README.openSUSE @@ -0,0 +1,12 @@ +Generating binary distributions for ghc bootstrap in Factory +============================================================ + +1. Download source distribution from http://www.haskell.org/ghc/download +2. Apply patches for openSUSE + * https://build.opensuse.org/package/show/devel:languages:haskell:bootstrap/ghc-prepare-binary-distributions +3. Build binary distribution `make binary-dist` +4. Download rpms from: + * https://build.opensuse.org/package/binaries/devel:languages:haskell:bootstrap/ghc-prepare-binary-distributions?repository=openSUSE_Factory + * https://build.opensuse.org/package/binaries/devel:languages:haskell:bootstrap/ghc-prepare-binary-distributions?repository=openSUSE_Factory_PowerPC_standard +5. Extract tarball `rpm2cpio ghc-prepare-binary-distributions*.rpm | cpio -idmv` +6. Copy tarball to project devel:languages:haskell:compiler/ghc-bootstrap diff --git a/ghc-7.6.3-i386-unknown-linux.tar.bz2 b/ghc-7.6.3-i386-unknown-linux.tar.bz2 new file mode 100644 index 0000000..dbfa75c --- /dev/null +++ b/ghc-7.6.3-i386-unknown-linux.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:368e24fdac1f8d255dc9dd9ab61bf538c5d45ad932bf6fd0c12bf3e3659aa93a +size 46512445 diff --git a/ghc-7.6.3-powerpc-unknown-linux.tar.bz2 b/ghc-7.6.3-powerpc-unknown-linux.tar.bz2 new file mode 100644 index 0000000..56799ce --- /dev/null +++ b/ghc-7.6.3-powerpc-unknown-linux.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10ef109879e48c97df875d8a9911662c0f1fb7e583c2435a953a360094c5078c +size 49598781 diff --git a/ghc-7.6.3-powerpc64-unknown-linux.tar.bz2 b/ghc-7.6.3-powerpc64-unknown-linux.tar.bz2 new file mode 100644 index 0000000..bbf3eab --- /dev/null +++ b/ghc-7.6.3-powerpc64-unknown-linux.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f577a57cb12dca6d490cdb1bc6191f08246eebf68001568ba794d92b7ed73c7 +size 72425425 diff --git a/ghc-7.6.3-x86_64-unknown-linux.tar.bz2 b/ghc-7.6.3-x86_64-unknown-linux.tar.bz2 new file mode 100644 index 0000000..7670324 --- /dev/null +++ b/ghc-7.6.3-x86_64-unknown-linux.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1fc20218facac511ff73f94d7f2d603548eac3427237c68da5e5e2ddfe542649 +size 46315913 diff --git a/ghc-bootstrap.changes b/ghc-bootstrap.changes new file mode 100644 index 0000000..d23722e --- /dev/null +++ b/ghc-bootstrap.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Sep 14 17:31:00 UTC 2014 - peter.trommler@ohm-hochschule.de + +- initial packaging (version 7.6.3) + diff --git a/ghc-bootstrap.spec b/ghc-bootstrap.spec new file mode 100644 index 0000000..af09e3f --- /dev/null +++ b/ghc-bootstrap.spec @@ -0,0 +1,129 @@ +# +# 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 . + + +%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