diff --git a/ghc-semigroups.spec b/ghc-semigroups.spec index 9384f74..9afd6da 100644 --- a/ghc-semigroups.spec +++ b/ghc-semigroups.spec @@ -1,16 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name semigroups -%global common_summary Implementation of semigroups - -%global common_description This library implements mathematical semigroups in Haskell 98. - Name: ghc-%{pkg_name} Version: 0.8.5 -Release: 1%{?dist} -Summary: %{common_summary} +Release: 2%{?dist} +Summary: Implementation of semigroups License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -23,7 +18,18 @@ BuildRequires: ghc-containers-devel # End cabal-rpm deps %description -%{common_description} +This library implements mathematical semigroups in Haskell 98. + + +%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 @@ -38,19 +44,26 @@ BuildRequires: ghc-containers-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 %doc README.markdown %changelog +* Wed Jun 05 2013 Jens Petersen - 0.8.5-2 +- update to new simplified Haskell Packaging Guidelines + * Tue Mar 12 2013 Jens Petersen - 0.8.5-1 - update to 0.8.5