From a26ad1c82ad225b25408e20b0d01eac8a3a3cb02 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Jun 07 2013 03:49:06 +0000 Subject: update to new simplified Haskell Packaging Guidelines --- diff --git a/ghc-snap-core.spec b/ghc-snap-core.spec index be34d23..8339a8c 100644 --- a/ghc-snap-core.spec +++ b/ghc-snap-core.spec @@ -1,18 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name snap-core -%global common_summary Snap web framework core library - -%global common_description Snap is a simple and fast web development framework and server written\ -in Haskell. This library contains the core definitions and types for\ -the Snap framework. - Name: ghc-%{pkg_name} Version: 0.9.3.1 -Release: 1%{?dist} -Summary: %{common_summary} +Release: 2%{?dist} +Summary: Snap web framework core library License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -48,7 +41,20 @@ BuildRequires: ghc-zlib-enum-devel Patch1: snap-core-0.9.2.2-portable-flag.patch %description -%{common_description} +Snap is a simple and fast web development framework and server written +in Haskell. This library contains the core definitions and types for +the Snap framework. + + +%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 @@ -72,19 +78,26 @@ Patch1: snap-core-0.9.2.2-portable-flag.patch %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 %doc CONTRIBUTORS README*.md %changelog +* Fri Jun 07 2013 Jens Petersen - 0.9.3.1-2 +- update to new simplified Haskell Packaging Guidelines + * Tue Mar 12 2013 Jens Petersen - 0.9.3.1-1 - update to 0.9.3.1