[ghc-regex-tdfa] update to cabal2spec-0.25

Jens Petersen petersen at fedoraproject.org
Fri Mar 23 03:54:15 UTC 2012


commit 69c5a7db8511dab888ab8da9eda48b16917d7f2f
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Mar 23 12:54:10 2012 +0900

    update to cabal2spec-0.25

 ghc-regex-tdfa.spec |   36 ++++++++++++++++++++++--------------
 1 files changed, 22 insertions(+), 14 deletions(-)
---
diff --git a/ghc-regex-tdfa.spec b/ghc-regex-tdfa.spec
index f42c776..98cc8b1 100644
--- a/ghc-regex-tdfa.spec
+++ b/ghc-regex-tdfa.spec
@@ -1,31 +1,29 @@
-# 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 regex-tdfa
 
-# common part of summary for all the subpackages
 %global common_summary Haskell regular expression library
 
-# main description used for all the subpackages
 %global common_description A new all Haskell "tagged" DFA regex engine, inspired by libtre.
 
-
 Name:           ghc-%{pkg_name}
 Version:        1.1.8
-Release:        3%{?dist}.3
+Release:        4%{?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
-# macros for building haskell packages
-BuildRequires:  ghc-rpm-macros
-BuildRequires:  hscolour
-BuildRequires:  ghc-regex-base-prof,ghc-parsec-prof,ghc-mtl-prof
+BuildRequires:  ghc-rpm-macros %{!?without_hscolour:hscolour}
+# END cabal2spec
+BuildRequires:  ghc-parsec-prof
+BuildRequires:  ghc-regex-base-prof
 
 %description
 %{common_description}
@@ -43,12 +41,22 @@ BuildRequires:  ghc-regex-base-prof,ghc-parsec-prof,ghc-mtl-prof
 %ghc_lib_install
 
 
-# define the shared, devel and prof subpkgs, devel scripts,
-# and filelists: ghc-regex-tdfa.files, ghc-regex-tdfa-devel.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> - 1.1.8-4
+- update to cabal2spec-0.25
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1.8-3.3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list