update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-11 19:32:16 +09:00
parent 6c8a9b808c
commit 02794d21e9
1 changed files with 30 additions and 19 deletions

View File

@ -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
%ghc_devel_description
%post devel
%ghc_pkg_recache
%ghc_devel_post_postun
%postun devel
%ghc_pkg_recache
%ghc_files LICENSE
%files -f %{name}.files
%doc LICENSE
%files devel -f %{name}-devel.files
%changelog
* Tue Jun 11 2013 Jens Petersen <petersen@redhat.com> - 0.3.0.5-4
- update to new simplified Haskell Packaging Guidelines
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild