diff --git a/ghc-cabal-file-th.spec b/ghc-cabal-file-th.spec index 91162a1..bf23c23 100644 --- a/ghc-cabal-file-th.spec +++ b/ghc-cabal-file-th.spec @@ -1,16 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name cabal-file-th -%global common_summary Template Haskell expressions for reading cabal files - -%global common_description %{common_summary} - Name: ghc-%{pkg_name} Version: 0.2.3 -Release: 3%{?dist} -Summary: %{common_summary} +Release: 4%{?dist} +Summary: Template Haskell expressions for reading cabal files License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -25,7 +20,18 @@ BuildRequires: ghc-template-haskell-devel # End cabal-rpm deps %description -%{common_description} +Template Haskell expressions for reading fields from a project's cabal file. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} +Requires: %{name} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development files. %prep @@ -40,19 +46,26 @@ BuildRequires: ghc-template-haskell-devel %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 %doc README.md %changelog +* Fri Jun 07 2013 Jens Petersen - 0.2.3-4 +- update to new simplified Haskell Packaging Guidelines + * Wed Feb 13 2013 Fedora Release Engineering - 0.2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild