From 2e3424e2e7f33dac1d4de0e7d9fcd1e9ad115eb2 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 5 Jun 2013 15:22:01 +0900 Subject: [PATCH] update to new simplified Haskell Packaging Guidelines --- ghc-safe.spec | 47 +++++++++++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 18 deletions(-) diff --git a/ghc-safe.spec b/ghc-safe.spec index 3940ed1..45a8515 100644 --- a/ghc-safe.spec +++ b/ghc-safe.spec @@ -1,20 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name safe -%global common_summary Library for safe (pattern match free) functions - -%global common_description Partial functions from the base library, such as head and \ -!!, modified to return more descriptive error messages, \ -programmer defined error messages, Maybe wrapped results \ -and default values. These functions can be used to reduce the \ -number of unsafe pattern matches in your code. - Name: ghc-%{pkg_name} Version: 0.3.3 -Release: 6%{?dist} -Summary: %{common_summary} +Release: 7%{?dist} +Summary: Library for safe (pattern match free) functions License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -22,11 +13,24 @@ 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} +Partial functions from the base library, such as head and +!!, modified to return more descriptive error messages, +programmer defined error messages, Maybe wrapped results +and default values. These functions can be used to reduce the +number of unsafe pattern matches in your 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 @@ -41,18 +45,25 @@ BuildRequires: ghc-rpm-macros %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 +* Wed Jun 05 2013 Jens Petersen - 0.3.3-7 +- update to new simplified Haskell Packaging Guidelines + * Wed Feb 13 2013 Fedora Release Engineering - 0.3.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild