diff --git a/ghc-zip-archive.spec b/ghc-zip-archive.spec index 2fc959d..cede21f 100644 --- a/ghc-zip-archive.spec +++ b/ghc-zip-archive.spec @@ -1,17 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name zip-archive -%global common_summary Library for creating and modifying zip archives - -%global common_description The zip-archive library provides functions for creating, modifying,\ -and extracting files from zip archives. - Name: ghc-%{pkg_name} Version: 0.1.3.4 -Release: 1%{?dist} -Summary: %{common_summary} +Release: 2%{?dist} +Summary: Library for creating and modifying zip archives License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -37,7 +31,19 @@ BuildRequires: ghc-zlib-devel # End cabal-rpm deps %description -%{common_description} +The zip-archive library provides functions for creating, modifying, +and extracting files from zip archives. + + +%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 @@ -52,18 +58,25 @@ BuildRequires: ghc-zlib-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 - 0.1.3.4-2 +- update to new simplified Haskell Packaging Guidelines + * Sun Mar 10 2013 Jens Petersen - 0.1.3.4-1 - update to 0.1.3.4