diff --git a/ghc-arrows.spec b/ghc-arrows.spec index 588e8a9..2822b39 100644 --- a/ghc-arrows.spec +++ b/ghc-arrows.spec @@ -1,17 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name arrows -%global common_summary Classes that extend the Arrow class - -%global common_description Several classes that extend the Arrow class, \ -and some transformers that implement or lift these classes. - Name: ghc-%{pkg_name} Version: 0.4.4.1 -Release: 2%{?dist} -Summary: %{common_summary} +Release: 3%{?dist} +Summary: Arrow classes and transformers License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -20,12 +14,23 @@ Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{versio BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: - -BuildRequires: ghc-Stream-devel +BuildRequires: ghc-Stream-devel # End cabal-rpm deps %description -%{common_description} +Several classes that extend the Arrow class, +and some transformers that implement or lift these classes. + + +%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 @@ -40,18 +45,25 @@ BuildRequires: ghc-Stream-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.4.4.1-3 +- update to new simplified Haskell Packaging Guidelines + * Wed Feb 13 2013 Fedora Release Engineering - 0.4.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild