From e5311e7d0c97d8c0d8fad85831dab1b24d02f38b Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 7 Jun 2013 12:48:06 +0900 Subject: [PATCH] update to new simplified Haskell Packaging Guidelines --- ghc-aeson.spec | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/ghc-aeson.spec b/ghc-aeson.spec index ef2f052..1fd584c 100644 --- a/ghc-aeson.spec +++ b/ghc-aeson.spec @@ -1,17 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name aeson -%global common_summary Fast JSON parsing and encoding - -%global common_description A JSON parsing and encoding library optimized for ease of use and\ -high performance. Aeson was the father of Jason in Greek mythology. - Name: ghc-%{pkg_name} Version: 0.6.1.0 -Release: 1%{?dist} -Summary: %{common_summary} +Release: 2%{?dist} +Summary: Fast JSON parsing and encoding License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -39,7 +33,19 @@ ExclusiveArch: %{ghc_arches_with_ghci} # End cabal-rpm deps %description -%{common_description} +A JSON parsing and encoding library optimized for ease of use and +high performance. Aeson was the father of Jason in Greek mythology. + + +%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 @@ -54,19 +60,26 @@ ExclusiveArch: %{ghc_arches_with_ghci} %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 %doc README.markdown release-notes.markdown examples %changelog +* Fri Jun 07 2013 Jens Petersen - 0.6.1.0-2 +- update to new simplified Haskell Packaging Guidelines + * Mon Mar 11 2013 Jens Petersen - 0.6.1.0-1 - update to 0.6.1.0