diff --git a/ghc-Boolean.spec b/ghc-Boolean.spec index a496818..4348c61 100644 --- a/ghc-Boolean.spec +++ b/ghc-Boolean.spec @@ -1,16 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name Boolean -%global common_summary Generalized booleans - -%global common_description Some classes for generalized boolean operations. - Name: ghc-%{pkg_name} Version: 0.1.2 -Release: 1%{?dist} -Summary: %{common_summary} +Release: 2%{?dist} +Summary: Generalized booleans License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -18,11 +13,20 @@ Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{versio BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: -# End cabal-rpm deps %description -%{common_description} +Some classes for generalized boolean operations. + + +%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 @@ -37,18 +41,25 @@ BuildRequires: ghc-rpm-macros %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 COPYING +%files -f %{name}.files +%doc COPYING + + +%files devel -f %{name}-devel.files %changelog +* Fri Jun 07 2013 Jens Petersen - 0.1.2-2 +- update to new simplified Haskell Packaging Guidelines + * Tue Mar 12 2013 Jens Petersen - 0.1.2-1 - update to 0.1.2