diff --git a/ghc-strict.spec b/ghc-strict.spec index 29f1f15..28f611c 100644 --- a/ghc-strict.spec +++ b/ghc-strict.spec @@ -1,18 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name strict -%global common_summary Haskell strict data types - -%global common_description This package provides strict versions of some \ -standard Haskell data types (pairs, Maybe and Either).\ -It also contains strict IO operations. - Name: ghc-%{pkg_name} Version: 0.3.2 -Release: 7%{?dist} -Summary: %{common_summary} +Release: 8%{?dist} +Summary: Strict data types and String IO License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -25,7 +18,19 @@ BuildRequires: ghc-array-devel # End cabal-rpm deps %description -%{common_description} +This package provides strict versions of some standard Haskell data types +(pairs, Maybe and Either). It also contains strict IO operations. + + +%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,18 +45,25 @@ BuildRequires: ghc-array-devel %ghc_lib_install -%ghc_devel_package +%post devel +%ghc_pkg_recache + -%ghc_devel_description +%postun devel +%ghc_pkg_recache -%ghc_devel_post_postun +%files -f %{name}.files +%doc LICENSE -%ghc_files LICENSE +%files devel -f %{name}-devel.files %changelog +* Tue Jun 04 2013 Jens Petersen - 0.3.2-8 +- update to new simplified Haskell Packaging Guidelines + * Wed Feb 13 2013 Fedora Release Engineering - 0.3.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild