[ghc-MonadCatchIO-mtl] update to cabal2spec-0.25

Jens Petersen petersen at fedoraproject.org
Thu Mar 22 07:35:51 UTC 2012


commit f4fb294b1294f4cf8cba2416859600cc6056d6dd
Author: Jens Petersen <petersen at redhat.com>
Date:   Thu Mar 22 16:35:45 2012 +0900

    update to cabal2spec-0.25

 ghc-MonadCatchIO-mtl.spec |   49 ++++++++++++++++++++++++++++----------------
 1 files changed, 31 insertions(+), 18 deletions(-)
---
diff --git a/ghc-MonadCatchIO-mtl.spec b/ghc-MonadCatchIO-mtl.spec
index 51f682e..7e07df3 100644
--- a/ghc-MonadCatchIO-mtl.spec
+++ b/ghc-MonadCatchIO-mtl.spec
@@ -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 \
- at Control.Exception.catch@ function. For this, it defines the \
- at MonadCatchIO@ class, a subset of @MonadIO at . 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 at redhat.com> - 0.3.0.4-3
+- update to cabal2spec-0.25
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.0.4-2.3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list