Blob Blame Raw
%global pkg_name attempt

%global common_summary Data type for handling extensible exceptions as failures

%global common_description Defines a data type, Attempt, which has a Success and Failure \
constructor. Failure contains an extensible exception.

%global ghc_pkg_deps ghc-failure-devel

%bcond_without shared
%bcond_without hscolour

# debuginfo is not useful for ghc
%global debug_package %{nil}

Name:           ghc-%{pkg_name}
Version:        0.3.0
Release:        1%{?dist}
Summary:        %{common_summary}

Group:          System Environment/Libraries
License:        BSD
URL:  {pkg_name}
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# fedora ghc archs:
ExclusiveArch:  %{ix86} x86_64 ppc alpha
BuildRequires:  ghc, ghc-doc, ghc-prof
BuildRequires:  ghc-rpm-macros >= 0.7.0
%if %{with hscolour}
BuildRequires:  hscolour
%{?ghc_pkg_deps:BuildRequires:  %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")}
%{?ghc_pkg_c_deps:BuildRequires:  %{ghc_pkg_c_deps}}

%if %{with shared}
This package provides the shared library.

%setup -q -n %{pkg_name}-%{version}


rm -rf %{buildroot}

rm -rf %{buildroot}


* Sat Sep 04 2010 Ben Boeckel <> - 0.3.0-1
- Initial package

* Sat Sep  4 2010 Fedora Haskell SIG <> - 0.3.0-0
- initial packaging for Fedora automatically generated by cabal2spec-0.22.2