[ghc-ansi-terminal] update to cabal2spec-0.25

Jens Petersen petersen at fedoraproject.org
Thu Mar 22 07:57:10 UTC 2012


commit 71dc6c54da3d9ef272c4b0a3b2235310444786ec
Author: Jens Petersen <petersen at redhat.com>
Date:   Thu Mar 22 16:57:05 2012 +0900

    update to cabal2spec-0.25

 ghc-ansi-terminal.spec |   27 +++++++++++++++++++--------
 1 files changed, 19 insertions(+), 8 deletions(-)
---
diff --git a/ghc-ansi-terminal.spec b/ghc-ansi-terminal.spec
index 4edf20b..ebb277f 100644
--- a/ghc-ansi-terminal.spec
+++ b/ghc-ansi-terminal.spec
@@ -1,3 +1,7 @@
+# cabal2spec-0.25
+# https://fedoraproject.org/wiki/Packaging:Haskell
+# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
+
 %global pkg_name ansi-terminal
 
 %global common_summary Haskell %{pkg_name} library
@@ -6,18 +10,18 @@
 
 Name:           ghc-%{pkg_name}
 Version:        0.5.5
-Release:        5%{?dist}.2
+Release:        6%{?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,15 +39,22 @@ BuildRequires:  hscolour
 %ghc_lib_install
 
 
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
+# devel subpackage
+%ghc_devel_package
+
+%ghc_devel_description
 
 
-%ghc_lib_package
+%ghc_devel_post_postun
+
+
+%ghc_files LICENSE
 
 
 %changelog
+* Sun Mar 18 2012 Jens Petersen <petersen at redhat.com> - 0.5.5-6
+- update to cabal2spec-0.25
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5.5-5.2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list