diff --git a/ghc-http-types.spec b/ghc-http-types.spec index a9058af..d389613 100644 --- a/ghc-http-types.spec +++ b/ghc-http-types.spec @@ -1,16 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name http-types -%global common_summary Generic HTTP types for Haskell - -%global common_description Generic HTTP types for Haskell for both client and server code. - Name: ghc-%{pkg_name} Version: 0.8.0 -Release: 1%{?dist} -Summary: %{common_summary} +Release: 2%{?dist} +Summary: Generic HTTP types for Haskell License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -27,7 +22,18 @@ BuildRequires: ghc-text-devel # End cabal-rpm deps %description -%{common_description} +Generic HTTP types for Haskell for both client and server code. + + +%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 @@ -42,18 +48,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 -%ghc_files LICENSE +%files devel -f %{name}-devel.files %changelog +* Fri Jun 07 2013 Jens Petersen - 0.8.0-2 +- update to new simplified Haskell Packaging Guidelines + * Tue Mar 12 2013 Jens Petersen - 0.8.0-1 - update to 0.8.0