| 1 | %global pkg_name MonadCatchIO-mtl |
|---|
| 2 | |
|---|
| 3 | %global common_summary Haskell %{pkg_name} library |
|---|
| 4 | |
|---|
| 5 | %global common_description A %{pkg_name} library for Haskell. |
|---|
| 6 | |
|---|
| 7 | # add any Haskell library dependencies here: |
|---|
| 8 | %global ghc_pkg_deps ghc-mtl-devel |
|---|
| 9 | |
|---|
| 10 | # add any foreign library dependencies here: |
|---|
| 11 | #%%global ghc_pkg_c_deps @CDEP1@-devel |
|---|
| 12 | |
|---|
| 13 | %bcond_without shared |
|---|
| 14 | |
|---|
| 15 | # debuginfo is not useful for ghc |
|---|
| 16 | %global debug_package %{nil} |
|---|
| 17 | |
|---|
| 18 | Name: ghc-%{pkg_name} |
|---|
| 19 | Version: 0.3.0.1 |
|---|
| 20 | Release: 0.%{scriptsversion}%{?dist} |
|---|
| 21 | Summary: %{common_summary} |
|---|
| 22 | |
|---|
| 23 | Group: System Environment/Libraries |
|---|
| 24 | License: BSD |
|---|
| 25 | URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg_name} |
|---|
| 26 | Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz |
|---|
| 27 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
|---|
| 28 | # fedora ghc archs: |
|---|
| 29 | ExclusiveArch: %{ix86} x86_64 ppc alpha |
|---|
| 30 | BuildRequires: ghc, ghc-doc, ghc-prof |
|---|
| 31 | BuildRequires: ghc-rpm-macros >= 0.7.0 |
|---|
| 32 | %{?ghc_pkg_deps:BuildRequires: %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")} |
|---|
| 33 | %{?ghc_pkg_c_deps:BuildRequires: %{ghc_pkg_c_deps}} |
|---|
| 34 | |
|---|
| 35 | %description |
|---|
| 36 | %{common_description} |
|---|
| 37 | %if %{with shared} |
|---|
| 38 | This package provides the shared library. |
|---|
| 39 | %endif |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | %{?ghc_lib_package} |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | %prep |
|---|
| 46 | %setup -q -n %{pkg_name}-%{version} |
|---|
| 47 | |
|---|
| 48 | |
|---|
| 49 | %build |
|---|
| 50 | %ghc_lib_build |
|---|
| 51 | |
|---|
| 52 | |
|---|
| 53 | %install |
|---|
| 54 | rm -rf $RPM_BUILD_ROOT |
|---|
| 55 | %ghc_lib_install |
|---|
| 56 | |
|---|
| 57 | |
|---|
| 58 | %clean |
|---|
| 59 | rm -rf $RPM_BUILD_ROOT |
|---|
| 60 | |
|---|
| 61 | |
|---|
| 62 | %changelog |
|---|
| 63 | * Thu Sep 9 2010 Anders Kaseorg <andersk@mit.edu> - 0.3.0.1-0 |
|---|
| 64 | - initial packaging for Fedora automatically generated by cabal2spec-0.22.1 |
|---|