From 4affc97de41540d9d0ccb7e5658152b6e8567afc Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 2 Jan 2014 16:08:23 +0900 Subject: [PATCH] update to cabal-rpm-0.8.7 --- ghc-regex-base.spec | 58 ++++++++++++++++++++++++++++----------------- 1 file changed, 36 insertions(+), 22 deletions(-) diff --git a/ghc-regex-base.spec b/ghc-regex-base.spec index e131abb..4cbfab6 100644 --- a/ghc-regex-base.spec +++ b/ghc-regex-base.spec @@ -1,33 +1,40 @@ -# cabal2spec-0.25.2 # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name regex-base -%global common_summary Haskell regex base library - -%global common_description Interface API for regex-{posix,pcre,parsec,tdfa,dfa}. - Name: ghc-%{pkg_name} -# part of haskell-platform-2011.4.0.0 +# part of haskell-platform Version: 0.93.2 -Release: 11%{?dist} -Summary: %{common_summary} +Release: 28%{?dist} +Summary: Haskell regex base library -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 %{!?without_hscolour:hscolour} -# END cabal2spec -BuildRequires: ghc-mtl-prof -BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-rpm-macros +# Begin cabal-rpm deps: +BuildRequires: ghc-array-devel +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-containers-devel +BuildRequires: ghc-mtl-devel +# End cabal-rpm deps %description -%{common_description} +Interface API for regex-{posix,pcre,parsec,tdfa,dfa}. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Provides: %{name}-static = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development files. %prep @@ -42,18 +49,25 @@ BuildRequires: ghc-bytestring-prof %ghc_lib_install -%ghc_devel_package - -%ghc_devel_description +%post devel +%ghc_pkg_recache -%ghc_devel_post_postun +%postun devel +%ghc_pkg_recache -%ghc_files LICENSE +%files -f %{name}.files +%doc LICENSE + + +%files devel -f %{name}-devel.files %changelog +* Thu Jan 2 2014 Jens Petersen - 0.93.2-28 +- spec file updated to cabal-rpm-0.8.7 + * Wed Mar 21 2012 Jens Petersen - 0.93.2-11 - rebuild