File haskell-platform.spec of Package haskell-platform
#
# spec file for package haskell-platform
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#
%global pkg_name haskell-platform
%global common_summary Standard Haskell distribution
%global common_description Haskell Platform is a suite of stable and well used Haskell libraries\
and tools. It provides a good starting environment for Haskell development.
%define without_haddock 1
%define ghc_without_shared 1
# ghci (ghc library) is not officially part of Haskell Platform
%define platform_progs()\
%{?1}Requires: ghc-compiler = 7.6.3\
%{?1}Requires: cabal-install = 1.16.0.2\
%{?1}Requires: alex = 3.0.5\
%{?1}Requires: happy = 1.18.10\
%{?1}Requires: hscolour = 1.20.3\
%{nil}
%global platform_progs_versions ghc-compiler = 7.6.3 cabal-install = 1.16.0.2 alex = 3.0.5 happy = 1.18.10 hscolour = 1.20.3
Name: haskell-platform
Version: 2013.2.0.0
Release: 0
Summary: Standard Haskell distribution
License: BSD-3-Clause
Group: Development/Tools/Other
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# BEGIN cabal2spec
Url: http://hackage.haskell.org/platform
Source0: http://lambda.haskell.org/platform/download/%{version}/%{name}-%{version}.tar.gz
ExclusiveArch: %{ix86} x86_64 ppc
BuildRequires: %{platform_progs_versions}
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-GLURaw-devel = 1.3.0.0
BuildRequires: ghc-GLUT-devel = 2.4.0.0
BuildRequires: ghc-HTTP-devel = 4000.2.8
BuildRequires: ghc-HUnit-devel = 1.2.5.2
BuildRequires: ghc-OpenGL-devel = 2.8.0.0
BuildRequires: ghc-OpenGLRaw-devel = 1.3.0.0
BuildRequires: ghc-QuickCheck-devel = 2.6
BuildRequires: ghc-async-devel = 2.0.1.4
BuildRequires: ghc-attoparsec-devel = 0.10.4.0
BuildRequires: ghc-case-insensitive-devel = 1.0.0.1
BuildRequires: ghc-cgi-devel = 3001.1.7.5
BuildRequires: ghc-fgl-devel = 5.4.2.4
BuildRequires: ghc-hashable-devel = 1.1.2.5
BuildRequires: ghc-haskell-src-devel = 1.0.1.5
BuildRequires: ghc-html-devel = 1.0.1.2
BuildRequires: ghc-libraries = 7.6.3
BuildRequires: ghc-mtl-devel = 2.1.2
BuildRequires: ghc-network-devel = 2.4.1.2
BuildRequires: ghc-parallel-devel = 3.2.0.3
BuildRequires: ghc-parsec-devel = 3.1.3
BuildRequires: ghc-primitive = 0.5.0.1
BuildRequires: ghc-random-devel = 1.0.1.1
BuildRequires: ghc-regex-base-devel = 0.93.2
BuildRequires: ghc-regex-compat-devel = 0.95.1
BuildRequires: ghc-regex-posix-devel = 0.95.2
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-split-devel = 0.2.2
BuildRequires: ghc-stm-devel = 2.4.2
BuildRequires: ghc-syb-devel = 0.4.0
BuildRequires: ghc-text-devel = 0.11.3.1
BuildRequires: ghc-transformers-devel = 0.3.0.0
BuildRequires: ghc-unordered-containers-devel = 0.2.3.0
BuildRequires: ghc-vector-devel = 0.10.0.1
BuildRequires: ghc-xhtml-devel = 3000.2.1
BuildRequires: ghc-zlib-devel = 0.5.4.1
# END cabal2spec
%platform_progs
Requires: ghc-haskell-platform-devel = %{version}
%description
%{common_description}
%package -n ghc-%{pkg_name}-devel
Summary: Haskell Platform library development files
Group: Development/Languages/Other
Requires: ghc-compiler
Requires(post): ghc-compiler
Requires(postun): ghc-compiler
Requires: %{name} = %{version}-%{release}
# order here follows http://hackage.haskell.org/platform/changelog.html
Requires: ghc-GLURaw-devel = 1.3.0.0
Requires: ghc-GLUT-devel = 2.4.0.0
Requires: ghc-HTTP-devel = 4000.2.8
Requires: ghc-HUnit-devel = 1.2.5.2
Requires: ghc-OpenGL-devel = 2.8.0.0
Requires: ghc-OpenGLRaw-devel = 1.3.0.0
Requires: ghc-QuickCheck-devel = 2.6
Requires: ghc-async-devel = 2.0.1.4
Requires: ghc-attoparsec-devel = 0.10.4.0
Requires: ghc-case-insensitive-devel = 1.0.0.1
Requires: ghc-cgi-devel = 3001.1.7.5
Requires: ghc-fgl-devel = 5.4.2.4
Requires: ghc-hashable-devel = 1.1.2.5
Requires: ghc-haskell-src-devel = 1.0.1.5
Requires: ghc-html-devel = 1.0.1.2
Requires: ghc-libraries = 7.6.3
Requires: ghc-mtl-devel = 2.1.2
Requires: ghc-network-devel = 2.4.1.2
Requires: ghc-parallel-devel = 3.2.0.3
Requires: ghc-parsec-devel = 3.1.3
Requires: ghc-primitive = 0.5.0.1
Requires: ghc-random-devel = 1.0.1.1
Requires: ghc-regex-base-devel = 0.93.2
Requires: ghc-regex-compat-devel = 0.95.1
Requires: ghc-regex-posix-devel = 0.95.2
Requires: ghc-split-devel = 0.2.2
Requires: ghc-stm-devel = 2.4.2
Requires: ghc-syb-devel = 0.4.0
Requires: ghc-text-devel = 0.11.3.1
Requires: ghc-transformers-devel = 0.3.0.0
Requires: ghc-unordered-containers-devel = 0.2.3.0
Requires: ghc-vector-devel = 0.10.0.1
Requires: ghc-xhtml-devel = 3000.2.1
Requires: ghc-zlib-devel = 0.5.4.1
%description -n ghc-%{pkg_name}-devel
%{common_description}
This package contains the development files.
%global top_prefix packages/%{name}-%{version}
%prep
%setup -q -n %{name}-%{version}
%build
cd %{top_prefix}
%ghc_lib_build
%install
TOPDIR=$(pwd)
cd %{top_prefix}
%ghc_lib_install
mv ghc-%{name}-devel.files $TOPDIR
if [ -e debugsources.list ]; then
mv debugsources.list $TOPDIR;
fi
%post -n ghc-%{pkg_name}-devel
%ghc_pkg_recache
%postun -n ghc-%{pkg_name}-devel
%ghc_pkg_recache
%files -n ghc-%{pkg_name}-devel -f ghc-%{pkg_name}-devel.files
%defattr(-,root,root,-)
%doc %{top_prefix}/LICENSE
%files
%defattr(-,root,root,-)
%doc %{top_prefix}/LICENSE
%changelog