[ghc-stm] update to cabal2spec-0.25

Jens Petersen petersen at fedoraproject.org
Wed Mar 21 15:06:12 UTC 2012


commit 8e40d10c41e2527e0099487ea723e7a14d1b4465
Author: Jens Petersen <petersen at redhat.com>
Date:   Thu Mar 22 00:06:08 2012 +0900

    update to cabal2spec-0.25

 ghc-stm.spec |   27 ++++++++++++++++++++++-----
 1 files changed, 22 insertions(+), 5 deletions(-)
---
diff --git a/ghc-stm.spec b/ghc-stm.spec
index adf66b9..7bbc8a2 100644
--- a/ghc-stm.spec
+++ b/ghc-stm.spec
@@ -1,3 +1,7 @@
+# cabal2spec-0.25
+# https://fedoraproject.org/wiki/Packaging:Haskell
+# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
+
 %global pkg_name stm
 
 %global common_summary Haskell Software Transactional Memory library
@@ -5,19 +9,20 @@
 %global common_description A modular composable concurrency abstraction for Haskell.
 
 Name:           ghc-%{pkg_name}
-# part of haskell-platform-2011.2.0.1
+# part of haskell-platform
 Version:        2.2.0.1
-Release:        8%{?dist}.3
+Release:        9%{?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-rpm-macros %{!?without_hscolour:hscolour}
+# END cabal2spec
 
 %description
 %{common_description}
@@ -35,10 +40,22 @@ BuildRequires:  hscolour
 %ghc_lib_install
 
 
-%ghc_lib_package
+# devel subpackage
+%ghc_devel_package
+
+%ghc_devel_description
+
+
+%ghc_devel_post_postun
+
+
+%ghc_files LICENSE
 
 
 %changelog
+* Wed Mar 21 2012 Jens Petersen <petersen at redhat.com> - 2.2.0.1-9
+- update to cabal2spec-0.25
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.2.0.1-8.3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list