From d06ff75e69c4a1a111e13bc1db119f0e2a933f25 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 7 Jun 2013 12:48:31 +0900 Subject: [PATCH] update to new simplified Haskell Packaging Guidelines --- ghc-data-accessor.spec | 49 ++++++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/ghc-data-accessor.spec b/ghc-data-accessor.spec index e8b0255..a2dccc7 100644 --- a/ghc-data-accessor.spec +++ b/ghc-data-accessor.spec @@ -1,21 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name data-accessor -%global common_summary Utilities for accessing and manipulating fields of records - -%global common_description With this package you can define record field accessors which \ -allow setting, getting and modifying values easily. The \ -package clearly demonstrates the power of the functional \ -approach: You can combine accessors of a record and \ -sub-records, to make the access look like the fields of the \ -sub-record belong to the main record. - Name: ghc-%{pkg_name} Version: 0.2.2.3 -Release: 2%{?dist} -Summary: %{common_summary} +Release: 3%{?dist} +Summary: Utilities for accessing and manipulating fields of records License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -30,7 +20,23 @@ BuildRequires: ghc-transformers-devel # End cabal-rpm deps %description -%{common_description} +With this package you can define record field accessors which +allow setting, getting and modifying values easily. The +package clearly demonstrates the power of the functional +approach: You can combine accessors of a record and +sub-records, to make the access look like the fields of the +sub-record belong to the main record. + + +%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 @@ -45,18 +51,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 +* Fri Jun 07 2013 Jens Petersen - 0.2.2.3-3 +- update to new simplified Haskell Packaging Guidelines + * Wed Jan 30 2013 Ben Boeckel - 0.2.2.3-2 - Initial import into Fedora