update to cabal2spec-0.25

This commit is contained in:
Jens Petersen 2012-03-22 16:35:45 +09:00
parent bfc461c50f
commit f4fb294b12
1 changed files with 31 additions and 18 deletions

View File

@ -1,52 +1,65 @@
# For Haskell Packaging Guidelines see:
# - https://fedoraproject.org/wiki/Packaging:Haskell
# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell
# cabal2spec-0.25
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name MonadCatchIO-mtl
# common part of summary for all the subpackages
%global common_summary Monad-transformer for Control.Exception
# main description used for all the subpackages
%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.
%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.4
Release: 2%{?dist}.3
Release: 3%{?dist}
Summary: %{common_summary}
Group: System Environment/Libraries
License: BSD
# BEGIN cabal2spec
URL: http://hackage.haskell.org/package/%{pkg_name}
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
ExclusiveArch: %{ghc_arches}
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: hscolour
BuildRequires: ghc-mtl-prof, ghc-extensible-exceptions-prof
BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour}
# END cabal2spec
BuildRequires: ghc-extensible-exceptions-prof
BuildRequires: ghc-mtl-prof
%description
%{common_description}
%prep
%setup -q -n %{pkg_name}-%{version}
%build
%ghc_lib_build
%install
%install
%ghc_lib_install
# define the devel and prof subpkgs, devel post[un] scripts, and filelists:
# ghc-MonadCatchIO-mtl{,-devel,-prof}.files
%ghc_lib_package
# devel subpackage
%ghc_devel_package
%ghc_devel_description
%ghc_devel_post_postun
%ghc_files LICENSE
%changelog
* Sun Mar 18 2012 Jens Petersen <petersen@redhat.com> - 0.3.0.4-3
- update to cabal2spec-0.25
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0.4-2.3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild