From f4ea0e9261295287ed4bb758e8ed5d2929a5b1a4 Mon Sep 17 00:00:00 2001 From: Jens Petersen <petersen@redhat.com> Date: Tue, 4 Jun 2013 11:18:09 +0900 Subject: [PATCH] update to simplified Haskell Packaging Guidelines --- ghc-transformers-base.spec | 39 +++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/ghc-transformers-base.spec b/ghc-transformers-base.spec index 9fab518..fe55fd2 100644 --- a/ghc-transformers-base.spec +++ b/ghc-transformers-base.spec @@ -1,16 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name transformers-base -%global common_summary Lift computations from the bottom of a transformer stack - -%global common_description A port of Haskell monadLib's BaseM typeclass to transformers. - Name: ghc-%{pkg_name} Version: 0.4.1 -Release: 7%{?dist} -Summary: %{common_summary} +Release: 8%{?dist} +Summary: Lift computations from the bottom of a transformer stack License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -23,7 +18,18 @@ BuildRequires: ghc-transformers-devel # End cabal-rpm deps %description -%{common_description} +A port of Haskell monadLib's BaseM typeclass to transformers. + + +%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-transformers-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 +* Tue Jun 4 2013 Jens Petersen <petersen@redhat.com> - 0.4.1-8 +- update to new simplified Haskell Packaging Guidelines + * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild