diff --git a/ghc-dlist.spec b/ghc-dlist.spec index b5b026e..91611cc 100644 --- a/ghc-dlist.spec +++ b/ghc-dlist.spec @@ -1,19 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name dlist -%global common_summary Haskell differences lists - -%global common_description Differences lists: a list-like type supporting O(1) append.\ -This is particularly useful for efficient logging and pretty\ -printing, (e.g. with the Writer monad), where list append\ -quickly becomes too expensive. - Name: ghc-%{pkg_name} Version: 0.5 -Release: 9%{?dist} -Summary: %{common_summary} +Release: 10%{?dist} +Summary: Haskell differences lists License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -21,11 +13,23 @@ Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{versio BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: -# End cabal-rpm deps %description -%{common_description} +Differences lists: a list-like type supporting O(1) append. +This is particularly useful for efficient logging and pretty +printing, (e.g. with the Writer monad), where list append +quickly becomes too expensive. + + +%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 +44,25 @@ BuildRequires: ghc-rpm-macros %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 +* Fri Jun 07 2013 Jens Petersen - 0.5-10 +- update to new simplified Haskell Packaging Guidelines + * Wed Feb 13 2013 Fedora Release Engineering - 0.5-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild