[ghc-hint] import (#1091216)

Jens Petersen petersen at fedoraproject.org
Thu Jul 17 01:07:50 UTC 2014


commit cad13cb83c3575dc179751e30e1aa4e35c74eb14
Author: Jens Petersen <petersen at redhat.com>
Date:   Thu Jul 17 10:08:10 2014 +0900

    import (#1091216)

 .gitignore    |    1 +
 ghc-hint.spec |   98 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources       |    1 +
 3 files changed, 100 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..05370f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hint-0.4.2.0.tar.gz
diff --git a/ghc-hint.spec b/ghc-hint.spec
new file mode 100644
index 0000000..7a9abc5
--- /dev/null
+++ b/ghc-hint.spec
@@ -0,0 +1,98 @@
+# https://fedoraproject.org/wiki/Packaging:Haskell
+
+%global pkg_name hint
+
+# failing on ARM
+%ifarch %{ix86} x86_64
+%bcond_without tests
+%endif
+
+# no useful debuginfo for Haskell packages without C sources
+%global debug_package %{nil}
+
+Name:           ghc-%{pkg_name}
+Version:        0.4.2.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
+%if %{with tests}
+BuildRequires:  ghc-HUnit-devel
+%endif
+# 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
+
+
+%check
+%if %{with tests}
+%cabal test
+%endif
+
+
+%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
+* Mon May 19 2014 Jens Petersen <petersen at redhat.com> - 0.4.2.0-1
+- spec file generated by cabal-rpm-0.8.11
+- disable tests on arm for now
diff --git a/sources b/sources
index e69de29..5c6e048 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+acaed657c99b2e8eea45e6435820df23  hint-0.4.2.0.tar.gz


More information about the scm-commits mailing list