diff --git a/ghc-SHA.spec b/ghc-SHA.spec index 811c842..fb62871 100644 --- a/ghc-SHA.spec +++ b/ghc-SHA.spec @@ -1,21 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name SHA -%global common_summary SHA message digest functions - -%global common_description This library implements the SHA suite of message digest functions,\ -according to NIST FIPS 180-2 (with the SHA-224 addendum), as well as\ -the SHA-based HMAC routines. The functions have been tested against\ -most of the NIST and RFC test vectors for the various functions.\ -While some attention has been paid to performance, these do not\ -presently reach the speed of well-tuned libraries, like OpenSSL. - Name: ghc-%{pkg_name} Version: 1.6.1 -Release: 1%{?dist} -Summary: %{common_summary} +Release: 2%{?dist} +Summary: SHA message digest functions License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -31,7 +21,23 @@ BuildRequires: ghc-directory-devel # End cabal-rpm deps %description -%{common_description} +This library implements the SHA suite of message digest functions, +according to NIST FIPS 180-2 (with the SHA-224 addendum), as well as +the SHA-based HMAC routines. The functions have been tested against +most of the NIST and RFC test vectors for the various functions. +While some attention has been paid to performance, these do not +presently reach the speed of well-tuned libraries, like OpenSSL. + + +%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 @@ -46,18 +52,25 @@ BuildRequires: ghc-directory-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 %changelog +* Fri Jun 07 2013 Jens Petersen - 1.6.1-2 +- update to new simplified Haskell Packaging Guidelines + * Tue Mar 12 2013 Jens Petersen - 1.6.1-1 - update to 1.6.1