diff --git a/ghc-MonadCatchIO-mtl.spec b/ghc-MonadCatchIO-mtl.spec index a402664..0097050 100644 --- a/ghc-MonadCatchIO-mtl.spec +++ b/ghc-MonadCatchIO-mtl.spec @@ -1,20 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name MonadCatchIO-mtl -%global common_summary Monad-transformer for Control.Exception - -%global common_description Provides a monad-transformer version of the \ -@Control.Exception.catch@ function. For this, it defines the \ -@MonadCatchIO@ class, a subset of @MonadIO@. It defines \ -proper instances for most monad transformers in the 'mtl' \ -library. - Name: ghc-%{pkg_name} Version: 0.3.0.5 -Release: 3%{?dist} -Summary: %{common_summary} +Release: 4%{?dist} +Summary: Monad-transformer for Control.Exception License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -23,14 +14,27 @@ Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{versio BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: - -BuildRequires: ghc-mtl-devel BuildRequires: ghc-extensible-exceptions-devel BuildRequires: ghc-mtl-devel # End cabal-rpm deps %description -%{common_description} +Provides a monad-transformer version of the +@Control.Exception.catch@ function. For this, it defines the +@MonadCatchIO@ class, a subset of @MonadIO@. It defines +proper instances for most monad transformers in the 'mtl' +library. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} +Requires: %{name} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development files. %prep @@ -45,18 +49,25 @@ BuildRequires: ghc-mtl-devel %ghc_lib_install -%ghc_devel_package +%post devel +%ghc_pkg_recache -%ghc_devel_description +%postun devel +%ghc_pkg_recache -%ghc_devel_post_postun +%files -f %{name}.files +%doc LICENSE -%ghc_files LICENSE + +%files devel -f %{name}-devel.files %changelog +* Tue Jun 11 2013 Jens Petersen - 0.3.0.5-4 +- update to new simplified Haskell Packaging Guidelines + * Wed Feb 13 2013 Fedora Release Engineering - 0.3.0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild