diff --git a/ghc-xml-types.spec b/ghc-xml-types.spec index 02d0f30..a5f7ca4 100644 --- a/ghc-xml-types.spec +++ b/ghc-xml-types.spec @@ -1,16 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name xml-types -%global common_summary Basic types for representing XML - -%global common_description %{common_summary}. - Name: ghc-%{pkg_name} Version: 0.3.3 -Release: 2%{?dist} -Summary: %{common_summary} +Release: 3%{?dist} +Summary: Basic types for representing XML License: MIT URL: http://hackage.haskell.org/package/%{pkg_name} @@ -23,7 +18,18 @@ BuildRequires: ghc-text-devel # End cabal-rpm deps %description -%{common_description} +Basic types for representing XML. + + +%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,18 +44,25 @@ BuildRequires: ghc-text-devel %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.txt -%ghc_files license.txt +%files devel -f %{name}-devel.files %changelog +* Fri Jun 07 2013 Jens Petersen - 0.3.3-3 +- update to new simplified Haskell Packaging Guidelines + * Mon Mar 11 2013 Jens Petersen - 0.3.3-2 - update to cabal-rpm-0.7