# https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name hint Name: ghc-%{pkg_name} Version: 0.4.1.0 Release: 1%{?dist} Summary: Runtime Haskell interpreter License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-directory-devel BuildRequires: ghc-exceptions-devel BuildRequires: ghc-extensible-exceptions-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-ghc-devel BuildRequires: ghc-ghc-mtl-devel BuildRequires: ghc-ghc-paths-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-random-devel BuildRequires: ghc-unix-devel BuildRequires: ghc-utf8-string-devel # End cabal-rpm deps %description This library defines an 'Interpreter' monad. It allows to load Haskell modules, browse them, type-check and evaluate strings with Haskell expressions and even coerce them into values. The library is thread-safe and type-safe (even the coercion of expressions to values). It is, esentially, a huge subset of the GHC API wrapped in a simpler API. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} %build %ghc_lib_build %install %ghc_lib_install %post devel %ghc_pkg_recache %postun devel %ghc_pkg_recache %files -f %{name}.files %doc LICENSE %files devel -f %{name}-devel.files %doc AUTHORS README examples %changelog * Fri Apr 25 2014 Fedora Haskell SIG - 0.4.1.0 - spec file generated by cabal-rpm-0.8.11