diff --git a/ghc-regex-tdfa.spec b/ghc-regex-tdfa.spec index 97bbf49..5ede938 100644 --- a/ghc-regex-tdfa.spec +++ b/ghc-regex-tdfa.spec @@ -1,26 +1,31 @@ +# For Haskell Packaging Guidelines see: +# - 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. -%global ghc_pkg_deps ghc-regex-base-devel,ghc-parsec-devel,ghc-mtl-devel - Name: ghc-%{pkg_name} Version: 1.1.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: %{common_summary} Group: System Environment/Libraries License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz -ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9 -BuildRequires: ghc, ghc-doc, ghc-prof -BuildRequires: ghc-rpm-macros >= 0.7.0 +ExclusiveArch: %{ghc_arches} +BuildRequires: ghc-Cabal-devel +# macros for building haskell packages +BuildRequires: ghc-rpm-macros BuildRequires: hscolour -%{?ghc_pkg_deps:BuildRequires: %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")} +BuildRequires: ghc-regex-base-prof,ghc-parsec-prof,ghc-mtl-prof %description %{common_description} @@ -38,10 +43,15 @@ BuildRequires: hscolour %ghc_lib_install -%{?ghc_lib_package} +# define the shared, devel and prof subpkgs, devel scripts, +# and filelists: ghc-regex-tdfa.files, ghc-regex-tdfa-devel.files +%ghc_lib_package %changelog +* Tue Jun 21 2011 Lakshmi Narasimhan T V - 1.1.8-2 +- Update to cabal2spec-0.23.2 + * Mon Apr 18 2011 Lakshmi Narasimhan T V - 1.1.8-1 - Package update to 1.1.8. Update to cabal2spec 0.22.5