# https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name extra # testsuite fails on armv7 with ghc-7.8.4 # "extra-test: internal error: evacuate(static): strange closure type 63800" %ifnarch armv7hl %bcond_without tests %endif Name: ghc-%{pkg_name} Version: 1.4.2 Release: 1%{?dist} Summary: Library of extra functions License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://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-filepath-devel BuildRequires: ghc-process-devel BuildRequires: ghc-time-devel BuildRequires: ghc-unix-devel %if %{with tests} BuildRequires: ghc-QuickCheck-devel %endif # End cabal-rpm deps %description A library of extra functions for the standard Haskell libraries. Most functions are simple additions, filling out missing functionality. A few functions are available in later versions of GHC, but this package makes them available back to GHC 7.2. The module "Extra" documents all functions provided by this library. Modules such as "Data.List.Extra" provide extra functions over "Data.List" and also reexport "Data.List". Users are recommended to replace "Data.List" imports with "Data.List.Extra" if they need the extra functionality. %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 rm %{buildroot}%{ghc_pkgdocdir}/LICENSE %check %if %{with tests} %cabal test %endif %post devel %ghc_pkg_recache %postun devel %ghc_pkg_recache %files -f %{name}.files %license LICENSE %files devel -f %{name}-devel.files %doc README.md %changelog * Mon Sep 28 2015 Jens Petersen - 1.4.2-1 - spec file generated by cabal-rpm-0.9.7 - disable tests on armv7